Hmm thanks, but that doesn't work for me, ackwardly enough, mine does though :-)
---------------------------------------------------------
function admin($admintext) {
global $post, $bbuserinfo, $DB_site;
if ($bbuserinfo['usergroupid']!=5 AND $bbuserinfo['usergroupid']!=6 AND $bbuserinfo['usergroupid']!=7) {
$adminktext="";
}
return "$admintext";
}
---------------------------------------------------------
If i am not mistaken (i could be though) the script above means (simply said):
If user is NOT in groupid 5 and NOT in group id 6 and NOT in group id 7 show nothing, if he is, show admin text.
Forgive me i am trying to learn PHP abit, and i hope i doing ok
And i have another question, how do you design the $admintext? Can i use stylesheet for that? If i try this, it will show the div class box for people that aren't allow to see it.
return "<div class=\"admtxt\">$talktext</div>";
Thanks again!
/Aaron
-