Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
FractalizeR: Extended Post Censor Details »»
FractalizeR: Extended Post Censor
Version: 0.9, by FractalizeR FractalizeR is offline
Developer Last Online: Nov 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.8 Rating:
Released: 11-11-2007 Last Update: Never Installs: 28
Uses Plugins
Translations Is in Beta Stage  
No support by the author.

What this hack does?
This hack is a post censor, that will replace unwanted words and phrases by the values you specify.

Features:
  • Supports standard replace
  • Supports replacing using regular expressions
  • Allows to apply censor only to specified usergroups
  • On-the-fly regular expression syntax checking

Some use cases:
  • I don't like posts with multiple exclamation or question marks. Maximum three signs is allowed.
  • Sometimes you ban competitor forum names from using on your forum. But users enter them separating letters by spaces or underscores. This is unwanted and it is difficult to deal with using standard censor
  • Any forms of curses and bad words should be replaced by XXX

Version was tested under VB 3.6.8, but supposed to work on any 3.6.x release. Please report all compatibility issues here.

Please look at control panel screenshot below (please mind, that I am russian and screenshots are from russian forum, so for example usergroup names are incorrectly displayed when I set langauge to English).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 11-18-2007, 08:10 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Darn, I was hoping it might do titles too. That's one of the big things that would be usefull to censor on my forum.

I'll take a look into the hack & settings to see if I can make it work.... What version of PHP are you running?
Reply With Quote
  #33  
Old 11-19-2007, 08:53 AM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running 5.2.1. But hack should work on all PHP versions, that VB support.
I will also take a look. The problem is, that thread titles are displayed in many templates and deep hacking is needed.
Reply With Quote
  #34  
Old 11-19-2007, 12:57 PM
ePrOmD's Avatar
ePrOmD ePrOmD is offline
 
Join Date: Aug 2006
Location: jump! | argentina
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi fractalizer

i wanna use your hack to filter mails directions.

so everytime that some user writes somebody@someserver.another.com the hack will replace it with XXXXXX@XXXX.XXX
i don?t have idea of expressions, so i dont know, how can i do it :$
so it?ll be very grateful if you guide me to do that
Reply With Quote
  #35  
Old 11-19-2007, 09:37 PM
Skublum Skublum is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brandondrury View Post
I'm not sure if I did something wrong or not, but it's not working. The text isn't showing up and I'm getting the following errors.

Warning: array_keys() [function.array-keys]: The first argument should be an array in \includes\class_postbit.php(296) : eval()'d code on line 15

Warning: array_values() [function.array-values]: The argument should be an array in \includes\class_postbit.php(296) : eval()'d code on line 15

Warning: array_keys() [function.array-keys]: The first argument should be an array in \includes\class_postbit.php(296) : eval()'d code on line 23

Warning: array_values() [function.array-values]: The argument should be an array in \includes\class_postbit.php(296) : eval()'d code on line 23

Warning: preg_replace() [function.preg-replace]: Empty regular expression in \includes\class_postbit.php(296) : eval()'d code on line 23

I'm using 3.6.8 on a local Xampp server.

Brandon

Brandon
I know what the problem you are having is.

It is simply that you need to put a comma after the single quote if there is going to be ANOTHER thing to censor after it.

In other words the comma should be after each one with the exception of the last one

so it SHOULD look like this

PHP Code:
return(array(

'StringIWantToReplaceFrom1' => 'StringIWantToReplaceInto1',

'StringIWantToReplaceFrom2' => 'StringIWantToReplaceInto2',

'StringIWantToReplaceFrom3' => 'StringIWantToReplaceInto3',

'StringIWantToReplaceFrom4' => 'StringIWantToReplaceInto4',

'StringIWantToReplaceFrom5' => 'StringIWantToReplaceInto5'

)); 
Reply With Quote
  #36  
Old 11-19-2007, 09:51 PM
Skublum Skublum is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One thing that I might just be missing or it might not exist,

the ability to remove case sensitive blocking. So that if it is at the beginning of a sentence and is capitalized it still gets blocked.
Reply With Quote
  #37  
Old 11-20-2007, 06:33 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skublum View Post
I know what the problem you are having is.

It is simply that you need to put a comma after the single quote if there is going to be ANOTHER thing to censor after it.

In other words the comma should be after each one with the exception of the last one

so it SHOULD look like this

PHP Code:
return(array(

'StringIWantToReplaceFrom1' => 'StringIWantToReplaceInto1',

'StringIWantToReplaceFrom2' => 'StringIWantToReplaceInto2',

'StringIWantToReplaceFrom3' => 'StringIWantToReplaceInto3',

'StringIWantToReplaceFrom4' => 'StringIWantToReplaceInto4',

'StringIWantToReplaceFrom5' => 'StringIWantToReplaceInto5'

)); 
But the examples we tried all had coma's at the end of each line....

Even if I try it with the default installed blank setting I get the errors. I used this:
Code:
return(array());
And I get error'ss with these samle ones too:
Code:
return(array(
'StringIWantToReplaceFrom1' => 'StringIWantToReplaceInto1',
'StringIWantToReplaceFrom2' => 'StringIWantToReplaceInto2'
));

WTF, just got a msn from a board member while I was testing... setting says its set to admins only, but my friend got the same errors and he is just a regular basic user, so this mod should not even be affecting him....


Quote:
Originally Posted by Skublum View Post
One thing that I might just be missing or it might not exist,

the ability to remove case sensitive blocking. So that if it is at the beginning of a sentence and is capitalized it still gets blocked.
Regex does that if you put '/wordToReplace/i' The i makes it case insensitive.
Reply With Quote
  #38  
Old 11-21-2007, 02:22 PM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ePrOmD View Post
hi fractalizer

i wanna use your hack to filter mails directions.

so everytime that some user writes somebody@someserver.another.com the hack will replace it with XXXXXX@XXXX.XXX
i don?t have idea of expressions, so i dont know, how can i do it :$
so it?ll be very grateful if you guide me to do that
Try such regex:
'/\s+[A-Za-z_\.]+@[A-Za-z_]+\.[A-Za-z_]+\s+/' =>'XXX@XXX.XXX'

2Big_Ern:
Still cannot reproduce error on my PC, but will check these days.
Reply With Quote
  #39  
Old 11-22-2007, 12:48 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just find it odd that me & bandonury are getting the same error.... I'm trying to think what might be causing it, but my forum has no other mods installed and I am on a good host that usually never has any tech problems r limitations like some of the free hosts....

thanks for looking into it. I hope we can find a solution, as I would love to install your mod
Reply With Quote
  #40  
Old 11-22-2007, 08:55 PM
Skublum Skublum is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway this could work for people using different cases. I don't care if they use different characters to get the word across, that is against my forums rules and they will be warned, but I hate punishing those who know of the censor and just type the word anyway expecting it to be blocked but then because it was at the beginning of a sentence or they write in all caps it gets by.
Reply With Quote
  #41  
Old 11-22-2007, 11:17 PM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make it case insensitive
Quote:
Originally Posted by Big_Ern View Post
Quote:
Originally Posted by Skublum View Post
One thing that I might just be missing or it might not exist,

the ability to remove case sensitive blocking. So that if it is at the beginning of a sentence and is capitalized it still gets blocked.
Regex does that if you put '/wordToReplace/i' The i makes it case insensitive.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 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.05005 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete