View Full Version : Administrative and Maintenance Tools - Replacement Words In Posts
harmor19
06-06-2007, 10:00 PM
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)".
gtsch
06-07-2007, 09:18 AM
what about replacement variables?
harmor19
06-07-2007, 09:21 AM
I'll explain how it works.
Let's say you had these words for "Word Replacements (Find)".
suck|bad|whatsup
Now for "Word Replacements (Replace)"
stink|good|hello
================================================== ===
This message "whatsup you suck bad"
Will now be "hello you stink good".
harmor19
06-07-2007, 09:22 AM
what about replacement variables?
Replacement variables replace a word no matter where it is. This hack only replaces words in the posts.
This is working or not? It seems you are asking how tog et it to work, not releasing.. so im confused.
harmor19
06-07-2007, 10:00 AM
This is working or not? It seems you are asking how tog et it to work, not releasing.. so im confused.
It's working. I just need help wording the descriptions in the vBulletin Options.
deezelpope
06-07-2007, 10:03 AM
<i>I think it looks fine as it is...it's pretty self-explanatory, IMO.</i>
Charlie98902
06-07-2007, 11:43 AM
Thanks harmor19
*******Clicks Installed******
Will there be one to not sensor globally? Like specify where this can and can't work later?
Hornstar
06-07-2007, 11:45 AM
Arr cooool ^^ so i can change the swear word 'fu**' to 'beep' so if they type this: get fu**ed it will say: get beeped
Is that correct. and i can make as many as i like?
That means this also has seo benefits ^^
If someone types in slang or abbreviations, then this will be able to expand that to full, and will benefit your site ^^
Great work.
Sofia
06-07-2007, 02:48 PM
Thanks a lot, harmor :)
But, i have vb 3.6.5 and your hack doesn't work :(
When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.
Any idea ?
Jessi
06-07-2007, 03:29 PM
Thanks a lot, harmor :)
But, i have vb 3.6.5 and your hack doesn't work :(
When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.
Any idea ?
Did you rebuild your post cache?
It's working. I just need help wording the descriptions in the vBulletin Options.
You should make it one big text box and like this, seperate different entries by new line
Badword|Good word!
replace me|with me!
etc..
COBRAws
06-07-2007, 05:03 PM
Can I replace words case sensitive?
For example
hello|bye
Hello|Bye
Thanks
lostgirl815
06-07-2007, 06:12 PM
Wow, I lost all hope of this ever being available - thanks!
If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?
harmor19
06-07-2007, 06:29 PM
Thanks a lot, harmor :)
But, i have vb 3.6.5 and your hack doesn't work :(
When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.
Any idea ?
Are you putting the bad words in the first text area and the good words in the bottom textarea?
Can I replace words case sensitive?
For example
hello|bye
Hello|Bye
Thanks
Yes.
harmor19
06-07-2007, 06:34 PM
Wow, I lost all hope of this ever being available - thanks!
If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?
I'd imagine it would.
harmor19
06-07-2007, 07:17 PM
You should make it one big text box and like this, seperate different entries by new line
Badword|Good word!
replace me|with me!
etc..
I wanted to use badword => goodword but I don't know what code to write to produce [badword] => goodword
lostgirl815
06-07-2007, 07:26 PM
Ok - I'll let you know if it did when I install it, which will be later tonight. :)
I wanted to use badword => goodword but I don't know what code to write to produce [badword] => goodword
Ask in the coding section on these forums ^^
harmor19
06-07-2007, 07:56 PM
Ask in the coding section on these forums ^^
I'll keep trying to solve it on my own first. If I can't by this weekend I'll ask for help.
COBRAws
06-07-2007, 08:32 PM
Im having a problem, all capital letters are turn into lowercase. :S
harmor19
06-07-2007, 08:39 PM
Im having a problem, all capital letters are turn into lowercase. :S
I'm sorry about that. If I remove the code then you'll have to write every possible combination of the bad word. eg. bad|Bad|bAd|baD|BAd|
I'll see what I can do.
Charlie98902
06-07-2007, 08:44 PM
Wow, I lost all hope of this ever being available - thanks!
If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?
Off topic but thanks for the direction to this as I wanted that. :D
COBRAws
06-07-2007, 08:46 PM
I have a 12 letter word :P kinda dificult to do that lol
I'll wait for a next release, if it happens.
Really good mod ;) Just needs a little bugfix
Hornstar
06-07-2007, 09:51 PM
I have a 12 letter word :P kinda dificult to do that lol
I'll wait for a next release, if it happens.
Really good mod ;) Just needs a little bugfix
What is the bug for the 12 letter words?
harmor19
06-07-2007, 10:00 PM
What is the bug for the 12 letter words?
The only bug so far is that it converts any uppercase letter to lowercase.
rjmjr69
06-08-2007, 01:30 AM
When does it decide to replace the words? Cause I've tried and tried but the words stay the same
harmor19
06-08-2007, 01:38 AM
When does it decide to replace the words? Cause I've tried and tried but the words stay the same
It should replace them automatically. What are the words you're using?
Dream
06-08-2007, 01:42 AM
This sounds like a fun mod to use :)
edit: lol this mod is awesome, Im gonna have some good laughs with this
AzzidReign
06-08-2007, 02:02 AM
Dude, this is awesome!! Thanks for this hack!
stwilson
06-08-2007, 02:31 AM
Hmmm. I am having the same problem as some others posted. I put the target words in the first block and the replacement words in the second, with the | in between each word. I have censorship turned on. I post up and nothing has been replaced. I am on 3.6.7 PL1 and PHP 5 and MYSQL 5. Any suggestions.
harmor19
06-08-2007, 03:28 AM
Hmmm. I am having the same problem as some others posted. I put the target words in the first block and the replacement words in the second, with the | in between each word. I have censorship turned on. I post up and nothing has been replaced. I am on 3.6.7 PL1 and PHP 5 and MYSQL 5. Any suggestions.
I don't have 3.6.7 PL1 or those server environments to test this hack on.
Dream
06-08-2007, 03:59 AM
Weird, this stopped working after I uninstalled v3 arcade, now it lowercases all posts but doesn't replace the words.
edit: I removed this mod and it fixed my posts being lowercased
rjmjr69
06-08-2007, 04:00 AM
It should replace them automatically. What are the words you're using?
LOL I'm actually using the test words you have. I've also tried a few 4 letter words that did not work.
Had to remove this .. all my forum posts were altered to lower case.
Running 3.6.7
projectego
06-08-2007, 08:05 AM
Thank you very much! This is awesome! :D
Sofia
06-08-2007, 09:05 AM
Are you putting the bad words in the first text area and the good words in the bottom textarea?
Yes, of course. Bad words in the first area and good words in the second one; and words separated by a "|".
Sofia
06-08-2007, 09:19 AM
Yes, of course. Bad words in the first area and good words in the second one; and words separated by a "|".
I'm going to try to resolve this problem :p
dotJoel
06-09-2007, 03:10 PM
looks like a great mod. i'll come back too it once it has been developed a little further.
Regards,
Joel
rjmjr69
06-10-2007, 08:16 AM
I had to uninstall it was not doing anything noticeable. Will keep track for further updates and resolutions.
Enigm@tic
06-17-2007, 04:29 PM
I had to uninstall it was not doing anything noticeable. Will keep track for further updates and resolutions.
i accompany to you..
gabrielt
06-25-2007, 11:40 AM
The idea is good, I was needing this. But your interface sucks. If I add like 200 words and need to edit something at a later date it is simply impossible to find the words in the middle of so many words. The ideal was to have a table with the bad word and its replacement on each line, like it happens on Invision Power Board (IPB). Could you make this modification on your system?
Thanks.
Gabriel.
COBRAws
06-26-2007, 04:30 PM
What is the bug for the 12 letter words?
I mean, if I have Globalization so when globalization is written the first letter is automatically capitalized.
I need to have configured something like this or it will just capitalize all words on my message?
globalization|Globalization
gLobalization|Globalization
glObalization|Globalization
gloBalization|Globalization
and so on
this way it is not practical.
ninjamaster
06-26-2007, 07:48 PM
thanks m8 like this 1:)
deezelpope
06-27-2007, 09:24 PM
WTF is YOUR problem?:mad: If you don't like it, don't use it! We certainly don't need or want negative comments like yours!
lowfd
06-29-2007, 08:04 AM
i've got a question...
say if i want to replace "u" with "you" (to stop netspeak) how can i make it so it only replaces "u" when it's on it's own?
at the moment if i try to do this, any word with U in it such as "youtube" becomes "yoyoutyoutube"
thoughts?
i've got a question...
say if i want to replace "u" with "you" (to stop netspeak) how can i make it so it only replaces "u" when it's on it's own?
at the moment if i try to do this, any word with U in it such as "youtube" becomes "yoyoutyoutube"
thoughts?
Instead of using "u|you" use " u | you " maby?
lowfd
06-29-2007, 10:38 AM
ah... cheers, i'll give it a go!
harmor19
06-30-2007, 10:05 AM
I mean, if I have Globalization so when globalization is written the first letter is automatically capitalized.
I need to have configured something like this or it will just capitalize all words on my message?
globalization|Globalization
gLobalization|Globalization
glObalization|Globalization
gloBalization|Globalization
and so on
this way it is not practical.
I'm taking a break from coding during the summer but remind me to look into this when Fall hits.
this mod sucks
You create one then.
coolgus
06-30-2007, 05:54 PM
nice hack. is there any way for this to work also in the title of every thread ?
hi
can This hack will replace any word in the Signature:confused: or any place
4x4 Mecca
07-04-2007, 12:41 AM
didn't work at all in 3.6.4 and changed all text to lowercase. I'll watch this for a fix.
soniceffect
07-10-2007, 05:36 PM
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
$ah_message = $this->post['message'];
$ah_text = strtolower($ah_message);
with
$ah_text = $this->post['message'];
replace
$ah_text = str_replace(strtolower($array1[$x]), $array2[$x], $ah_text);
with
$ah_text = str_ireplace($array1[$x], $array2[$x], $ah_text);
4x4 Mecca
07-10-2007, 06:22 PM
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
soniceffect
07-10-2007, 07:48 PM
A learnin coder myself, but will have a look for ya m8
4x4 Mecca
07-10-2007, 11:16 PM
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.
soniceffect
07-11-2007, 07:29 AM
try changing
str_replace
for
preg_replace
But please note I've not tested this
nautiqeman
07-20-2007, 01:39 AM
This doesn't work at all for me.
ABMAC
07-23-2007, 05:45 PM
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.
spamgirl
07-28-2007, 02:31 AM
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.
SuperTaz
07-30-2007, 05:09 AM
This hack modifies all upper case letters to all lower case in all posts and restricts images from being shown on posts. Uninstalled. I had to have vB support help me out on this and we narrowed it down to this. After I disabled this hack, all posts had the letter cases correct and the images were viewable again.
Sph1nX
08-06-2007, 11:27 PM
I need help,really fast and in german would be very nice.
I installed this hack on my vbulletin 3.6.8 and it did nothing -.-
so I uninstalled it and now NO WORD is getting censored.
this really sucks everybody could use a badword...
pls fast help or how do i get support for it? first time i'm having problems :/
//edit : hm its working but not inside of my vbshout
djyarasa
08-07-2007, 11:28 AM
man man man
this is a so .. hack!
Why? why?
because this hack going to start prevent shoutiing,
whatever you want to change it, you cant,
preventshouting value 0 or 1 or any,
it is working an no UPPERCASE WORDS in your board,
but not just it, NO IMAGES, NO VIDEOS, NO LINKS
after delete it, there is no problem!
daha once bu problem yüzünden vbulletin musteri servisi ile papaz oldum, adamlara demedigim kalmamıstı!
Pipo123
08-07-2007, 07:36 PM
Attached is an updated version THAT WORKS.....
Sph1nX
08-08-2007, 02:45 AM
Attachted is an updated version THAT WORKS.....
no,not working for me
Pipo123
08-09-2007, 03:48 PM
What's not working?
Foxtrotelite
08-10-2007, 12:08 AM
When I install Pipo123's update i get a fatal error when I try to view a post
klaus
08-19-2007, 01:28 AM
I installed it and it doesn't work.
In one of the above posts I read about php5 is that a minimum requirement? If so perhaps include that in the introduction post of this product.
I am on PHP Version 4.3.9.
oatsy
08-20-2007, 10:27 AM
This hack modifies all upper case letters to all lower case in all posts and restricts images from being shown on posts. Uninstalled. I had to have vB support help me out on this and we narrowed it down to this. After I disabled this hack, all posts had the letter cases correct and the images were viewable again.
Exactly the same happened to me. Also had to uninstall.
pureturk
08-23-2007, 05:26 AM
please someone remove this hack from the list,
as you see 80 percent of the replies are negative about this hack. i had to uninstall it myself too
sensimilla
08-23-2007, 06:35 AM
Does it work with Thread Titles ? TIA
pip-london
09-13-2007, 10:35 AM
This is a really great hack... if you want your entire board in lowercase that is.
P.
ericho
09-24-2007, 05:10 AM
I've had to uninstall...sorry it didn't work...turned all my capitals to small letters too!
If you get a fix...please let me know.
I do appreciate you taking the time to provide mod in the first place though.
mvigod
09-26-2007, 12:09 AM
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
$ah_message = $this->post['message'];
$ah_text = strtolower($ah_message);
with
$ah_text = $this->post['message'];
replace
$ah_text = str_replace(strtolower($array1[$x]), $array2[$x], $ah_text);
with
$ah_text = str_ireplace($array1[$x], $array2[$x], $ah_text);
I too had the problem of lowercase. Disabled, made the changes quoted above and it works like charm. No problems on 3.6.7 PL1
passwords
09-26-2007, 04:47 PM
thanx its a great mod but its not working with the quick reply ..
does it work with v3.6.8 ?
dutchbb
09-26-2007, 06:55 PM
Can you make it change words into hyperlinks?
For example you are an affiliate and you want to use affiliate URL when someone types in a word that matches your affiliate.
ragtek
09-26-2007, 07:49 PM
wouldn't it be better for the performance if you make it, when the post is send and parsed and not on post showing?!
if you show 40 posts per site, that means 40 times checking!
forumrunt
09-29-2007, 03:27 PM
will this work with 3.6.8?
pip-london
10-08-2007, 12:33 PM
will this work with 3.6.8?
Doesn't for me. After applying the mods above I just get blank pages. Haven't had time to debug it yet.
CCWBumper
10-10-2007, 01:10 AM
Sorry, while this would be a great hack, I had to uninstall it as well because of the outstanding "issues". Great idea; hope you get it worked out..... :)
I tried to fix this problem, and I'm just completely stumped. I got the code down to this:
$array1 = explode("|", $vbulletin->options['ah_word_replace_find']);
$array2 = explode("|", $vbulletin->options['ah_word_replace_replace']);
$this->post['message'] = eregi_replace($array1, $array2, $this->post['message']);
I think it *should* work. It's no longer making everything lowercase. But the replacements simply aren't working. Anyone know what I'm doing wrong?
I tried replacing eregi_replace with str_replace (would be case sensitive though) to no avail. I tried hard coding the find and replace words in the function call, and it works just fine, so the problem seems to lie in the fact that $array1/$array2 or the $vbulletin->options['ah...'] strings aren't being set (they're populated in the database though).
Foxtrotelite
11-04-2007, 01:40 AM
Any chance of a version 3.6.8 update? Please?
IvyKeepMommy
11-04-2007, 10:55 PM
I also had the same problem -- I installed, and it converted every letter in all my posts to lower case, but didn't change the words I was trying to replace. So I had to uninstall.
It's a great idea and I'd love to see it working!
incisor
11-05-2007, 04:34 AM
has the problem with it turning everything into lowercase been fixed ?
tillcat5
11-07-2007, 12:38 PM
great release and would love to use it, but it nocks out all my images and wont let me post anything with [img] would love to get an upgrade of this!!
aspen1018
11-08-2007, 11:54 PM
this looks like a very useful mod; however I haven't been able to get it to work with my board I have 3.6.5
malakaikingston
11-09-2007, 05:57 PM
I added this mod and all my posts became lowercase.
I did the fixes someone posted in the code and got all my posts back to normal.
However now everything is fine but, the mod is just not working. :down:
We used the phbb replace mode extensively before moving to VB, and would love a VB 3.6.8 version of this mod that works, I'll pay anyone that gets it working 25$.
If not this mod are there any other options? :D
Fungsten
11-10-2007, 06:12 PM
I added this mod and all my posts became lowercase.
I did the fixes someone posted in the code and got all my posts back to normal.
However now everything is fine but, the mod is just not working. :down:
I got the exact same issue about the lower case! Uninstalled.
centralss
11-15-2007, 09:39 PM
Doesn't work on 3.6.8 level 2 patch. Also wouldn't show anything linked to photobucket, which was strange. I had to uninstall it to show everything again.
Looks like it needs an update to 3.6.8!!!
Soupa
11-16-2007, 02:32 AM
Can you replace words with a smilies image that has a sensor banner.
Pocket Aces
11-21-2007, 04:31 AM
Would be nice if it affects thread title as well and pls. fix the lowercase issue.
mri_mohammad
11-25-2007, 11:38 PM
not working it's make my website down on 3.6.8
Foxtrotelite
12-24-2007, 01:40 PM
any chance of an update for 3.6.8 or maybe 3.7?
BigKev45
01-05-2008, 05:27 PM
have it installed and i was hoping i could replace it with a vb code smiley but it just shows up w/ the code and no smiley for example if i want to replace dog it shows :censored: instead of the smiley that is attached to this code
Big Kahuna
01-13-2008, 12:48 AM
I installed it on 3.6.8 and it works -- except it changes any upper case letter (like the first letter of the first word of a sentence) to lowercase. Had to disable until I find out that there is a fix -- of the I have to uninstall.
AcidX
01-13-2008, 09:04 PM
Doesn't work for me, using 3.6.3.
craiovaforum
01-18-2008, 12:01 PM
I recomment that you modify your plugin and use str_ireplace instead of doing a strtolower to the whole post message because its simply wrong.
Your plugin changes all posts to lowercase.
Of course, str_ireplace isnt the ideal way to handle utf-8 strings but its better than what you use in any case.
ballpnet
01-20-2008, 03:36 PM
Greetings,
I've changed the code within the plugin in order to get it to work at our forums. This works with 3.6.8 and I've not tested it on any of the other versions. If anyone else wants to make the same modifications they are more than welcome to do so, but please be advised that it'll be at your own discretion and I will not provide support or be held liable if anything goes wrong.
*Props goes to mah man Nate(nathanledet) for bringing this plugin to our attention.*
Things the modification fixes:
1)It does not lower case the entire message
2)It tries to uppercase the first letter of a word at the beginning of a sentence. Say for example you want to replace the uppercase word WIDGET with widget. If someone begins the sentence with this word, then it'll look awkward and incorrect when it gets lowercased. The code then corrects this by uppercasing the "w" and giving us a correct much better looking "Widget."
Find and replace the <phpcode> opening and closing tags with the following.
<![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;]]>
NathanLedet
01-20-2008, 04:18 PM
Works great!! :up:
satanreborn
01-20-2008, 08:34 PM
still cant get it to work, even with the updated php... running vBulletin 3.6.8 Patch Level 2
Gersfan
01-21-2008, 07:29 AM
Hi Guys,
Has there been a fix yet for the lowercase problem on boards?
Thanks
Habsy
02-10-2008, 11:41 PM
Doesn't work in 3.6.8
sdsvtdriver
02-15-2008, 04:40 AM
I tried BallPnets changes and it doesn't work on my site.
3.6.8
vigape
03-18-2008, 11:07 AM
I would use this mod to rewrite some words and make it url. Sample:
But when I put the bbcode replace, vbulletin shows the bbcode, not the url.
What can I do?
BarelyHangingOn
04-03-2008, 11:43 PM
3.68 turned all of my text to lower case, otherwise it worked.
dennisuello
04-14-2008, 02:16 PM
Doesn't work on 3.6.8 level 2 patch. Also wouldn't show anything linked to photobucket, which was strange. I had to uninstall it to show everything again.
Looks like it needs an update to 3.6.8!!!
Had the same issue on my forum, more than half of the photobucket images showed "Image removed" message instead. All I had in the Find and Replace boxes was "therockgods" and "kittenwar", respectively. I'm running 3.6.9.
forovideojuegos
04-30-2008, 10:27 AM
Greetings,
I've changed the code within the plugin in order to get it to work at our forums. This works with 3.6.8 and I've not tested it on any of the other versions. If anyone else wants to make the same modifications they are more than welcome to do so, but please be advised that it'll be at your own discretion and I will not provide support or be held liable if anything goes wrong.
*Props goes to mah man Nate(nathanledet) for bringing this plugin to our attention.*
Things the modification fixes:
1)It does not lower case the entire message
2)It tries to uppercase the first letter of a word at the beginning of a sentence. Say for example you want to replace the uppercase word WIDGET with widget. If someone begins the sentence with this word, then it'll look awkward and incorrect when it gets lowercased. The code then corrects this by uppercasing the "w" and giving us a correct much better looking "Widget."
Find and replace the <phpcode> opening and closing tags with the following.
<![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;]]>
Wow! Works great!! Thank you!
yingzhou
06-30-2008, 02:59 AM
it work with 3.6.8 but havent tried with 3.7.0. Any idea?
River_rush
07-05-2008, 03:45 PM
I can confirm with that edit that it works on 3.7.2 having just installed and tested it.
Heres the Edited XML
yingzhou
07-06-2008, 04:33 AM
thank, will try this edited xml!
sbirish96
07-06-2008, 05:35 PM
I'm running 3.6.4 and still can't get any of these to work. I really like the idea, but can't seem to implement it. It simply doesn't change any words.
tirol07
07-28-2008, 03:39 PM
I can confirm with that edit that it works on 3.7.2 having just installed and tested it.
Heres the Edited XML
For 3.7.x perfect. thanks :up:
NGUYENDUCTRUONG
07-30-2008, 04:13 PM
its not good because it makes your Censorship PREVENT SHOUT cannot disable. Means you can't type UPPERCASE in posts|threads, all words are lowercase. I have to disable this funtion to keep Prevent Shout totally disable.
sojobo
08-20-2008, 03:24 PM
This works in posts, but is there a way to make this work in my shoutbox too? (inferno shoutbox)
FreneZy
09-14-2008, 01:08 PM
Hey, product does not work for my board, and I make all my CAPS characters gone tiny :/
We have the very lastest version of vBulletin.
madkeen
09-28-2008, 10:47 AM
Anyone able to get this to work on 3.6.?
rapidphim
09-30-2008, 08:51 PM
I can confirm with that edit that it works on 3.7.2 having just installed and tested it.
Heres the Edited XML
It worked on 3.7.3 but however, how can we make it on different color for the replace text?
ultrmn
10-03-2008, 08:37 PM
Anyone able to get this to work on 3.6.?
No, i couldn't work this hack on 3.6.7
emdee
10-07-2008, 12:06 AM
not working for my 3.7.3 install
ShackMaster
10-08-2008, 03:11 PM
Did you try the edited XML file or the original file?
ShackMaster
10-08-2008, 03:40 PM
Yep... serious coding problems and it does not work in my 3.7.3 vB.
Medtech
10-19-2008, 03:07 AM
I am running vb 3.7.3 and this mod would not allow caps to display in posts.
uninstalled!
demoniavbh
10-24-2008, 10:32 AM
Yeah please, could it be an update for 3.7.x?
Thanks!
Darkstarproject
10-25-2008, 01:07 AM
Problems in my 3.7.3vb CAPS are removed, as well as Photobucket Images and Youtube content.
*Uninstalled*
I'd be very interested in seeing this for 3.7.x as well.
donald200
10-31-2008, 10:15 AM
same to me please...
raja811
11-05-2008, 11:58 PM
thanks
Il Pompa
11-06-2008, 09:45 PM
Is there an alternative solution???
demoniavbh
11-10-2008, 11:31 AM
In page 7 there's a code modification that makes it work perfectly :)
https://vborg.vbsupport.ru/showpost.php?p=1425218&postcount=98
Il Pompa
11-11-2008, 11:43 AM
Tnx I will try it!!
demoniavbh
11-16-2008, 11:14 PM
In page 7 there's a code modification that makes it work perfectly :)
https://vborg.vbsupport.ru/showpost.php?p=1425218&postcount=98
Humm..does anybody know how to make it also work in titles, not only in posts?
Problemsolver
12-27-2008, 02:26 PM
In page 7 there's a code modification that makes it work perfectly :)
https://vborg.vbsupport.ru/showpost.php?p=1425218&postcount=98
Cool but where do we make this change :S?
wptavern
01-22-2009, 01:13 AM
I am running 3.8.0 and the mod works with the modified PHP code. However, it doesn't seem to be replacing the words in the censorship box with the ones I have told it to replace, even after I save the settings and rebuild the post cache. So I guess it really is broken.
Anyoldname
01-22-2009, 01:16 PM
Thats a shame, I was looking for exactly this.
Is it possible that I can use html in the replacement to make a link? For example, can I do this?:
Vbulletin mod forum | <a href="https://vborg.vbsupport.ru/index.php">Vbulletin mod forum</a>;
CarcaBot
02-16-2009, 04:25 PM
Is this valid for 3.8x ?
gmerin
02-21-2009, 05:10 PM
any way to replace words in the Evo chatbox?
Skywatcher
03-15-2009, 02:25 PM
It'd be just great to get something like this for 3.8.x
vbTheKing
04-02-2009, 07:13 PM
Something similar working for current version of vBulletin, please?
Aww man, just the mod I was looking for but im runing 3.8.x :|
ForexFox
08-20-2009, 04:33 PM
Post edited:
Using: fullfilled all my needs:
https://vborg.vbsupport.ru/showthread.php?t=176355
kisanjong
03-13-2012, 11:49 AM
a simular word replacment mod for 4.1.11?
Thanks
denpietrau
03-30-2012, 08:36 AM
<![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.
Naijasite
06-26-2012, 05:07 AM
works well on www.naijafinder.com
Naijasite
08-22-2012, 01:49 AM
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.
Naijasite
11-25-2012, 02:53 PM
This plugin is good. But is changing every capital letters post in my forum to small letters.
How do i fix this error?
Naijasite
11-25-2012, 03:34 PM
Thanks i just fix small letters with the below steps. 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
$ah_message = $this->post['message'];
$ah_text = strtolower($ah_message);
with
$ah_text = $this->post['message'];
replace
$ah_text = str_replace(strtolower($array1[$x]), $array2[$x], $ah_text);
with
$ah_text = str_ireplace($array1[$x], $array2[$x], $ah_text);
sergiomc
03-22-2013, 04:05 PM
Is good mod, but i have a problem
I put:
(Find): smilie01
(Replace): http://img56.xooimage.com/files/7/f/5/smilie-10-3cce020.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
kartheekb
05-05-2013, 12:54 PM
any mod like this for 4.2
BabyNameAddict
08-22-2013, 07:51 PM
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
$ah_message = $this->post['message'];
$ah_text = strtolower($ah_message);
with
$ah_text = $this->post['message'];
replace
$ah_text = str_replace(strtolower($array1[$x]), $array2[$x], $ah_text);
with
$ah_text = str_ireplace($array1[$x], $array2[$x], $ah_text);
This worked! Thank you!
l0l4s0
10-07-2013, 08:20 PM
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..?
jamoss
03-27-2015, 01:24 AM
hmmm i really wanted this for AFD, but it didn't work in 4.2.2 :(
I'll go look for another plugin...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.