MyBB Community Forums

Full Version: {$usergroup['description']} not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so i wanted to add the usergroup description under the title in the showteam.php so i added in the header: {$usergroup['description']} but nothing shows up Sad
Do you want to show Description of end user's usergroup? If so, use this;
Your description: {$mybb->usergroup['description']}
that seems to display the description of only one usergroup on all of them
http://prophecycraft.org/showteam.php
Open ./showteam.php and find;
$query = $db->simple_select("usergroups", "gid, title, usertitle", "showforumteam=1", array('order_by' => 'disporder'));
and Change it to;
$query = $db->simple_select("usergroups", "gid, title, usertitle, description", "showforumteam=1", array('order_by' => 'disporder'));
Thanks that worked perfectly one question if i change "gid, title, usertitle, description", "showforumteam=1" to * would anything work then?
It'll work but Its not recommended, since it would fetch each and every column, and its not needed on the present circumstances. Only important columns are needed to fetch.
You can accomplish this without modifying core files.

$groupscache[$usergroup['gid']]['description']

Might take some fiddling, but it might also get caught by the filter in the templates.