MyBB Community Forums

Full Version: Adding a Profile Field to Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, there's a JS library I want to use on my forums that links to a users Steam profile and displays whether they're online or not, and I'm having trouble actually getting it to work.

According to the documentation for the library, all I have to do to use it is put the users Steam Profile name as the title field for a <div> element (<div class="steamprofile" title="ProfileName/Number"></div>), and then the JavaScript would handle the rest.

The only problem is I can't find out how to physically add this to both the users profile page, and on the top right of they're post.

Can anyone help me out with this?
Make a custom profile field. Config > Custom Profile Fields (in the nav)

Then where you want it to show up in the post do this.

Templates > Postbit > Expand Postbit > postbit_author_user > and add this line of code where you want it to show up

Name of field:{$post['fid#']}

just replace the fid# with the number of the custom profile field you made.