MyBB Community Forums

Full Version: Add Group Image to showteam_usergroup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to add the definded Group Image for each Group into each header of the showteam_usergroup

This is our Team site https://www.fc-squad.de/fcbbmy/showteam.php

I want the Group Images to eappear next to the Group title and so on! We use Military ranks, so i want the people to see the insignias and the titel like
Header: STAR General
List: Ridoc ... etc.

Should look like this in the end [attachment=38658]


In worst case, if this is not possible i could live with the GroupImage in front o the user Name (not avatar)

P.S: i've searched in the forum but only came to some closed and not solved posts .. or was i searching for the wrong words?!

Find Solution below
(2017-03-31, 09:31 AM)Ridoc Wrote: [ -> ]I would like to add the definded Group Image for each Group into each header of the showteam_usergroup

This is our Team site https://www.fc-squad.de/fcbbmy/showteam.php

I want the Group Images to eappear next to the Group title and so on! We use Military ranks, so i want the people to see the insignias and the titel like
Header: STAR General
List: Ridoc ... etc.

Should look like this in the end


In worst case, if this is not possible i could live with the GroupImage in front o the user Name (not avatar)

P.S: i've searched in the forum but only came to some closed and not solved posts .. or was i searching for the wrong words?!

You mean what I have on my page? If so, tell me and I'll show you

http://sweetdeaths.esy.es/memberlist.php
Hei, thank you for the reply

No, i mean in the "forum team" section.
http://sweetdeaths.esy.es/showteam.php

In the memberlist i have the Group images already
little bump
You're stuck doing a core file edit for this one.

Go to this line: https://github.com/mybb/mybb/blob/featur...am.php#L71

And add this:
$usergroupinfo = $cache->read("usergroups");

Then go to this line: https://github.com/mybb/mybb/blob/featur...m.php#L117

Add this code:
$groupimage = $usergroupinfo[$usergroup['gid']]['image'];

Finally, in your showteam_usergroup template, you'll put an img tag with a src attribute of {$groupimage} where you want it to appear.
Perfect! Thank you, that is exactly what i needed

Edited topic, for people to find it