vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=263699

Word Links FREE (Turn words into links) by BOP5
by BirdOPrey5
16 May 2011 01:55

5 Attachment(s)


Thank You for voting this June 2011 Mod of the Month!!!

The purpose of this mod is to automatically turn keywords or phrases you specify into links. You set a list of keywords and a list of URLs to link them to and let the mod do the rest.

This is the FREE Version. It allows you to auto-link words in:
  • Posts/Threads
  • Private Messages
  • Visitor Messages
  • Social Groups

The GOLD Version is available at Qapla.com It allows auto-linking words in:
  • Posts/Threads
  • Private Messages
  • Visitor Messages
  • Social Groups
  • Picture Comments
  • Blog Entries
  • Blog Comments
  • CMS Articles
  • CMS Comments

Live Demo at Qapla.com.

There are many options as you can see in the screenshot. You can choose to include the "nofollow" attribute, choose to open links in a new tab, choose to match whole words only or not, specify specific forums, enable in social groups and visitor messages, and disable completely for selected usergroups or styles.

Version: 2.0
  • New in 0.91: Limit the number of links created per keyword per post.
  • New in 0.92: Use CSS to customize the look of links created by this mod.
  • New in 0.93: Linked words now retain the same case as they were originally typed. Also a new option to specify whether linked words are case sensitive or not.
  • New in 0.935: Fixed conflict with VBSEO and possibly other mods. Upgrade if you are having problems.
  • New in 0.94: Made the "Custom CSS" an option to prevent unnecessary HTML if not needed.
  • New in 0.95: Enable or disable in PMs.
  • New in 0.96: Should fix conflicts with AME3 mod, restores same case change in 0.93.
  • New in 1.0: Additional code to prevent unintended linking. No new features.
  • New in 1.1: Set approximate number of max links per page.
  • New in 1.2: Fixed bug when Ampersands (&) were used in keywords.
  • New in 1.3: Added optional notice on posts with links and associated phrase.
  • New in 1.5: Two new features: 1) You can now use a csv data file for your links (and advanced features) if you prefer and 2) You can use a custom user profile field to allow users to disable the mod individually if you choose.
  • New in 1.5a: Updated German language file thanks to Igel1.
  • New in 1.6: Fixed bug if keyword was part of thread title and thread title was a link in the post. (VB4 Only)
  • New in 1.7: Added field to extend the regex easily through the mod settings. Included fix for bold/font color links.
  • New in 2.0: Rewritten more efficient code. Added option to disable by styleid. Added GOLD version.

Example... If someone types:

"I bought it on Amazon."

This mod can auto convert it to:

"I bought it on Amazon."

And you would presumably put your Amazon affiliate code, if you had one, in the link.

NOTE: This mod does not alter the actual posts or the database. Disabling or uninstalling the mod will remove all links.

There is a VB3 and VB4 version of this mod, please download the correct version.

Full instructions in zip file.

Notice:
Since the following words are used in HTML tags I would avoid them as keywords:
style, div, class, pre, href, img, html, meta, name, rel, nofollow, and link.

I would also avoid any single letter or two letter keywords since they could easily be used accidentally in places you weren't intending.

------------------------------------------------------

Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;) Thank You!

BirdOPrey5 16 May 2011 01:56

Reserved

10giay 16 May 2011 08:56

Good for SEO .

eh69 16 May 2011 11:40

BirdOPrey5 thank You very much! Its working great! Showing links only for selected groups is very good idea - I set links only for guest (google spiders) :D

Nominated for mod of the month :)

For me its great mod, but if You want do more options I have some sugestions:
-limit for link in one post (or thread if its posibble) - too many links is not good for seo
-limit for using one phrase i one post/topic - then more phrases will be using
-You can add some text about SEO, internal linking in description of the mod on vbulletin.org forum - more poeple will be install this :)

ex.: internal linking is very important - wikipedia have strong seo because have good internal linking :)

BirdOPrey5 16 May 2011 12:40

Quote:

Originally Posted by eh69 (Post 2196292)
BirdOPrey5 thank You very much! Its working great! Showing links only for selected groups is very good idea - I set links only for guest (google spiders) :D

Nominated for mod of the month :)

For me its great mod, but if You want do more options I have some sugestions:
-limit for link in one post (or thread if its posibble) - too many links is not good for seo
-limit for using one phrase i one post/topic - then more phrases will be using
-You can add some text about SEO, internal linking in description of the mod on vbulletin.org forum - more poeple will be install this :)

ex.: internal linking is very important - wikipedia have strong seo because have good internal linking :)

Limiting to 1 link per post should be fairly easy I will try and get an update soon.

