The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBaffiliate Links Details »» | |||||||||||||||||||||||||
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:
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. Word to Replace: vBulletin Oficial Site vBorg Link to Replace: http://www.vbulletin.com http://www.vbulletin.org Please Mark as Installed! Show Your Support
|
Comments |
#42
|
||||
|
||||
how tight is the replacement?
I have dismounted's ebay re-writer. if i add ebay -> ebay.com?mycampid as a rule in this product, will it break the real ebay links? |
#43
|
||||
|
||||
I am experiencing a strange bug that might or might not be caused by a conflict of this hack with Nuwiki. Since I installed this hack, I am getting Nuwiki footnotes in various threads. As said; this may be totally unrelated, but I am mentioning it just in case anyone has the same experience.
EDIT: after disabling this hack and rebuilding post cache, this bug disappears. nfn: when entering long lists of replacements, it will be easy to loose track. As is now, there are two fields to enter replacements in: one for the words that need to be replaced and one for all the words to replace with. In both fields, each new line separates a value. Imagine using a lot of replacements. Say 100. So the word on line 73 of the first box, will be replaced by line 73 of the second box. If the order of one line is messed up, then all lines under that will be messed up. So if line 6 would be deleted, then line 6 - 100 will be wrong. This means that all mentions of these 94 words in your database will be messed up forever. That is a very large impact. Could you please consider to either put the two boxes side by side or create another way to make sure that the replaced and the replacement are right next to each other? |
#44
|
|||
|
|||
Installed, great mod .
I just want to point that it don?t differentiate blocks of 2+ words from the 1 ones. For example, if I put these 2 strings: poker stars stars It will do 2 replacements in a imaginary "poker stars" string, one for the complete word, one for the stars one. I will report any bug in the next days . |
#45
|
|||
|
|||
Can we customize this so it would actually rewrite urls as wel?
Currently it only allows keywords, however lets say a user posted a link on the forum. Can we adjust the script so that we can specify a part of the link so the script knows to append my affiliate id to the link? Thanks |
#46
|
|||
|
|||
Quote:
I have updated the link mask today, but my links still appear with the older one. Cheers, Simon. |
#47
|
|||
|
|||
Yes ... I already thought that! In a new release I'll do that.
Quote:
|
#48
|
|||
|
|||
It will just replace ebay word and yes ... that way will break the url.
|
#49
|
|||
|
|||
Yes ... you should place "starts" first.
|
#50
|
|||
|
|||
If you know the full url you can do that, but this is not optimized for that job.
Quote:
|
#51
|
|||
|
|||
The replacement is done when the page is shown.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|