Kirk Y |
07-20-2005 03:53 AM |
Quote:
Originally Posted by Neutral Singh
Code:
Edit includes/functions_showthread.php
FIND
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ADD BELOW:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Logician Hack : Admin signatures parsed for vb variables
if ($post['usergroupid']==6)
{
@eval('$post[signature] = "' . addslashes($post['signature']) . '";');
$post['signature'] = stripslashes($post['signature']);
}
// Logician Hack : Admin signatures parsed for vb variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
JUST BELOW THE ABOVE CODE, ADD:
Code:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Logician Hack : Admin signatures parsed for vb variables
if ($post['usergroupid']==2)
{
@eval('$post[signature] = "' . addslashes($post['signature']) . '";');
$post['signature'] = stripslashes($post['signature']);
}
// Logician Hack : Admin signatures parsed for vb variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(Notice the change in above code --> if ($post['usergroupid']== 2). You can do it for each usergroupid, separately. :)
Enjoy !!
|
Couldn't you just do "if ($post['usergroupid']==2 OR 6)"? I don't know exactly how the OR thing works, but I know it can be used in a fashion similar to that, atleast that way you wouldn't need to repeat the entire code addition. Oh and by the way, great hack!
|