MyBB Community Forums

Full Version: show avatars for forum team
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On the "forum team" page, what piece of code & where do I put it, to show the avatars of that member?

Currently, it only shows, the name and the option to e-mail or PM that member.

Anyone know?
There is a tutorial about this on Yaldaram.com

Link: http://yaldaram.com/thread-4386.html
(2013-08-01, 01:28 PM)Arbaz Wrote: [ -> ]There is a tutorial about this on Yaldaram.com

Link: http://yaldaram.com/thread-4386.html
Thanks.
Added as well, looks really awesome and works fine, thanks.

I would like to add custom user titles too, i already added the column
(<td class="tcat"><span class="smalltext"><strong>Title</strong></span></td>) on the showteam usergroup template but the user titles are not implemented yet.

I think it misses the code on the showteam.php file, could anyone provide me a code or tell me how to make this working.

Thanks, k1R@
I'm not 100% sure this will work (I haven't tested it), but try adding

<td width="10%" class="{$bgcolor}">{$usergroup['usertitle']}</td>


into the showteam usergroup user template.
Thank you. Worked.

Oh and another thing, how would i add a custom profile field?
Do you mean how do you add a custom profile field, or how to add one to the showteam page?

To add a Custom Profile Field:

Go to your ACP > Configuration > Custom Profile Fields > Add New Profile Field

and fill out the necessary information.



To add a Custom Profile Field on the Showteam page:

Open up showteam.php

Find:

$bgcolor = alt_trow();

After that, add:

// Fetch custom profile fields
$query = $db->query("
            SELECT * 
            FROM ".TABLE_PREFIX."userfields 
            WHERE ufid='".$user['uid']."'");
        
$profilefields = $db->fetch_array($query);

Then, in the showteam_usergroup_user, add:

<td width="10%" class="{$bgcolor}">{$profilefields['fidX']}</td>

Where X is the id of the custom profile field you want to show. Bear in mind you will need to add in another column like you have done previously as well.
I meant the Custom Profile Field on the Showteam page.

Thank you very much, works well. Hope i will figure this all out someday Big Grin