Quote:
Originally Posted by Michael Morris
Now, might I recommend the following. Your conditional references $bbuserinfo. That will only affect the viewing user - so spiders still see no links in posts regardless of the user. To pull up the post user data, use $post.
|
You're right, but $post also has the usergroupid. Here's the code I'm using--it's working great. It allows normal links for moderators, supermoderators, administrators and users with more than 100 posts.
PHP Code:
global $post;
if (is_member_of($post, 6)
OR is_member_of($post, 5)
OR is_member_of($post, 7)
OR $post['posts'] > 100)
{
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
else
{
return "<a href=\"$rightlink\" rel=\"nofollow\" target=\"_blank\">$text</a>";
}