vBulletin Mods

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

Word Links (Turn words into links) by BOP5
by BirdOPrey5
16 May 2011 02:02

5 Attachment(s)
My VB4 Version of this mod won the June 2011 Mod-of-the-Month!! This is virtually an identical mod- thank you for your votes!

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.

Demo Link

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.

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.94: The <span> tags for use with custom CSS are now optional. They can be turned off to prevent unnecessary HTML generation if not using custom CSS. Also bug & conflict fix.
  • New in 0.95: Enable or disable in PMs.
  • New in 0.96: Should fix conflicts with AME 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.31: Bug-fix. Somewhere around version 1.0 "Match Whole Words Only" stopped working. It is now fixed.
  • 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 2.0: New condensed code. New option for custom regex code.

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.

*NEW IN 0.92*

As of version 0.92 all links created are within a <span> tag of class "boplink." This allows you to customize the look of the links created by this mod ussing CSS.

In your "Additional CSS" you can add the following CSS code and customize it to your liking for each of your styles. This is OPTIONAL. If you do not add this CSS links will retain the same style as existing links in your posts.

Sample CSS:


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

This CSS will highlight the links in yellow and turn the text to red and bold when mouse-overed.

In VB 3.x Additional CSS is accessible via Style Manger -> All Style Options, scroll down to Additional CSS Definitions. Use the lower box to customize the CSS uniquely for each style.

This mod uses functions that may not work on non-latin (multibyte/unicode) characters. I'm sorry but it is only tested/working on English and other latin based alphabets.

Please Mark as Installed if you use this. :)

BirdOPrey5 16 May 2011 02:03

Reserved.

FreshFroot 16 May 2011 07:52

This looks really good! I need something like this!

Will test and try it out.

Thanks!

BirdOPrey5 16 May 2011 16:08

Updated to 0.91 - Adds an option to limit the number of links created per keyword per post. This should help for SEO purposes to prevent too many off-site links.

vijayninel 17 May 2011 00:20

Spectacular job BirdOPrey5. Works like a charm. We could use this to sell link words to advertisers as well. :)

BirdOPrey5 17 May 2011 02:10

Quote:

Originally Posted by vijayninel (Post 2196541)
Spectacular job BirdOPrey5. Works like a charm. We could use this to sell link words to advertisers as well. :)

Good idea... I'd hold out a couple weeks before you start selling ad words though to make sure it's working right.

I had it on my site thinking things were great until I found a bug where it was replacing words in image tags... I had to go back to the drawing board to fix that... I did fix it before being released but I'm keeping it beta for now because I could imagine some unusual scenario I didn't plan for coming to light.

If no one reports issues in the next few weeks I'll move it out of Beta...

jerseyda6 17 May 2011 04:08

The links are barely noticeable. Is there a way for them to be highlighted?

vijayninel 17 May 2011 05:56

Quote:

Originally Posted by jerseyda6 (Post 2196612)
The links are barely noticeable. Is there a way for them to be highlighted?

That is because of the colour of hyperlinks in your style. But I suppose it may be possible to have a option to underline the links as well. (I really wouldnt use that though, it would spoil the forum).

BirdOPrey5 17 May 2011 11:01

Quote:

Originally Posted by jerseyda6 (Post 2196612)
The links are barely noticeable. Is there a way for them to be highlighted?

I can work on something for that. Basically they look just like a link your user would make if they put a link in a post. (or at least they should look like that.)

I find personally that if you make the links too prominent users get upset because they consider it advertising but I will work on something so admins can choose if they want to go that route.

BirdOPrey5 17 May 2011 12:57

Updated to version 0.92- you can now use CSS to customize the look of the links if you want. This is totally optional.

In your "Additional CSS" you can put in code like:


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

to customize the look of the links. The above with highlight them in yellow and turn the text bold and red if hovered.

MagicThemeParks 17 May 2011 13:54

Quote:

Originally Posted by vijayninel (Post 2196541)
Spectacular job BirdOPrey5. Works like a charm. We could use this to sell link words to advertisers as well. :)

Great idea. :up:

BirdOPrey5 17 May 2011 15:54

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.

Aljuve 19 May 2011 07:14

Not working :(

BirdOPrey5 19 May 2011 12:47

A bug has come to light in the 4.x version causing it to not work on some forums. I will be releasing a fix later today.

BirdOPrey5 19 May 2011 15:30

Updated to 0.94, fixes a bug and a conflict with VBSEO. Also makes the additional HTML needed to use custom CSS optional. Can be turned on or off in the settings.


All times are GMT. The time now is 20:11.

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.