MyBB Community Forums

Full Version: Adding profile fields to postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to add a user-customizable field in the postbit similar to usertitle but under the avatar and under a different name?

Doubt its as simple as a template edit? Toungue
It's as simple as template edit. Big Grin


You need to open Templates -> Post Bit templates -> Edit Template: postbit_author_user.

And there you add needed field:

Custom profile fields you add like this:
{$post['fid1']}
where change "1" to field ID.

Another example, usergroup you can add like this:
    {$usergroup['title']}

Other variables you can look up like this:
http://mybbaddict.com/thread-how-to-disp...-variables
If you want BB code , XThreads and RateU's awesome customprofile fields is one way. The other is the profilefields on postbit here in the mods db but it causes a query per postbit.
Thanks for the help guys. Smile

And I'll definitely have to check out XThreads soon. Sounds cool.