1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 RE: Custom User Fields Format on Profile Page [member_view]

Discussion in 'XenForo Questions and Support' started by MsJacquiiC, Oct 28, 2014.

  1. MsJacquiiC

    MsJacquiiC Well-Known Member

    Quite similar to my question here.

    What I'd like to do is augment how some custom profile fields are showing on a user's profile page.
    This is what I currently see:

    xf-1.png

    What I'd like to see is this:

    xf-1.png

    For instance - "tennessee" becomes Tennessee with capitalization intact.
    And "postop" becomes Post-op with capitalization and the hyphen intact.
    The output should match the actual text field:


    [​IMG]

    [​IMG]


    I believe I'll need to modify the member_view template. This particular bit of code:

    Code:
    <xen:if hascontent="true">
                        <div class="section">
                            <h3 class="textHeading">Surgery Information</h3>
    
                            <div class="primaryContent">
                                <xen:contentcheck>
                                    <xen:if hascontent="true">
                                        <div class="pairsColumns aboutPairs">
                                        <xen:contentcheck>                                       
                                            <xen:if is="{$customFieldsGrouped.personal}">
                                                <xen:foreach loop="$customFieldsGrouped.personal" value="$field">
                                                    <xen:include template="custom_field_view" />
                                                </xen:foreach>
                                            </xen:if>
                                        </xen:contentcheck>
                                        </div>
                                    </xen:if>
    
                                    <xen:if is="{$user.about}"><div class="baseHtml ugc">{xen:raw $user.aboutHtml}</div></xen:if>
                                </xen:contentcheck>
                            </div>
                        </div>
                    </xen:if>
    
    @Brogan and @Mike helped with a similar issue. Perhaps either one of you gentlemen can help with this as well? I hope so :)

    Thanks

    J.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You will want to edit the field value HTML segment found within each custom field (last tab).
     
    MsJacquiiC likes this.
  3. MsJacquiiC

    MsJacquiiC Well-Known Member

    Thanks @Jeremy. I don't know why I'm having such a time wrapping my head around XF custom profile fields...
    I've tried so many different options in the HTML segment and none of them work. Can you suggest an exact code to use in that spot please?
    I appreciate your help ;)

    J.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    It's been a while, but the description should describe it. {$value} should contain the human readable form, if not, try {$choice}.
     
    MsJacquiiC likes this.

Share This Page