vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderators and Administrators are exempt from censorship (https://vborg.vbsupport.ru/showthread.php?t=36540)

Zzed 03-24-2002 10:00 PM

Moderators and Administrators are exempt from censorship
 
This hack disables the censor feature for moderators and administrators and
allows them to candidly spit out profanity. :)

It is a very simple hack, and I am embarassed to call it one. But it had been requested by another member. So here it is. :)

Here is how to apply this hack.

In functions.php:

look for:
PHP Code:

function censortext($text) {
  global 
$enablecensor,$censorwords,$censorword,$censorchar



replace with:
PHP Code:

function censortext($text) {
  global 
$enablecensor,$censorwords,$censorword,$censorchar,$bbuserinfo;
  if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)){
    
$enablecensor 0;
  } 

look for:
PHP Code:

        $bbcode=str_replace("{""{"$bbcode); // stop people posting replacements in their posts

  
return censortext($bbcode); 

Replace with:
PHP Code:

        $bbcode=str_replace("{""{"$bbcode); // stop people posting replacements in their posts

  
return $bbcode

Hope you guys like it.

ExcErr 03-25-2002 04:33 PM

cool!:)

Marshalus 03-25-2002 04:44 PM

Exactly what I was needing!

snyx 03-25-2002 05:54 PM

ditto, thanks!

Remi 03-26-2002 09:31 AM

OK Zzed

It is working for me (finally) :D

I think there is a problem with this hack.

This hack deos not exempt censored text if posted by admins to registered.

All wahat it does it to reveal censored text to admins

Zzed 03-26-2002 04:35 PM

Oops. :eek: Sowwy. :(

Ok, I fixed it. It was another one liner. :)

DemiNeo0101 03-26-2002 07:00 PM

ohhhhhhhhh.... Now i can curse at my baby users.

Remi 03-26-2002 07:36 PM

Thanks Zzed

It is working perfictly now :D

Zzed 03-26-2002 07:47 PM

Very cool. :)

Thanks for the feedback.

Mithan 04-27-2002 11:56 AM

I did this and it didn't work. Im using VB 2.2.5... :(

Boofo 02-22-2003 08:55 AM

Great hack, sir, but you might want to update the text file in your first post. ;)


All times are GMT. The time now is 03:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete