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)
-   -   Enable/Disable Censor in individual forums (https://vborg.vbsupport.ru/showthread.php?t=45238)

SWFans.net 11-06-2002 07:10 AM

Yeah you should delete it. Use this command.

PHP Code:

ALTER TABLE forum DROP forceusepostprefix


Tungsten 11-12-2002 05:39 PM

In order to make this work with VBulletin 2.2.8 you must change any instances of the following in the hack:

Quote:

$subject=censortext($subject);
To read as follows instead:

Quote:

$title=censortext($title);

Just do a mass search and replace on the hack code and you'll be set. :)

BigCheeze 12-01-2002 01:00 AM

Does anyone know if this will work on 2.2.5?

SemperFidelis 01-08-2003 04:54 AM

In vb 2.2.9, this doesnt exist :
PHP Code:

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')"); 

Any suggestions on what it was replaced with ?

SWFans.net 01-08-2003 11:30 PM

It exists.

ImportPassion 02-05-2003 03:05 PM

Quote:

Originally posted by Tungsten
In order to make this work with VBulletin 2.2.8 you must change any instances of the following in the hack:



To read as follows instead:




Just do a mass search and replace on the hack code and you'll be set. :)

well, 2.2.9 newthread.php, this is not the case, it's still using $subject=censortext($subject);

One more thing, if you have Lesane's store hack, be careful you don't overwrite your queries.

Link14716 02-05-2003 09:31 PM

Cool hack, but I don't use censors. If someone wants to cuss every 3rd word they say, then, whatever, they'll just be making themselves look immature, and if it annoys me and my mods enough, we'll bake some ban cakes. :)

Cyricx 06-03-2003 07:07 PM

Great hack!!

Had to do the changes in post 12 and remove one of the } from the second edit for the editpost.php but other then that..

Works like a charm. :)

Boofo 06-03-2003 08:37 PM

SWFans.net, if you replace all instances of this:

PHP Code:

if ($foruminfo[censor]) { 

with this:

PHP Code:

 if ($foruminfo[censor] AND !in_array($bbuserinfo[usergroupid], array(567))) { 

will this hack still work as it is supposed to for other than staff?

MissN 07-19-2003 02:56 AM

Like another person here said, you need to remove a { to get it to work when you edit a post, otherwise you'll get a parse error.

This

Code:

// censor hack
  if ($foruminfo[censor]) {
    $DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars(censortext($title)))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
  } else {
    $DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
  }
    //$title="";
  }
  // end hack

Should be this:

Code:

// censor hack
  if ($foruminfo[censor]) {
    $DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars(censortext($title)))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
  } else {
    $DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");

    //$title="";
  }
  // end hack



All times are GMT. The time now is 11:35 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.01305 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete