jojo77
06-07-2005, 10:33 PM
Anyway to disable BB code for user's sig but not the Admin's sig?
Andreas
06-07-2005, 10:59 PM
Yes.
*** Untested ***
In functions_showthread.php
FIND
if (!isset($sigcache["$post[userid]"]))
{
$parsed_postcache['skip'] = true;
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
REPLACE that WITH
if (!isset($sigcache["$post[userid]"]))
{
$parsed_postcache['skip'] = true;
$post['signature'] = parse_bbcode2($post['signature'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode'] AND ($post['permissions']['adminpermissions'] & CANCONTROLPANEL));
In profile.php
FIND
$bbcodeon = iif($vboptions['allowbbcode'], $vbphrase['on'], $vbphrase['off']);
REPLACE that with
$bbcodeon = iif($vboptions['allowbbcode'] AND ($permissions['adminpermissions'] & CANCONTROLPANEL), $vbphrase['on'], $vbphrase['off']);
FIND
$previewmessage = parse_bbcode2($signature, $vboptions['allowhtml'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode']);
REPLACE that with
$previewmessage = parse_bbcode2($signature, $vboptions['allowhtml'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode'] AND ($permissions['adminpermissions'] & CANCONTROLPANEL));
jojo77
06-09-2005, 03:49 PM
hmm didn't work, said parse_bbcode2 not found on the top of the page
Andreas
06-09-2005, 03:56 PM
W00t?
Normally that can't be, parse_bbcode2() is defined in functions_bbcodeprase.php as well as parse_bbcode().
Please check the file edits you made.
Any1 else willing to try?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.