MyBB Community Forums

Full Version: Custom Profile Fields Below Post Author Username
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to make a plugin that will pull in the custom profile fields of the author and put it below their usernames for each post that they make:

[Image: custom-profile-fields-in-post.gif]

How can I do that, or what hooks can I use to achieve this?

Thanks for your help.
If anyone was wondering how to do this, in my plugin file, I appended my custom profile code to the "userstars" variable:

function show_custom_field()
{
$post['userstars'] .= '<br />' . $post['fid4'];
}

This will add a break and then my custom field because I knew it was "fid4" in the database.

I then added this function to the postbit hook:

$plugins->add_hook("postbit", "show_custom_field");