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
Replacement Words In Posts Details »»
Replacement Words In Posts
Version: 1.00, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.4 Rating:
Released: 06-06-2007 Last Update: Never Installs: 122
Uses Plugins
 
No support by the author.

A few members were asking for a better censor system when it came to replacing bad words with good words.

This hack will replace any word you specify even if the word in question is typed with random uppercase and lowercase letters.
It still can be circumvented but I guess that's why you have moderators.


Installing
Download the product XML. Go into to your ACP --> Plugins & Products --> Manage Products click "[Add/Import Product]". Browse to product-ah_word_replace.xml and click "Import".

Settings
ACP --> vBulletin Options --> Censorship Options
There should be two new options titled "Word Replacements (Find)" and "Word Replacements (Replace)".

Show Your Support

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

Comments
  #52  
Old 07-04-2007, 12:03 AM
rtl2 rtl2 is offline
 
Join Date: Jun 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi
can This hack will replace any word in the Signature or any place
Reply With Quote
  #53  
Old 07-04-2007, 12:41 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

didn't work at all in 3.6.4 and changed all text to lowercase. I'll watch this for a fix.
Reply With Quote
  #54  
Old 07-10-2007, 05:36 PM
soniceffect's Avatar
soniceffect soniceffect is offline
 
Join Date: Feb 2005
Location: UK
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would also love a fix for this .... Is an excellent hack

EDIT:- Really wanted this so thought I would have a play myself...

PLEASE NOTE YOU MUST BE USING PHP5 FOR THIS FIX


FIXES THE DROPPING OF CAPS
Edit the plugin "word replacements"

Replace
PHP Code:
$ah_message $this->post['message'];
$ah_text strtolower($ah_message); 
with
PHP Code:
$ah_text $this->post['message']; 
replace
PHP Code:
$ah_text str_replace(strtolower($array1[$x]), $array2[$x], $ah_text); 
with
PHP Code:
$ah_text str_ireplace($array1[$x], $array2[$x], $ah_text); 
Reply With Quote
  #55  
Old 07-10-2007, 06:22 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you code one for php4? I know it's probably just a few strings, I'm just not a coder, so I don't know them
Reply With Quote
  #56  
Old 07-10-2007, 07:48 PM
soniceffect's Avatar
soniceffect soniceffect is offline
 
Join Date: Feb 2005
Location: UK
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A learnin coder myself, but will have a look for ya m8
Reply With Quote
  #57  
Old 07-10-2007, 11:16 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! I have to use php4 because of some image upload problems I had with php5... sucks, but o well. I'll watch for an update.
Reply With Quote
  #58  
Old 07-11-2007, 07:29 AM
soniceffect's Avatar
soniceffect soniceffect is offline
 
Join Date: Feb 2005
Location: UK
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try changing
PHP Code:
str_replace 
for

PHP Code:
preg_replace 
But please note I've not tested this
Reply With Quote
  #59  
Old 07-20-2007, 01:39 AM
nautiqeman nautiqeman is offline
 
Join Date: Jan 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't work at all for me.
Reply With Quote
  #60  
Old 07-23-2007, 05:45 PM
ABMAC ABMAC is offline
 
Join Date: Oct 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soniceffect View Post
Would also love a fix for this .... Is an excellent hack

EDIT:- Really wanted this so thought I would have a play myself...

PLEASE NOTE YOU MUST BE USING PHP5 FOR THIS FIX


FIXES THE DROPPING OF CAPS
Edit the plugin "word replacements"
I tried these edits and my PM system stopped working. I'll keep checking back, though. This is the feature I miss most from Ikonboard.
Reply With Quote
  #61  
Old 07-28-2007, 02:31 AM
spamgirl spamgirl is offline
 
Join Date: Jan 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not working for me in 3.6.5

In fact, when I installed it the Censorship Options showed up... but the words I entered weren't censored on the board. On top of that all [img] tags stopped working entirely.
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 08:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08987 seconds
  • Memory Usage 2,313KB
  • 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
  • (6)bbcode_php
  • (1)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