PDA

View Full Version : How do I exempt admin


Remi
01-14-2002, 06:16 PM
Hi every body

I want to exempt administrator from censor word and from the search Floodcheck.

Is there a way of doing this

They talled me at vbulletin.com that the right place to aske is here

Thanks in advance

Xenon
01-14-2002, 07:13 PM
in editpost.php and newreply.php search

$title=censortext($title);
$message=censortext($message);

and change it so


if($bbuserinfo[usergroupid]!=6) {
$title=censortext($title);
$message=censortext($message);
}


in newthread.php search

$subject=censortext($subject);
$message=censortext($message);

an change it to

if($bbuserinfo[usergroupid]!=6) {
$subject=censortext($subject);
$message=censortext($message);
}


this should work i think

Remi
01-15-2002, 12:30 AM
Thank you very much, It make sence but it is not working :)

Do you recomend any thing else

Xenon
01-15-2002, 11:09 AM
yeah you're right *bounceonkeyboard*

additionally open your functions.php

and find

return censortext($bbcode);

and change it to

return $bbcode;

now it should work, and everything you post as admin doesnt be censored.

be informed, that if you change your censored words, with this hack it doesen't change old posts. to to that, you have to hack a little more ^^

Remi
01-15-2002, 03:39 PM
Thank you very much :)

https://vborg.vbsupport.ru/external/2011/01/19.gif

chrisvonc
04-15-2004, 01:40 PM
if($bbuserinfo[usergroupid]!=6) {
How would I modify this to add a 2nd group into this code? I would like to add the moderator group.

Thanks!

Boofo
04-15-2004, 01:42 PM
if($bbuserinfo['usergroupid']!=6 AND $bbuserinfo['usergroupid']!=5) {
or you could:


if(!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {

chrisvonc
04-15-2004, 01:48 PM
Wow Boofo... Super fast with that one! Kudos! :)

Thank you I will give it a go tonight.

Chris

Boofo
04-15-2004, 01:49 PM
Check my post above. I gave you another option. ;)

chrisvonc
04-15-2004, 10:24 PM
Hi again Boofo.. I tried the first code you posted and that did the trick.

Thank you again!

Chris

chrisvonc
04-16-2004, 04:47 PM
One last follow up, should this code be applied to the member.php as well?

I notice that I can set the image signature for admins and mods in the ACP, but if they (including myself, go into our profile through the UserCP and edit other info in the signature, the exempt doesnt work and resets the IMG tags to the replacement ***.

TECK
04-17-2004, 07:17 PM
in editpost.php and newreply.php search

$title=censortext($title);
$message=censortext($message);

and change it so


if($bbuserinfo[usergroupid]!=6) {
$title=censortext($title);
$message=censortext($message);
}


in newthread.php search

$subject=censortext($subject);
$message=censortext($message);

an change it to

if($bbuserinfo[usergroupid]!=6) {
$subject=censortext($subject);
$message=censortext($message);
}


this should work i think
Heh, you didn't add spaces between operators... :p
You are a rebel with VB3 coding rules? hihi... ;)

Boofo
04-17-2004, 07:29 PM
You know how those Germans are, Floren. ;)

Xenon
04-18-2004, 12:29 PM
hehe, that post is over 2 years old.
not even the vb devs followed the vb3 coding rules at that time :p