2011-02-13, 03:18 PM
I'm having a lot of trouble learning how to make things that come up in templates as {$blahblah}
I know how to place it in the template through the plugin and all that, but I don't know how to make it work right all the time.
I know how to place it in the template through the plugin and all that, but I don't know how to make it work right all the time.
function usercplink()
{
global $db, $lang, $mybb, $templates, $usercplink;
$usercplink = '';
if($mybb->user['usergroup'] == 8)
{
$usercplink = "<tr><td class=\"trow1 smalltext\"><a href=\"forms.php\" class=\"usercp_nav_item\">Forms</a></td></tr>";
}
}
I wasn't sure exactly how to go about finding if the user is in group id 8... and I wasn't sure if anything else is wrong...