For your second suggestion- not sure I follow- are you saying to scan the post for all keywords and then only link the keyword that is used the most in that post?

As for SEO benefits I'm happy to see it discussed in this thread but my goal was to make a mod for people who wanted it, not to convince people they needed it- that's up to them. :)

eh69 16 May 2011 12:50

1. 'one' link is only example. settings to X link will be pretty :)
2. I have 6 phrases for 1 link.
Alfa Romeo 156
Alfy Romeo 156
Alfa 156
156
etc.

Its will be nice when I can set in script that phrase '156' will be using only one time in one post/thread.

Ex:
I have text:
Alfa Romeo 156 to fajne auto, rzadko się psuje i jest super, bomba, hiper, fajne. Alfa 156 jest super, bo jest fajna i w ogóle. Kupując Alfa Romeo 156 zyskujesz prestiż i nie wiadomo co jeszcze :) Kup Alfa romeo 156, a będziesz wielki jak Kubuś Puchatek i będziesz jeździł 230 km/h!

And script replacing one phrase on link only one time in this text, ex:
Alfa Romeo 156 to fajne auto, rzadko się psuje i jest super, bomba, hiper, fajne. Alfa 156 jest super, bo jest fajna i w ogóle. Kupując Alfa Romeo 156 zyskujesz prestiż i nie wiadomo co jeszcze :) Kup Alfa romeo 156 (here is not link, because is using before in text), a będziesz wielki jak Kubuś Puchatek i będziesz jeździł 230 km/h!

Ofcourse this will be settins X times can be used in post, not only 1 :D

Do You understand now? :) My english is bad - I know :D

BirdOPrey5 16 May 2011 16:06

Updated to version 0.91-

Added the ability to limit the number of links per keyword per post.

beduino 16 May 2011 16:12

Thank you Sir :)
all the best
joao barroca

BirdOPrey5 17 May 2011 13:12

Updated to 0.92- Added ability to customize the look of links via CSS.

Class: boplink

See top thread or instructions for full details.

Kolbi 17 May 2011 13:56

Have 2 notices:

The number of keyword replaces seems not to work. Tried 1 or 2 replaces but all keywords (3 times) were replaced...

Another little question perhaps you make it case sensitive?

Because the first word in a sentence is written in big letters for example, but the word in a senctence is written in small letters:
"The school is over! So the pupil are on the way home."
If I now want to replace "the" with "<a hre="/">the</a>" it will be:
"<a hre="/">the</a> school is over! So <a hre="/">the</a> pupil are on <a hre="/">the</a> way home."
So the first word is now written in small letters...

Kolbi 17 May 2011 13:59

Third notice (just saw the update):

Why not using the class attribut instead of adding a span?

Instead of:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

try:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I guess the span tag may be xhtml invalid... (not tested but I guess it can be...)

BirdOPrey5 17 May 2011 14:17

Quote:

Originally Posted by Kolbi (Post 2196756)
Have 2 notices:

The number of keyword replaces seems not to work. Tried 1 or 2 replaces but all keywords (3 times) were replaced...

Another little question perhaps you make it case sensitive?

Because the first word in a sentence is written in big letters for example, but the word in a senctence is written in small letters:
"The school is over! So the pupil are on the way home."
If I now want to replace "the" with "<a hre="/">the</a>" it will be:
"<a hre="/">the</a> school is over! So <a hre="/">the</a> pupil are on <a hre="/">the</a> way home."
So the first word is now written in small letters...

1) It's 1 match per keyword. If your keywords are red, blue, green and your limit is 1, the sentence: "I like red, blue, and green." will still see 3 links. The sentence "I have a red hat, a red coat, and red shoes." will have only 1 link.

2) I can probably get it to match the case of the word it was linking, keeping the original case format. It would still be case insensitive when finding words. Actually I can make that an option too.

Quote:

Originally Posted by Kolbi (Post 2196757)
Third notice (just saw the update):

Why not using the class attribut instead of adding a span?

Instead of:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

try:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I guess the span tag may be xhtml invalid... (not tested but I guess it can be...)

Mostly because putting the class in the a tag didn't work in my test. Does it work for you? :confused:

Kolbi 17 May 2011 14:27

1) Is the limitation per post or page? Tried it with several posts on one page. Not with the same word mulitple in one post.

2) The solution with the original case format would propably be the best.

3) Normally it should work. Will try it later on.

BirdOPrey5 17 May 2011 14:32

1) per post

2) Will post when I update the mod

3) I thought so too but it didn't. This site suggested spans were needed: http://www.echoecho.com/csslinks.htm

Brandon Sheley 17 May 2011 14:50

great mod, I know it's one that's been asked for years


All times are GMT. The time now is 16:21.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.