Quote:
Originally Posted by kall
Alrighty then, try this:
PHP Code:
if ($type == 'url') { global $bbuserinfo; if (is_member_of($bbuserinfo, 6)) { // standard URL hyperlink return "<a href=\"$rightlink\" target=\"_blank\">$text</a>"; } else { return "<a href=\"$rightlink\" rel=\"nofollow\" target=\"_blank\">$text</a>"; } } else
This will make it so anyone who is an admin (group 6 - change this to whatever you want) will not have their links tagged with the nofollow attribute.
The syntax for multiple groups escapes me at present, but if someone can remind me, I will change it.
|
PHP Code:
if (is_member_of($bbuserinfo, 6)) or (is_member_of($bbuserinfo, X))
I believe that would be the correct syntax. Replacing X with the group you want. Don't quote me on that, thats just what I normally use in templates, but then again you are editing a php file and I don't know php all that well.
edit, actually I believe it would be
PHP Code:
if (is_member_of($bbuserinfo, 6)) || (is_member_of($bbuserinfo, X))
http://www.w3schools.com/php/php_operators.asp