Log in

View Full Version : Replacement Words In Posts [Mod]


ctbo
08-14-2009, 10:10 AM
Hi

Any coders out there fancy revamping the mod "Replacement Words In Posts" it was a realy popular mod and there are loads of requests for a version that works on 3.8.x

Just thought I would give it a shout out incase someone was able to get it working again.

Thanks.

Lynne
08-14-2009, 02:19 PM
Why doesn't it work in 3.8? If I recall, it's just a str_replace which is basic php and should work with any version of vbulletin.

ctbo
08-16-2009, 10:54 AM
Hi

I dont know why, it would appear no one has got it working since 3.7.x ?

Someone did a code change for earlier versions, but its been a dead mod for quite a while... weird as it was once very popular.

Lynne
08-16-2009, 02:57 PM
Try this one - https://vborg.vbsupport.ru/showthread.php?t=93758&highlight=Replacement

ctbo
08-27-2009, 04:54 PM
Try this one - https://vborg.vbsupport.ru/showthread.php?t=93758&highlight=Replacement
Hmm thanks Lynne.. that would kinda work but doesnt have all the features as this one: https://vborg.vbsupport.ru/showthread.php?p=1871134

Please I really wanted to be able to make it forum specific which I could have done with the above Mod in combination with another.

Thanks for the link anyway though!

Lynne
08-27-2009, 05:09 PM
Please I really wanted to be able to make it forum specific which I could have done with the above Mod in combination with another.
I don't know that specific code, but I can't imagine it would be hard to modify the plugin to do different words for different forums. Have you tried to just add some conditions into the plugin?

if ($forumid == x){
$word = ...;
$link = ...;
} else if ($forumid == y){
$word = ...;
$link = ...;
}
$this->post['message'] = ...;