How to add custom profile field below user title ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riderbook
    Senior Member
    • Oct 2006
    • 339
    • 3.5.x

    How to add custom profile field below user title ?

    What it does ?
    It shows the custom profile field below the user title in post bit. There is a customization for creating a private field & using in post bit, but there is no tip for doing it below user title.

    How to create private field ?
    Check this thread on how to create private field : (by Jake Bunce)



    How to add private field below user title ?
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you use)

    Find :
    Code:
    <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>

    Add Below :

    Code:
    <if condition="$post['[COLOR=red]fieldX[/COLOR]']">
        $post[[COLOR=red]fieldX[/COLOR]]
    </if>
    If you want the profile field with label, you can do the following method:

    Code:
    <if condition="$post['[COLOR=red]fieldX[/COLOR]']">
        Gender: $post[[COLOR=red]fieldX[/COLOR]]
    
    </if>
    fill the "x" with your profile field number, replace the word gender to your need
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...