Quote:
Originally Posted by luroca
A plugin for not registered (and so) can not see links? It looks easy, I work in it.
|
Something is messing up - I setup all the usergroups which should see links but whatever I do links don?t show up for any of the specified groups.
Used code :
PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" product="vbulletin">
<title>No links</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if (!is_member_of($post, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ,19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42))
{
$this->post['message'] = ereg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*>)', '</a>(<a href="http://www.domain.tld/register.php" title="Please register first or login!" target="_blank">No link ?</a>)', $this->post['message']);
}]]></phpcode>
</plugin>
</plugins>
Should work, or ?