MyBB Community Forums

Full Version: Avatars On Forumteam Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
How can I put avatars of every forumteam members on Forumteam page?

Thanks in advance.
Hello there..


Open showteam.php

Find
$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, displaygroup, usergroup, ignorelist, hideemail, receivepms", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));

Replace with

$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, avatar, displaygroup, usergroup, ignorelist, hideemail, receivepms", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));

Now find

//If the current group is a moderator group
		if($usergroup['gid'] == 6)

Above it add
if($user['avatar'] != '')
		{
			$avatar = "<img src=\"".$user['avatar']."\" />";
		}

Now in the templates manager... open showteam_usergroup

Find
colspan="3"

Replace it with

colspan="4"

Find
<td class="tcat"><span class="smalltext"><strong>{$lang->uname}</strong></span></td>

above it add
<td class="tcat"><span class="smalltext"><strong>Avatar</strong></span></td>

Now open showteam_usergroup_user

Find
<td width="80%" class="{$bgcolor}"><a href="member.php?action=profile&amp;uid={$user['uid']}"><strong>{$user['username']}</strong></a></td>
change the 80% to 70%..
Above this line add
<td width="10%" class="{$bgcolor}">{$avatar}</td>

Repeat both template modification respectively to both showteam_moderators and showteam_moderators_mod

regards
You are perfect.
Thank you so much.
Hey there,

Could you put a screenshot here so I could check how it looks like ?
Thanks ! Smile