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.
um ok there is a problem.. it only replaced one word i have! on the first post.. the rest of the posts for (azoogleads) is not replaced? can you fix this? to make it replace like all (azoogleads) words
um ok there is a problem.. it only replaced one word i have! on the first post.. the rest of the posts for (azoogleads) is not replaced? can you fix this? to make it replace like all (azoogleads) words
I don't understand ...
You can replace as many word as you want?!?!
I see now. The screen shot got me confused.
Does this hack by default only affect words with a space before and after it or is that what the space function is for? Sorry for the stupid question, but better be safe than sorry in this case.
Does this work for old posts as well? Should we clear post cache?
You can see in my signature if you can understand Portuguese ... these links differ from the default links by an image I've placed right after the word.
I've placed a screen shot for the links I use.
Does this hack by default only affect words with a space before and after it or is that what the space function is for? Sorry for the stupid question, but better be safe than sorry in this case.
By default only replaced words between spaces and it's case sensitive ... you can fine tune this settings in the ACP.
Quote:
Originally Posted by Alfa1
Does this work for old posts as well? Should we clear post cache?
Yes ... this is done when the post it's shown and doesn't changes the default content.
If it doesn't show on older posts, try to clean the cache.