![]() |
Word Replacement
This is just a simple plug-in that will let you replace words in posts. This could be used for "AdWords" or Replacing curse words insted of just censoring.
Just thought I would share :-P *cough* https://vborg.vbsupport.ru/ *cough* I am a dumb novice, so this has no admin panel options or anything of that sort. If anyone ever wants to take this and make it all fancy, go ahead and just post. Note: This should work on any 3.5 version that has the hook postbit_display_complete This is the code...See how google is replaced with a link to google...make sence? PHP Code:
|
Nice one. Been looking for something like this... It would be nice to have this added to the admincp, with a CP module/plugin, where you can add a word + it's replacement value, possibly in the Forum Manager, and each forum can have different censors. Just a suggestion.
|
thanks! this fun. i used my to replace curse words with mytzlplk lol
|
umm is it just me or does this work exactly like the Replacement Variable Manager already in vBulletin?
|
Quote:
|
If I understood both systems correctly, the replacement variable manager affects everything in the post AND everything in templates. So if you replace "<td>" with "NO HTML", then all your templates with "<td>" in it would be broken, whereas this hack only affects data in a post.
I could be wrong, but that's my impression. |
This does almost the same thing as my hack ..https://vborg.vbsupport.ru/showthrea...threadid=71191
|
Quote:
|
Nice hack, thnx ;)
|
Quote:
|
I was actually thinking of doing it myself, but since Live Wire is going to port the 3.0 version, I won't.
|
I actualy used your had on vb3.0.7! I just needed something untille you updated yours. This was simple yo write and on our site we sell replacement words as advertisement...so I needed something quick. Once yours is releaced ill start using it again.
Thats why I have not worried about any admin cp stuff. Im to lazy to write all that since I knew you would port it :-P |
Quote:
|
actualy we went back to are heavy modded phpbb1.3 :-P
Its realy a long story...but yeah we have all the info. The main features we are worried about right now is journals...that need to be ported eventualy XD..../me whonders who wrote that...*goes and looks* |
Quote:
|
lol, we are gonna fully hack out our vb3.5 to what we need THEN...we will convert back.
Oh man, that phpbb is crappy *rolls eyes* |
is there any way to make this work in the thread title also?
so if a user posted the word in the title it would also be replaced? thanks in advanced, and great hack! |
Quote:
|
and how do i go about doing that if you dont mind sharing?
|
Quote:
You can set replacement variables in Admin CP -> Styles & Templates -> Replacement Variables Manager |
Also, in the example, a link to google would be broken.
The user posts Google. Instead of getting HTML Code:
<a href="http://google.com" target="_blank">Google</a> HTML Code:
<a href="http://<a href="http://google.com">google</a>.com" target="_blank">Google</a> |
thank you TCM
|
Quote:
It would be ideal if the replacement system had an option. Replace everywhere or just replace in posts. |
You might need a simple regular expression here..
|
nvm.
|
This works great but is there a workaround for the fact some people use caps in brand names and others do not? I tried to put in the same brand name twice once with and once without a cap not thinking it would try to apply the link to both. How can we make this where it does not matter if the word has caps in it or not?
|
-bump-
...any updates? :) |
This would be good for ads definatley...if I could find a good ad company that sells items like IGN does with their things
|
don't have the postbit_display_complete template.. is there some other way? >_<
|
so does this break links?
|
great job!!
just a question. in windows XP 2 characters in my board language changed. i can replace characters with this hack in db?:banana: |
Thanks, just installed it! :)
|
DarkBlade can you fix this code... so it works correctly... I did some testing, and it breaks all links with one of those words on it.
|
greeeeeeeeeeeeeeeat
i was searching for something like that.... thanks alot... |
Where should i put this code on v.3.5.4?
|
Hello. Is this code work on 3.7x?
|
Anyone know if this will work on 3.8x?
|
Same question, will this work on 3.8.2 ?
|
It's just php string replacement, so yes it will work in 3.8.2.
|
And 3.8.5 ?
|
All times are GMT. The time now is 02:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|