Adding users first name in post

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Angelis
    Member
    • Oct 2005
    • 47

    Adding users first name in post

    I've tried searching, but couldn't find the solution so apologies for asking a stoopid question.

    At the top right corner of a post, there is some info about the user:

    Join Date: Aug 2008
    Location: London
    Posts: 6

    How can I add a first name field there like below?

    Join Date: Aug 2008
    Location: London
    Name: Fred
    Posts: 6


    Thanks
  • The Gismo Man
    Senior Member
    • Apr 2008
    • 430
    • 5.7.0

    #2
    If you haven't already, create a new profile field in your:

    Admin CP -> User Profile Fields -> Add New User Profile Field

    Users can then enter their info into the profile field by going to their User CP. To display the information in posts you need to go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you use)

    Add this code:
    Code:

    <if condition="$post['fieldX']">
    Name: $post[fieldX]
    </if>

    Where fieldX is the field indentifier of the profile field as shown in your:

    Admin CP -> User Profile Fields -> User Profile Field Manager

    The exact placement of this code depends on where you want it to show up, in your case after location.
    https://thebookjoint.com/forums/forum.php - for all things relating to books especially Jack Reacher

    Comment

    • Nick
      Senior Member
      • Feb 2008
      • 3507
      • 3.8.x

      #3
      More details can be found here: (where Gismo Man got his information)
      Regards,
      Nick

      Comment

      • The Gismo Man
        Senior Member
        • Apr 2008
        • 430
        • 5.7.0

        #4
        Originally posted by Nick
        More details can be found here: (where Gismo Man got his information)
        http://www.vbulletin.com/forum/showthread.php?t=108785
        Cheers, i couldn't find it again but had copied the info down
        https://thebookjoint.com/forums/forum.php - for all things relating to books especially Jack Reacher

        Comment

        • Angelis
          Member
          • Oct 2005
          • 47

          #5
          Thanks for your help guys.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