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)
-   -   User-Selectable Optional Language Replacement Censor (https://vborg.vbsupport.ru/showthread.php?t=53640)

Andrew111888 06-07-2003 09:32 PM

I just double checked; I did have something incorrect that I fixed, then double checked again and all seems to be in order.. but it still won't stay checked yes.

007 06-08-2003 05:07 AM

I would suggest reverting all the edits back to how they were before hacking and trying again. (Reversing the query won't do anything so you can leave that how it is with the new userfield and all).

If you run into any code that you aren't sure about post it and I will help you out. :)

Hope all goes well.

Andrew111888 06-08-2003 04:49 PM

I just took half an hour to re-install this and IT STILL DOESN'T KEEP "YES" SELECTED!!

007 06-08-2003 05:37 PM

Ok check Step 3.

Also, check the modifyoptions template edit in Step 6.

Make sure you have the $usecensornotchecked and $usecensorchecked variables in there as well in the modifyoptions edit or the buttons will not be checked.

Also, if you tried to make the code in Step 6 in it's own seperate template it will not work. I tried this before too and everything else was the same and it didn't work. It displayed the option field but yes or no was not selected.

Did you do anything different at all with the hack?

Andrew111888 06-08-2003 06:24 PM

I have it all fine:(

007 06-08-2003 07:44 PM

I really don't know then. The only thing I can say is if you want I can go check out your code. I don't see any other way to do it.

I don't see why it's not working for you but I would have to see your code to find the problems. Maybe PM me about it or something.

Pikok 07-13-2003 04:43 AM

I had the same problem with the filter getting turned off and not working. There's an error in the code in the installation file..


In "root/member.php" where it says to add:
PHP Code:

// User-Selectable Optional Language Censor by 006
  
$swearfilter=iif($swearfilter=="yes",1,0); 

Under:
PHP Code:

$options+=iif($showimages=="yes",4,0); 

Add This Instead:
PHP Code:

// User-Selectable Optional Language Censor by 006
  
$usecensor=iif($usecensor=="yes",1,0); 

Basically, if you've already installed this hack.. Just replace both instances of "swearfilter" with "usecensor" in that line and you should be all set. ;)

Andrew111888 07-13-2003 04:59 AM

Pikor, you are a LIFE saver!

Pikok 07-13-2003 05:15 AM

No problem.. Happy to help. ;)

Pikok 07-13-2003 05:52 AM

Okay, I have a question..

Anybody have a suggestion on how to filter for example "crap", but not "scrap" with this hack? I know I could check for " crap", "crap ", and " crap ".. But, then if "crap" was the only word on a line it wouldn't get filtered. I can only figure out how to get it to filter the word if there's other text on the line with it.

Another idea would be to be able to add a list of words that would be ignored as well as words to be filtered. If this could be done, it would be less work and probably give better performance as there would only be the 2 lines vs. the 4+ lines.

I'm not quite sure how to do it with this hack. Any ideas?!? :confused:

Mr L 09-03-2003 08:07 AM

Great hack here, it is installed.

One question, how do I disable this for guest users and people not logged in?

Thanks.

007 01-09-2004 12:04 AM

Pikok I tried doing somethng similar to that but to no avail. Also thanks for pointing out the error in the file. I changed the name at the last minute and guess I missed a few. Install file was updated a while ago. Just got around to posting now. Haven't had a lot of time for a while.

fareastbuddy 02-03-2004 10:00 PM

Great hack...

So has anyone been able to censor the thread/post titles? Also, I'm also having problems with the censor being turned off. Everytime I update my profile and click Submit, the censor turns off and I have to turn it back on.

Bison 03-30-2004 06:51 AM

This hack would be even better if you can also do this through the Admin CP. I was just looking for something like this ... just for the Admin CP. I rather have this to work for just the Admins, since some members like the flame the board with curse words and profanity.

Instead of allowing them to express themselves with these curse words, change the word to something otherwise that the four-letter word.


All times are GMT. The time now is 04:20 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.01285 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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