Biog and in user posts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martync
    Senior Member
    • May 2002
    • 109
    • 3.5.x

    Biog and in user posts

    Not sure what its called but I will attempt to explain what I'm after
    If you look at a post in a forum, under the user name you will see the following: -

    Join Date: May 2008
    Location: Clifton
    Posts: 234

    How do I show the other fields in here such as interests and biography

    Thanks

    Martyn
  • zCarot [RU]
    Senior Member
    • Oct 2006
    • 109
    • 3.7.x

    #2
    Go to:
    AdminCP => User Profile Fields => User Profile Field Manager
    and remember Name's for fields, that you want to show.
    By default, for interests name is field3, and for biography - field1.
    Then go to:
    AdminCP => Styles & Templates => Style Manager => Edit templates => Postbit Templates => postbit (or postbit_legacy, if your info about user in the left side of the post)
    Find in this template
    Code:
    <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
    And add after that:
    Code:
    <div>YOUR_PHRASE: $post[YOUR_NAME_OF_FIELD]</div>
    For example:
    YOUR_PHRASE = Biography
    then YOUR_NAME_OF_FIELD = field1

    Comment

    • martync
      Senior Member
      • May 2002
      • 109
      • 3.5.x

      #3
      Solved

      Nice one, thanks very much

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...