Solved: 4 Years ago [How To?] Add Group Image to showteam_usergroup
#1
Solved: 4 Years ago Thumbs Up 
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?!

Find Solution below
Reply
#2
Solved: 4 Years ago
(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
Reply
#3
Solved: 4 Years ago
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
Reply
#4
Solved: 4 Years ago
little bump
Reply
#5
Solved: 4 Years ago
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.
Reply
#6
Solved: 4 Years ago
Perfect! Thank you, that is exactly what i needed

Edited topic, for people to find it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)