MyBB Community Forums

Full Version: Group Link? Is This Possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've coded a Usergroup Legend but I currently have each group linked to the showteam.php but instead of doing it that way I want it to take the user to a specific group.

Current Group Legend i've created.
[Image: FGrg8Nw.png]

So if they click "Administrator" then it will take them to say, showteam.php?action=administrator and show a list of whos currently in the administrators group or something along those lines.. Would anyone be willing to show me how? or show me an easier way. thanks!
(2013-10-31, 05:11 AM)MJ456 Wrote: [ -> ]It will not be possible without a plugin. Mybb default don't have such feature.

Hmm, I didn't think so. I'll work with it a bit then, Thanks for the reply :]. If anyone has any helpful advice or possibly has done this before or could help me out with making this happen by all means post here or PM me ty!
You can use jQuery to do that and maybe if you modify your showteam templates you can add for every usergroup a new group and add as you wish, like my profile tabs, and you maybe can add some conditionals on your showteam.php file, maybe inside this two lines:

if($modrows && $usergroup['gid'] == 6)
{
eval("\$grouplist .= \"".$templates->get("showteam_moderators")."\";");
}

if($usergrouprows)
{
eval("\$grouplist .= \"".$templates->get("showteam_usergroup")."\";");
}


in the if $usergrouprows you can work with every id and take a new template, then you work inside this with jQuery thats what i do.