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
  #142  
Old 03-13-2012, 11:49 AM
kisanjong kisanjong is offline
 
Join Date: Feb 2009
Location: UK
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a simular word replacment mod for 4.1.11?

Thanks
Reply With Quote
  #143  
Old 03-30-2012, 08:36 AM
denpietrau denpietrau is offline
 
Join Date: Dec 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ballpnet View Post
PHP Code:
<![CDATA[$array1 explode("|"$vbulletin->options['ah_word_replace_find']);

$array2 explode("|"$vbulletin->options['ah_word_replace_replace']);

$ah_text $this->post['message'];

$breadcrumb = array();

if(
count($array1) > 0) {

  for(
$j=0$j<count($array1); $j++) {
    
$breadcrumb[] = '/'.$array1[$j].'/i';
  }

  
$ah_text preg_replace($breadcrumb$array2$ah_text);

  
$separators = array('. ''? ''! ');
  
  for(
$i=0$i<count($separators); $i++) {

    
$var $separators[$i];
    
$sentences explode($var$ah_text);
    
$tmp_sentence '';
    
$k 0;
    foreach(
$sentences as $single_sentence) {
    
$tmp_sentence .= ucfirst($single_sentence);

     if (
$k<count($sentences)-1) {
          
$tmp_sentence .= $var;
        }
        
$k++;
    }
    
$ah_text $tmp_sentence;
  }
}

$this->post['message'] = $ah_text;]]> 
Thank you so much. It works in vbb 4.
Reply With Quote
  #144  
Old 06-26-2012, 05:07 AM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works well on www.naijafinder.com
Reply With Quote
  #145  
Old 08-22-2012, 01:49 AM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works well on VB 4.2 but its changing all all capital letters to small letters.
Can someone help me to fix this error.
Reply With Quote
  #146  
Old 11-25-2012, 02:53 PM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin is good. But is changing every capital letters post in my forum to small letters.

How do i fix this error?
Reply With Quote
  #147  
Old 11-25-2012, 03:34 PM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks i just fix small letters with the below steps.
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"

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
  #148  
Old 03-22-2013, 04:05 PM
sergiomc sergiomc is offline
 
Join Date: Jan 2013
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is good mod, but i have a problem

I put:
(Find): smilie01
(Replace): [swf="height=23 width=23"]http://img56.xooimage.com/files/7/f/5/smilie-10-3cce020.swf[/swf]

I have a mod installed for this code to work.

But, then in the post shows the code and not the image, why?

--

This mod makes the videos do not work in all the forum, why?

Thank you
Reply With Quote
  #149  
Old 05-05-2013, 12:54 PM
kartheekb kartheekb is offline
 
Join Date: May 2010
Location: india
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any mod like this for 4.2
Reply With Quote
  #150  
Old 08-22-2013, 07:51 PM
BabyNameAddict BabyNameAddict is offline
 
Join Date: Feb 2006
Posts: 60
Благодарил(а): 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"

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); 

This worked! Thank you!
Reply With Quote
  #151  
Old 10-07-2013, 08:20 PM
l0l4s0 l0l4s0 is offline
 
Join Date: Dec 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can upgrade to version 4?

is possible to make this plugin only either in the text of the forum and not work on the links, images, etc..?
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 05:06 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.04762 seconds
  • Memory Usage 2,345KB
  • 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
  • (9)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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