MyBB Community Forums

Full Version: Rank & Avatar on Showteam Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can I get a user's avatar and group image to show on showteam.php page? I tried using a lot of hooks and templates but nothing worked.

Help will be appreciated.

Thanks
I edited the showteam.php in the core file.

I will get a copy - this is what I have:

http://blackcanvas.net/showteam.php << like that?

I dont use group images though.
Yes, like that. And you attached the wrong file mate.
DOH - sorry - will add CORRECT file Big Grin

File in previous post is now correct file.
Thanks. Just in case, could you tell me how to put the Group Icon.
I have no idea because I did not bother with it, sorry.

What you can do is add

{$usergroup['usertitle']} and that gets the title, and {$user['usergroup']} gets the number of the usergroup back so you could try css.
I forgot - you will of course need the {$user['avatar']} in your template where you want the avatar to be.
Excuse me, Sorry to interfere in your thread that file was wrong I guess.

Waiting for the modded showteam file.
Wrong? What was wrong?

That is the showteam I use in the link in my post.

I did not change templates etc in the core file - I just made variables available. This is not a plugin.

use {$user['avatar']} to show the avatar in the usergroup_user template in the show forum team template group.

showteam_usergroup_user

<tr>
<td width="80%" class="{$bgcolor}"><div class="float_left">{$user['avatar']}</div><a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a><br/>{$usergroup['usertitle']}</td>
<td width="10%" class="{$bgcolor}">{$emailcode}</td>
<td width="10%" class="{$bgcolor}">{$pmcode}</td>
</tr>
This is my template code,

<tr>

<td width="80%" class="{$bgcolor}"><div
class="float_left">{$user['avatar']}</div><a
href="{$user['profilelink']}"><strong>{$user['username']}</strong></a><br/>{$user['avatar']}</td>

<td width="10%" class="{$bgcolor}">{$emailcode}</td>

<td width="10%" class="{$bgcolor}">{$pmcode}</td>

</tr>

http://gyazo.com/ef764ddbc4a99360b03cb20b6122ae8f

I've used {$user['avatar']} in the code but I guess it's not working.

Why is those variables are not working ?
Pages: 1 2