vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - vBaffiliate Links (https://vborg.vbsupport.ru/showthread.php?t=176355)

nfn 04-15-2008 10:00 PM

vBaffiliate Links
 
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.

Word to Replace:
vBulletin Oficial Site
vBorg

Link to Replace:
http://www.vbulletin.com
http://www.vbulletin.org



nfn 04-16-2008 06:15 PM

Reserved...

SEOvB 04-16-2008 06:23 PM

Nice job.

Doesnt the built in replacement variables do the same, or will this only replace words in posts?

nfn 04-16-2008 06:32 PM

Thanks,

This doesn't replace words permanently. It replaces words on the fly, so if you want to create links they will be removed when you remove this mod.

gwerzal 04-16-2008 09:47 PM

This is pretty cool.

Im gonna have a little play with this.

Cheers dude

gwerzal 04-16-2008 09:55 PM

Doesn't seem to be making any changes.

ecrotty 04-16-2008 11:39 PM

im really excited for this one, but it doesnt seem to be working. 3.7RC3 here.

going to try a few other things in case im not doing it right...

so far i have :

to be replaced :
Amazon

replace with :
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.am azon.com%2F&tag=zoolertcom-20&linkCode=ur2&camp=1789&creative=9325">Amazon</a>

And my post has just the word :

Amazon

with carriage returns and all :(

Any thoughts?

toucan42 04-17-2008 12:10 AM

Interesting idea - tagged to watch it.

SEOvB 04-17-2008 12:28 AM

Quote:

Originally Posted by ecrotty (Post 1492563)
im really excited for this one, but it doesnt seem to be working. 3.7RC3 here.

going to try a few other things in case im not doing it right...

so far i have :

to be replaced :
Amazon

replace with :
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.am azon.com%2F&tag=zoolertcom-20&linkCode=ur2&camp=1789&creative=9325">Amazon</a>

And my post has just the word :

Amazon

with carriage returns and all :(

Any thoughts?

Just use the replacement variables in the style manager and see if that works, it should.

nfn 04-17-2008 08:43 AM

Hi,

Sorry for my mistake.
Now It's working!
Thanks.


Quote:

Originally Posted by ecrotty (Post 1492563)
im really excited for this one, but it doesnt seem to be working. 3.7RC3 here.

going to try a few other things in case im not doing it right...

so far i have :

to be replaced :
Amazon

replace with :
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.am azon.com%2F&tag=zoolertcom-20&linkCode=ur2&camp=1789&creative=9325">Amazon</a>

And my post has just the word :

Amazon

with carriage returns and all :(

Any thoughts?



All times are GMT. The time now is 01:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01294 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete