PDA

View Full Version : Limiting vbCode in signatures to certain group(s)?


SoRnMaN
02-11-2003, 02:10 PM
After searching through the forums here and at vBulletin.com, I haven't quite been able to find what I am looking for. I know you can turn on/off vbCode for signatures in vBulletin itself, but I need to only allow certain groups of users to be able to have vbCode.

Any help or ideas would be appreciated!

Xenon
02-11-2003, 04:15 PM
open admin/functions.php

find:
// ###################### Start bbcodeparse #######################
function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) {

global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsm ilies;

if ($forumid == 0)
{
$dohtml=$allowhtml;
$dobbcode=$allowbbcode;
$dobbimagecode=$allowbbimagecode;
$dosmilies=$allowsmilies;
}

and change to:// ###################### Start bbcodeparse #######################
function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) {

global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsm ilies,$post;

if ($forumid == 0)
{
$dohtml=$allowhtml;
if($post[usergroupid] == 6) {
$dobbcode=1;
} else {
$dobbcode=0;
}
$dobbimagecode=$allowbbimagecode;
$dosmilies=$allowsmilies;
}

this will just allow admins to use bbcode

SoRnMaN
02-11-2003, 06:09 PM
Thanks much! That is just what I was looking for.

Neo
02-11-2003, 06:49 PM
I hate when idiots delete my posts.

Xenon
02-11-2003, 06:53 PM
Originally posted by Neo
I hate when idiots delete my posts.

??
What has this post to do with the topic Neo??

Also who should have deleted which post where?