Version: 1.1.0, by nfn
Developer Last Online: May 2012
Category: Mini Mods -
Version: 3.7.5
Rating:
Released: 04-15-2008
Last Update: 04-19-2008
Installs: 120
Uses Plugins
Translations
No support by the author.
Description:
This modification will replace a list of words with a list of words/links you define.
I use it to create links to affiliate programs using words from the posts, but can be used as a simple text replacement.
Tested With:
vBulletin 3.6.9
vBulletin 3.7.0 RC 3
Changes:
[v1.1.0]
Added vBadvanced News module support
Option for case sensitive
Option for removing space before & after
Link mask for link replacement
Can be used as a simple text replacement (without Link mask)
Code simplification for expanding propose
[v1.0.1] Issue with vB 3.7.0 RC3
[v1.0.0] First Release.
Installation & Upgrade Instructions:
Upload the product & configure the settings for the product vBaffiliate Links.
Notes:
This doesn't work with highlight text when searching yet ...
[s]The replacement is case sensitive.
The replacement process will only replace word between spaces.[/s]
From v1.1.x you can use the Link mask as a standard way to define your links.
This mod will only work with PHP5.
If someone would like to help, the credit will be given and I'll appreciate.
How to Use:
Without Link Mask:
Place one word per line in the first box and one word/link per line in the second box.
Word to Replace:
vBulletin Oficial Site
vBorg
Simple Text
Link to Replace:
<a href="http://www.vbulletin.com" title="vBulletin Official Site">vBulletin Oficial Site</a>
<a href="http://www.vbulletin.org" title="vBulletin Modification Site">vBorg</a>
<strong>Simple Text</strong>
With Link Mask:
Define the Link mask you want to use:
<a href="{link}" title="Advertisement">{word}</a>
{link} and {word} will be replaced with each par.
Place one word per line in the first box and one word/link per line in the second box.
It does have some limitations, in that it requires a space before AND after each trigger word to make it work.
What with vBulletin stripping the spaces at the end of lines and posts, it doesnt always work.
Same goes for full stops and other punctuation, like speech marks etc, this also kills the link (with the punctuation not being the space that the code requires).
That and of course the case-dependency.
Apart from those niggles, this is a great idea! Thanks Using it now
It does have some limitations, in that it requires a space before AND after each trigger word to make it work.
What with vBulletin stripping the spaces at the end of lines and posts, it doesnt always work.
Same goes for full stops and other punctuation, like speech marks etc, this also kills the link (with the punctuation not being the space that the code requires).
That and of course the case-dependency.
Apart from those niggles, this is a great idea! Thanks Using it now
All (most of) limitations are removed
There's a new version that will let you define some more options like case sensitive and spacing.