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
  #22  
Old 11-15-2007, 11:48 AM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you running 3.6.8 on your server? Could you please try to uninstall and reinstall my hack? It seem like no settings are saved or evaluated inside plugin.
Reply With Quote
  #23  
Old 11-15-2007, 12:10 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When searching for words to replace, will it also search for ones with spaces? For example, if you block "example", will it also block "ex am ple" on the fly? If not, this is exactly like the Replacement Variable Manager that's built into the forum.

Now, having a regex area is kind of nice, but I could swear that's built into the forum as well, just can't remember where I've seen it in the AdminCP.
Reply With Quote
  #24  
Old 11-15-2007, 12:30 PM
mrkiwi mrkiwi is offline
 
Join Date: Jun 2007
Location: Russia, Saint-Petersburg
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, 3.6.7 at the moment.
I'll upgrade and try again )
Reply With Quote
  #25  
Old 11-15-2007, 01:22 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work with changing quotes from:

Quote:
“ -and- ” -and- ’
to

Quote:
" -and- " -and- '
Rss feeds don't like the previous curly quote.
Reply With Quote
  #26  
Old 11-15-2007, 03:32 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 Wired1 View Post
Now, having a regex area is kind of nice, but I could swear that's built into the forum as well, just can't remember where I've seen it in the AdminCP.
Ok. If you will find this out - tell me.

Quote:
Originally Posted by mrkiwi
no, 3.6.7 at the moment. I'll upgrade and try again )
Ok. I am not sure will this help or not, but I am running 3.6.8 and all fine.

Quote:
Originally Posted by SBlueman
Would this work with changing quotes from:
You can make it work, but my censor does not affect RSS. Displaying posts only.
Reply With Quote
  #27  
Old 11-16-2007, 04:57 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant, exactly what I need, will install later.
Reply With Quote
  #28  
Old 11-17-2007, 03:40 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this hack censor thread titles as well as the post body text?
Reply With Quote
  #29  
Old 11-17-2007, 05:49 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FractalizeR View Post
brandondrury, have you get rid of those nasty error messages? I cannot reproduce this situation on my forum. About filter - have you set usergroups this filter should be applied to? Filtering will work only for usergroups you select.

Does someone who also installed this hack has any problems with it?
I also installed it and am getting the same errors.

Quote:
Originally Posted by vB
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
These errors appear on every post I try to view at the very top of the page (right where my logo banner is) The post itself is blank.

vB 3.6.8
PHP 4.4.4
MySQL Version 4.1.22-standard

I tried the same Control Panel settings as brandondrury, as well as my own custom regex.

This mod looks perfect for my forum. I hope we can find a solution
Reply With Quote
  #30  
Old 11-17-2007, 06:18 AM
Big_Ern Big_Ern is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I found a solution for this problem: http://gallery.menalto.com/node/57633

some guy was running into the same problem with another chunk of code he was writing.
Quote:
Fixed this one by adding a line to .htaccess

php_value session.cookie_domain MY.DOMAIN.COM
I would rather not modify my .htaccess if there's a simlpe fix to your hack that could be done instead.

Cheers

Aaron
Reply With Quote
  #31  
Old 11-17-2007, 07:45 PM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is not a problem of my hack, I think. It seem like PHP bug or misconfiguration.
May be also at main VBulletin settings something related to cookies or session is misconfigured.

About titles - they are not affected.
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 10:41 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.04766 seconds
  • Memory Usage 2,310KB
  • 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
  • (8)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