Log in

View Full Version : Help me to fix this code!!!


v123shine
11-08-2011, 10:33 AM
I found this simple plugin.

I want set this plugin only work for usergroupid '2'

This plugin i put in newreplay_post_star :


$pagetext = $vbulletin->GPC['message'];
if (($vbulletin->userinfo[posts] < $vboptions[link_limit])
and (stristr($pagetext,'[url')
or stristr($pagetext,'[URL'))) {
eval(standard_error(fetch_error('error_nourlallowe d')));
}


Please help me!!
Thank You

kh99
11-08-2011, 02:04 PM
I think you can just surround the entire code with an if, like:

if (is_member_of($vbulletin->userinfo, 2))
{
$pagetext = $vbulletin->GPC['message'];
if (($vbulletin->userinfo[posts] < $vboptions[link_limit])
and (stristr($pagetext,'[url')
or stristr($pagetext,'[URL'))) {
eval(standard_error(fetch_error('error_nourlallowe d')));
}
}

v123shine
11-09-2011, 12:19 AM
Thank you so much kh99 for help me ;)