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.

Wreck713 19 May 2011 21:23

This looks great, but I got a question since I dont see the answer in the screen shot.

Lets say the keyword is "Modern Warfare 3" and that term is used in the post 20 times. Will there really be 20 links in there ... or is there a way to set a maximum amount of links per keyword per post ?

Again, great work!

BirdOPrey5 19 May 2011 21:28

Quote:

Originally Posted by Wreck713 (Post 2197723)
This looks great, but I got a question since I dont see the answer in the screen shot.

Lets say the keyword is "Modern Warfare 3" and that term is used in the post 20 times. Will there really be 20 links in there ... or is there a way to set a maximum amount of links per keyword per post ?

Again, great work!

Yes you can set a maximum number of keywords per post. (If you set it to 3 for example than the first 3 uses of "Modern Warfare 3" will become links. If you have another keyword, say "Playstation 3" then that will also become a keyword up to 3 times in the same post.) The limit is per keyword per post.

Wreck713 19 May 2011 22:06

Thats awesome, I dont visit here too often, but you are an asset to this community! Thanks!

Lee G 20 May 2011 11:42

Great looking mod
This has got to be better than using tynt to create back links from scrapers
Plus I like the look of extra versatility of the links
Being able to limit what forums they display in along with being able to disguise them in the same color as normal text

drsli 20 May 2011 13:29

Awesome mod and very useful! Many thanks for providing it. :)

BirdOPrey5 20 May 2011 19:43

Thanks.

Updated to 0.95- Added option to enable or disable in PMs.

BirdOPrey5 31 May 2011 14:28

Updated to 0.96. Although none reported in this version should reduce chance of conflict with AME mod.

BirdOPrey5 05 Jun 2011 21:11

Updated to Version 1.0.
Out of Beta! Stable release.

nine5flareside 05 Jun 2011 23:11

Got my vote and I didn't even download it yet!

xmobile 07 Jun 2011 20:06

Nice mod, but...
1. If you install TCattd - The Image Resizer
http://www.vbulletin.org/forum/showthread.php?t=184571

2. If the keyword is chosen banner link to http://sample.com/... and then you insert the image url containing "banner", example: http://sample.com/banner/images01.jpg banner keywords in the url will be automatically converted into links and images error because url of the image is not intact.

Can U leave affected to keywords in IMG tags in this case?

BirdOPrey5 07 Jun 2011 21:35

Yeah image resizers can cause issues...

Can you turn off this mod and then paste here the HTML code of an image on your page with the image resizer turned on? It will start with <img src="... and give me the whole tag. I can then figure out how to disable the mod on those images.

Or if you can just link me to a post on your site with images in it I can look at the code myself.

vijayninel 08 Jun 2011 05:10

I got some sponsors to sponsor a contest on my forum in exchange for word links. :)

Many thanks to BirdOPrey5.

Artes_Marciales 11 Jun 2011 09:47

Great Mod!!

Artes_Marciales 11 Jun 2011 15:06

I love this mod, but I have a problem.

I use "hide links from guest" and the links generated by this mod are also hidden. I need those links are not affected by the mod "hide links from guest" as it does for example the mod "Post Replacements. "

Is there any way to get links from this mod are not hidden by "hide links from guest? :o
Thanks!!!

BirdOPrey5 11 Jun 2011 15:31

Can you give me a link to this mod?

BirdOPrey5 11 Jun 2011 15:42

if it's the MARCO mod try this:

Go to Admin CP -> plugin manager

Edit the plugin: Word Linker Postbit

Change the Execution Order from 2 to 7 and save the plugin.

Does that work?

Artes_Marciales 11 Jun 2011 15:46

1 Attachment(s)
http://www.vbulletin.org/forum/showt...35#post2206235
Product Here

Thanks!

BirdOPrey5 11 Jun 2011 15:52

Quote:

Originally Posted by Artes_Marciales (Post 2206239)

Try what I suggested above about changing the execution order.

Artes_Marciales 11 Jun 2011 16:06

Quote:

Originally Posted by BirdOPrey5 (Post 2206237)
if it's the MARCO mod try this:

Go to Admin CP -> plugin manager

Edit the plugin: Word Linker Postbit

Change the Execution Order from 2 to 7 and save the plugin.

Does that work?

Thank you!
Now it works perfectly, is a great mod for seo and affiliate links :)

adwade 12 Jun 2011 08:36

This is quite a nifty MOD indeed! Voted it MOTM!

Spinball 12 Jun 2011 09:39

Would it be possible to limit the number of keywords linked per page?
We'd choose a fairly low number like 3.

BirdOPrey5 12 Jun 2011 12:01

Quote:

Originally Posted by Spinball (Post 2206545)
Would it be possible to limit the number of keywords linked per page?
We'd choose a fairly low number like 3.

It's something I have some ideas on but it will mean some new plugins so it will probably be a while. In the mean time you can limit per keyword per post.

Out of curiosity would you be interested it a limit per keyword per page or an absolute number of links per page?

EDIT - I take that back, I was able to add a max number of links relatively easily, will have an update later today.

Spinball 12 Jun 2011 15:22

Smashing, thanks.
I'm only interested in a max number per page so as not to annoy our readers too much.
On the other hand, one of our advertisers has asked for all instances of 'HDMI cable' to link through to his site.
This could be very lucrative.
Not certain on whether to offer conversion to a link for all instances or keep it limited.

How does this work with key words or phrases which have already been linked by the poster?
And are there any clashes with Skimlinks plugin?

BirdOPrey5 12 Jun 2011 16:02

Quote:

Originally Posted by Spinball (Post 2206655)
Smashing, thanks.
I'm only interested in a max number per page so as not to annoy our readers too much.
On the other hand, one of our advertisers has asked for all instances of 'HDMI cable' to link through to his site.
Not certain on whether to offer conversion to a link for all instances or keep it limited.

How does this work with key words or phrases which have been linked by the poster?
And are there any clashes with Skimlinks?

If a keyword is already in a link it will be ignored by this mod.

I use vigink which to my knowledge works the same as skimlinks (javascript based link intercepting) and the links generated should be compatible with both.

adwade 12 Jun 2011 16:10

Alright, I seem to have somehow broken this MOD.:o It was working fine last night, but as I've added more entries something's amiss now.:( Below are my WORDS and LINKS, could you look over them and see what kind of rule I'm breaking?(i.e. Maximum size of a LINK, etc?)

I have Case Sensitive and Match Whole Words Only set to YES.

We're a Recumbent Cycling Website and I was trying to establish automatic LINKS to the various manufacturers. If there is a maximum length to a LINK's URL, can something like tinyurl.com be used instead?


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


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


BirdOPrey5 12 Jun 2011 16:11

Updated to version 1.1.

You can now set *an approximate* number of total max links per page.

It is approximate because the mod will make links until it reaches the end of the post, VM, or social group message where it meets the page max number of links.

BirdOPrey5 12 Jun 2011 16:31

Quote:

Originally Posted by adwade (Post 2206671)
Alright, I seem to have somehow broken this MOD.:o It was working fine last night, but as I've added more entries something's amiss now.:( Below are my WORDS and LINKS, could you look over them and see what kind of rule I'm breaking?(i.e. Maximum size of a LINK, etc?)

I have Case Sensitive and Match Whole Words Only set to YES.

We're a Recumbent Cycling Website and I was trying to establish automatic LINKS to the various manufacturers. If there is a maximum length to a LINK's URL, can something like tinyurl.com be used instead?


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


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

Wow... for a list like that please confirm you are using "Match whole word only" is YES and "Case Sensitive?" is yes. That should prevent any issues.

I did notice the mod is not matching "S&B" so I will look into that issue.

If you're still having an issue please link me to a post on your site showing the problem.

adwade 12 Jun 2011 16:49

Quote:

Originally Posted by BirdOPrey5 (Post 2206684)
Wow... for a list like that please confirm you are using "Match whole word only" is YES and "Case Sensitive?" is yes. That should prevent any issues.

I did notice the mod is not matching "S&B" so I will look into that issue.

If you're still having an issue please link me to a post on your site showing the problem.

Affirmative, both are set to YES.

Forgive me, I thought the whole MOD had ceased working, but after looking again some links are ok. Here's one that is not: http://tinyurl.com/3zdnnkq I expected to see Sunrise Medical with a LINK, but it's not.:confused:

I did try removing the S&B reference (and link), but it doesn't seem to have made any difference.

Spinball 12 Jun 2011 16:51

Quote:

Originally Posted by BirdOPrey5 (Post 2206669)
I use vigink which to my knowledge works the same as skimlinks (javascript based link intercepting) and the links generated should be compatible with both.

Skimlinks uses two methods of operation - the Javascript and a plugin. We use the plugin.
I have a concern that the plugin might clash with this mod.

adwade 12 Jun 2011 17:42

Quote:

Originally Posted by adwade (Post 2206694)
Forgive me, I thought the whole MOD had ceased working, but after looking again some links are ok. Here's one that is not: http://tinyurl.com/3zdnnkq I expected to see Sunrise Medical with a LINK, but it's not.:confused:

I did try removing the S&B reference (and link), but it doesn't seem to have made any difference.

I've taken my long-listing (seen in my post above) and began cutting it in down until I can narrow in on some culprits...

EDIT: I turned it ON for ALL Forums and it seems to be functioning properly. LOOKs like a(nother) case of User Error.:o I am carefully adding more WORDS/LINKS back in, but do not expect to see any more problems. SORRY BOP5.

BirdOPrey5 12 Jun 2011 18:44

No problem. thanks for the update, glad it is working.

It looks like I'll need to do an update for it to work with ampersands (&) since S&B doesn't seem to be working for me. Curious if you can see if it's working for you.

Also I'm going to download the skimlinks plugin and confirm one way or the other if the mods will work together in plugin mode. In Javascript mode it will work for sure.

adwade 12 Jun 2011 18:52

Quote:

Originally Posted by BirdOPrey5 (Post 2206684)
Wow... for a list like that please confirm you are using "Match whole word only" is YES and "Case Sensitive?" is yes. That should prevent any issues.

I did notice the mod is not matching "S&B" so I will look into that issue.

I added the S&B entry back in, but you are correct. For some reason, it doesn't show up as a link. To my knowledge, this is the only entry that's not working now. See http://www.recumbentriders.org/forum...ead.php?p=5128 for an example.

BirdOPrey5 12 Jun 2011 18:59

Quote:

Originally Posted by Spinball (Post 2206695)
Skimlinks uses two methods of operation - the Javascript and a plugin. We use the plugin.
I have a concern that the plugin might clash with this mod.

Spinball, are you talking about the "SkimWords" feature of SkimLinks? If so it sounds like it does pretty much the same thing as this mod.

Unfortunately it would seem without a Skimlinks account I can't do much testing.

I hope you consider testing the mod. This mod makes no changes to the database so disabling or removing it will immediately undo any changes it makes to posts.

If there is a conflict it may be a fairly easy fix such as changing the execution order of the plugins.

Quote:

Originally Posted by adwade (Post 2206741)
I added the S&B entry back in, but you are correct. For some reason, it doesn't show up as a link. To my knowledge, this is the only entry that's not working now. See http://www.recumbentriders.org/forum...ead.php?p=5128 for an example.

Yeah I pasted all your words and links into my test site and only S&B is not linking, I'm sure it's a special character issue, I will work on it and have a fix soon I expect.

adwade 12 Jun 2011 19:19

Quick Question...

In the post at http://tinyurl.com/3kptwls the fifth line down ends by saying: He rides a TerraTrike by WizWheels.

WizWheelz is one of my words, but it doesn't show up as a LINK in this case. Is that because I have Match Whole Words Only set to YES -and- there is a period following the word in this case?

BirdOPrey5 12 Jun 2011 20:09

Quote:

Originally Posted by adwade (Post 2206760)
Quick Question...

In the post at http://tinyurl.com/3kptwls the fifth line down ends by saying: He rides a TerraTrike by WizWheels.

WizWheelz is one of my words, but it doesn't show up as a LINK in this case. Is that because I have Match Whole Words Only set to YES -and- there is a period following the word in this case?

Your list of keyword was Wizwheelz with a "Z" - that post is Wizwheels with an "S."

Whole words will work with periods, exclamation points, spaces, new lines- basically any normal punctuation that would end a word.

BirdOPrey5 13 Jun 2011 01:47

adwade - I have figured out the "S&B" issue is because the & is being turned into the HTML code for an "&."

I will update the mod, probably tomorrow, but for now if you want change your keyword:


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

to


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

And it should link S&B as expected. :up:

BirdOPrey5 13 Jun 2011 19:54

Updated to Version 1.2

Fixed bug when ampersand (&) and other special HTML characters were used in keywords. Keywords with these characters (ex: S&B) will work as expected.

Spinball 14 Jun 2011 12:38

Another couple of points.
We would want some transparency to our visitors. Every time a link is added, we would want some kind of indication of that. Otherwise people whose posts have been changed will complain that it will look like they posted the link and therefore endorse it.
Could we have a title attribute of something like
Quote:

Shopping links added by AVForums
?

Also it would be nice if we could track the number of added links and clicks some how.
My ad guy suggested inserting a 1x1 pixel also.

Have you considered any of these ideas?

BirdOPrey5 14 Jun 2011 14:36

Quote:

Originally Posted by Spinball (Post 2207545)
Have you considered any of these ideas?

I figured the issue of having links added to posts should be told to the users by way of an announcement and/or forum rules noting that the forum has a policy of auto-linking certain keywords and users should understand some links may be added to their posts. If you want to list your keywords or such that is up to you.

If your're using skimwords they should already be used to this.

The custom CSS option allows you to make links generated by this mod look different than ordinary user-added links so that could help reduce confusion too.

I suppose I could add an option to append a line to any post altered by this mod something like "For your convenience some keywords in this post have been auto-linked." - Obviously something you could edit.

But the tracking of links would involve edits to the database and that was never something I was intending to do with this mod. May I add it one day- possibly- but it likely will not be anytime soon.

Adding a spot for a 1-pixel gif would only help track if someone was willing to make a separate gif for each keyword. It could be done but does anyone really want to go through that much trouble? And it would only show how many times a link was displayed, would be of no help tracking clicks.

BirdOPrey5 14 Jun 2011 16:22

1 Attachment(s)
New in 1.3: Added optional notice on posts with links and associated phrase.

You can now choose to display a custom notice in posts, PMs, visitor messages, and social group posts to alert users that keywords have automatically been turned into links.

To edit this notice use the Phrase Manager and edit the GLOBAL phrase: bop5_wordlinks_note.
HTML code is allowed in phrases. {1} will be replaced with the number of keywords linked in a post. Its use in the phrase is optional.

Artes_Marciales 14 Jun 2011 16:35

Great Work!!!! : D

I have a suggestion but do not know if it will be very difficult to program
Registered users can enable or disable "Word Links" from your profile?
That would be perfect.

BirdOPrey5 14 Jun 2011 16:41

Quote:

Originally Posted by Artes_Marciales (Post 2207658)
Great Work!!!! : D

I have a suggestion but do not know if it will be very difficult to program
Registered users can enable or disable "Word Links" from your profile?
That would be perfect.

It would require you as admin to make a custom profile field but the logic would be pretty easy to program in the mod, I just don't know how many admins would like to give the choice to disable- would defeat the purpose of the mod.

But I will try and work it into the next update.

Artes_Marciales 14 Jun 2011 16:58

Ok, Thanks!! : D

I think registered users may not want to see the links and I think is very good for them to have the possibility to enable or disable the mod.

BirdOPrey5 15 Jun 2011 01:50

BUG-FIX!

I noticed today that the option to "Match Whole Words Only" was being ignored and upon investigation I see it has been broken since version 1.0. (It was working in the Betas). I have fixed this issue and released version 1.31.

I am also well into development of an option to manage links and keywords via a csv datafile, so it's easier to keep track of than the two boxes currently in use. I expect to have this newer version out in the next day or two.

BirdOPrey5 15 Jun 2011 21:19

Big update today... Two new features.

1) For those of you with a lot of keywords and links it's hard to keep track of which keyword goes to which link in the two separate boxes you can now put all your keywords and links together in one .csv (comma separate value) data file and upload it and the mod will pull its info from the data file instead of the two boxes.

In addition you can use advanced features if using the datafile such as setting the "target" and "rel" attributes for each link individually if you choose. If you don't specify a target or a rel value the mod will use whatever setting you have chosen in the mod settings.

A sample datafile is included and an example is here:

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

You can make a csv file in a text editor or use a spreadsheet like Microsoft Excel and "Save As" a common CSV file.

The second new feature is integration with an optional Custom User Profile Field. If you make a custom profile field to enable users to turn automatic word linking on or off you can tell this mod which field number you created and the mod will disable itself for anyone who turns it off. (By default it's on.) Full instructions on how to make a custom user profile field is included in the mod instructions.

A separate How-To make a compatible csv datafile is also included in the mod .zip fie.

adwade 16 Jun 2011 03:28

THANXX again. This is working just M-a-r-v-e-l-o-u-s!

Artes_Marciales 16 Jun 2011 18:40

Great Work!!!!
Thanks!!!

teach1st 25 Jun 2011 15:47

I imagine not many people use the HTML "alt" image tag with vBulletin, but I do with my class newsletters, which go back for nine years. Word Links breaks the image if the alt tag one of the auto-linked words. For example, "homework" is automatically linked. If I have an image with "homework" in the alt tag (and I do, every week), here's what I get: X (broken image) homework3.gif" alt="homework"> (homework is a link)

Not a big deal, really. It's really a great product. Thanks!

BirdOPrey5 25 Jun 2011 16:28

I know most people don't use alt in their images in vBulletin, but actually this mod should work even if they do. I just checked your site (the one in your profile) and found this example link in one of your posts (by viewing the HTML source)


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

The problem is that isn't a valid xhtml img element though it works on browsers just fine... the proper tag should look like:


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

I assume you're using some type of Mod or BB Code to produce those images. If you edit it to put the proper xhtml closing (the "space, followed by the slash, followed by the closing square-bracket) or " />" this mod will recognize it as an xhtml <img> tag and ignore all keywords inside of it be it filename or alt code.

teach1st 25 Jun 2011 16:34

Quote:

Originally Posted by BirdOPrey5 (Post 2212661)
I assume you're using some type of Mod or BB Code to produce those images. If you edit it to put the proper xhtml closing (the "space, followed by the slash, followed by the closing square-bracket) or " />" this mod will recognize it as an xhtml <img> tag and ignore all keywords inside of it be it filename or alt code.

Thanks for the tip! The problem is I've been using that kind of sloppy coding for the past ten or eleven years, but I think I might be able to use the vB replacement variable manager to change them in bulk.

BirdOPrey5 25 Jun 2011 16:42

Are you using a BBCode? If so it would be a simple fix and work on all past images as well. If it is a BB Code paste the replacement text into a post and I can update it for you.

teach1st 25 Jun 2011 16:48

Quote:

Originally Posted by BirdOPrey5 (Post 2212676)
Are you using a BBCode? If so it would be a simple fix and work on all past images as well. If it is a BB Code paste the replacement text into a post and I can update it for you.

I'm using straight HTML in the public forums (nobody else but me and a special kid account can post in public). Many of the tags were put in by my students, who help write the newsletter.

BirdOPrey5 25 Jun 2011 16:50

Quote:

Originally Posted by teach1st (Post 2212679)
I'm using straight HTML in the public forums (nobody else but me and a special kid account can post in public). Many of the tags were put in by my students, who help write the newsletter.

OK gotcha...

teach1st 25 Jun 2011 16:52

I am far, far from an expert, but I'm wondering if this would work:

Take: ">
Replace " />

BirdOPrey5 25 Jun 2011 17:06

It might but it may cause other problems with other tags... also I think the replacement variable is run after all other mods so it wouldn't help in this case.

Ideally you'd need some type of search and replace on your database using a regular expression to find your old <img> tags and update them to xhtml <img> tags....

But I wouldn't get involved in something risking your database if things don't go well.

Another solution but not ideal would be a plugin that runs on postbit_display_complete with executon order 1 (so it runs before this mod) to change your html <img> tags to xhtml <img> on the fly. But it would really depend on how consistent your existing tags were entered. Is it always src="" before alt="" for example? if they were inconsistent this wouldn't work.

teach1st 25 Jun 2011 17:16

With fifth graders, not much is consistent. :)

You are right...too much risk. So far, the "homework" tag is the only problem. I can simply use "hw" when I want to link to our homework page. Thanks for your help today and thanks for a great product!

furnival 05 Jul 2011 17:34

Wow this is fantastic. I was just looking for whether VBSEO could do something like this and stumbled across this thread. Many thanks for releasing this!

yamahapaul 15 Jul 2011 07:49

I want to use this for amazon but can't figure out how to structure the link to my affiliates program :confused:


:(

BirdOPrey5 15 Jul 2011 20:36

A basic affiliate link to Amazon looks like:


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

Change my affiliate code in red to your own code.

suko22 27 Jul 2011 12:19

Hi, congrats for this addon, works great in my forum.

But have one problem with images. Using the default 'Insert image' button from vbulletin, if I try to insert an image whit a name linked whit this addon, I have this problem:

https://www.vbulletin.org/forum/external/2012/07/5.jpg

The word linked is 'dmt' , and the image name is 'dmt22.jpg' . How can I solve it?

thanks :)

BirdOPrey5 27 Jul 2011 12:25

I'll need a link to that post.

suko22 27 Jul 2011 12:51

Quote:

Originally Posted by BirdOPrey5 (Post 2225518)
I'll need a link to that post.

here you are http://www.todocircuito.com/foro/sho...865#post105865

Thanks in advance :)

BirdOPrey5 27 Jul 2011 13:31

Quote:

Originally Posted by suko22 (Post 2225524)

Thanks... But please disable the mod or take dmt out so I can see what it looks like normally.

BirdOPrey5 27 Jul 2011 13:39

Nevermind- I see the issue- you're image resizer mod is conflicting.

You can fix this by editing the three plugins:

Word Linker Group Message
Word Linker Postbit
Word Linker Visitor Messages


In EACH find the line:

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

And replace it with:

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

In a future version I will include an option for a custom regex to take care of special circumstances like yours.

suko22 27 Jul 2011 15:39

Quote:

Originally Posted by BirdOPrey5 (Post 2225547)
Nevermind- I see the issue- you're image resizer mod is conflicting.

You can fix this by editing the three plugins:

Word Linker Group Message
Word Linker Postbit
Word Linker Visitor Messages


In EACH find the line:

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

And replace it with:

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

In a future version I will include an option for a custom regex to take care of special circumstances like yours.

Man, thousand of thanks, 'miles de gracias' in spanish. Now itīs woriking fine ;)

Of course, nominated to motm, i love this addon

yamahapaul 03 Aug 2011 08:00

How does this cope with linking a word to a particular product (by using the 'insert link' icon in the post interface and turning a word into a clickable link), would it still direct people to my affiliates program? for example I'd like to do something like this-

Quote:

I just bought my new wide angle 17-40mm lens from amazon and so far I'm very impressed with the results!

BirdOPrey5 03 Aug 2011 10:43

It won't link to individual products unless you set a link for each individual product... This is not a replacement for something like VigLinks or SkimLinks which will affiliate ALL your links (including links made by this mod.)

Wreck713 07 Aug 2011 20:16

How do you make it so the link text is blue and the link still is underlined. I played around with editing this CSS but my lack of skills didn't figure it out.

Also, I just upgraded the plugin and I have an issue that I was hoping by upgrading would fix. As I had this issue before too.

here is an example.

I wrote this ...

Quote:

I am testing out some stuff in regards to Uncharted 2. I love battlefield 3 and hate how Modern Warfare 2 turned out. I am also hungry as shit and waiting for a pizza to made in the oven.
and this is what it churned out.

Quote:

I am testing out some stuff in regards to Modern Warfare 2 turned out. I am also hungry as shit and waiting for a pizza to made in the oven.
each game reference should be linked, as you can see it botched it up and only left one game reference in there. ie. linked.

BirdOPrey5 07 Aug 2011 20:25

Quote:

Originally Posted by Wreck713 (Post 2230610)
How do you make it so the link text is blue and the link still is underlined. I played around with editing this CSS but my lack of skills didn't figure it out.

Also, I just upgraded the plugin and I have an issue that I was hoping by upgrading would fix. As I had this issue before too.

here is an example.

I wrote this ...



and this is what it churned out.



each game reference should be linked, as you can see it botched it up and only left one game reference in there. ie. linked.

Blue and underlined should be the default in VB 3.x.

I will need a link to your forum and a copy & paste of all your keywords and URLs (or the datafile) to investigate.

Also please let me know what your settings are in the mod.

Wreck713 08 Aug 2011 17:51

1 Attachment(s)
http://www.vbulletin.org/forum/attac...1&d=1312825819

there's my screenshot of settings.

Sent PM with other info.

THANKS!

BirdOPrey5 09 Aug 2011 18:37

Quote:

Originally Posted by Wreck713 (Post 2230960)
http://www.vbulletin.org/forum/attac...1&d=1312825819

there's my screenshot of settings.

Sent PM with other info.

THANKS!

I've tested using your exact words and your exact settings and the phrase you e-mailed me that was causing you issues, and it all worked fine.

I'd imagine you are having a conflict with some other mod perhaps.

As for the custom link colors you need to enable the custom CSS in the mod settings which you have off. And then add the CSS as instructed in the taxt file to your additional css template.

I don't do CSS design myself so it will be up to yo to figure out how to get the colors you want.

Wreck713 09 Aug 2011 23:36

fyi: I had the css enabled when I tried it, since it didnt work i then disabled and the screen shot came after. thanks for the help, I got a couple mods I know I can get rid of , I'll get rid of them and see if it helps ... otherwise guess im just screwed as most i gotta keep.

realmr 05 Sep 2011 13:39

Joe, does the add-on run any additional query ?
And how good is it with the loads, especially on a large forum ?

BirdOPrey5 05 Sep 2011 15:00

No additional queries.

I haven't had any complaints on server loads, I know there are some large/busy forums using it.

JohorBahru 27 Sep 2011 12:01

hi,

what should i name the data file? should i just name is as sample_wordlinks_data.csv as the file provided by you?


sorry, just realize there is a place for you to name it in the cp, after installation.

thank you!

kpmedia 04 Dec 2011 23:26

This is the mod I've always wanted, but never existed. (No, I didn't like our pre-2011 options, both for technical and financial reasons.) Thank you so much for sharing this, and as open source in the spirit of the vB.org community. I don't often post simple thank you's, but this one deserved it for sure.

Also appreciate that you didn't ditch 3.x owners, and make a 4.x only mod.

BOP, I'm grateful. :)

dethfire 11 Apr 2012 21:32

can you release 2.0 for vb3.8?

BirdOPrey5 11 Apr 2012 22:30

2.0 Was mostly because I made "Gold" version to work in the vBulletin Suite. There were only minor changes to the Free version- the cleaned up code was more for my benefit than anyone else.

What features do you want that this version doesn't already have?

dethfire 11 Apr 2012 22:42

Quote:

Originally Posted by BirdOPrey5 (Post 2319183)
2.0 Was mostly because I made "Gold" version to work in the vBulletin Suite. There were only minor changes to the Free version- the cleaned up code was more for my benefit than anyone else.

What features do you want that this version doesn't already have?

it works great, I just like new version numbers :D thanks!

suko22 27 Jul 2012 17:25

Quote:

Originally Posted by suko22 (Post 2225514)
Hi, congrats for this addon, works great in my forum.

But have one problem with images. Using the default 'Insert image' button from vbulletin, if I try to insert an image whit a name linked whit this addon, I have this problem:

https://www.vbulletin.org/forum/external/2012/07/5.jpg

The word linked is 'dmt' , and the image name is 'dmt22.jpg' . How can I solve it?

thanks :)

I quote myself because i am having the same problem again. Look at this post http://www.todocircuito.com/foro/tod...49/#post250349

This is the last fix I used months ago... now doesnīt work

Quote:

Nevermind- I see the issue- you're image resizer mod is conflicting.

You can fix this by editing the three plugins:

Word Linker Group Message
Word Linker Postbit
Word Linker Visitor Messages


In EACH find the line:
Code:

$bopfind = '~'.$bopwd.'('.$bopfind.')'.$bopwd.'(?![^<]*(</a>|" />|width="\d+"|target="_blank"|width=\'\d+\'|follow">|onclick="[\w .()]+"))~'.$bopcase;

And replace it with:
Code:

$bopfind = '~'.$bopwd.'('.$bopfind.')'.$bopwd.'(?![^<]*(</a>|" />|width="\d+"|target="_blank"|width=\'\d+\'|follow">|rel="thickbox">|onclick="[\w .()]+"))~'.$bopcase;

In a future version I will include an option for a custom regex to take care of special circumstances like yours.

BirdOPrey5 27 Jul 2012 21:17

In the custom regex field of the mod settings try adding this to the end of the exiting code:


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

So the full box will probably look like:


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

New code in red.

Note- there is no space between the old | and the new .

suko22 27 Jul 2012 21:31

Quote:

Originally Posted by BirdOPrey5 (Post 2351966)
In the custom regex field of the mod settings try adding this to the end of the exiting code:


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

So the full box will probably look like:


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

New code in red.

Note- there is no space between the old | and the new .

Uhmmm... Iīm searching in Forum Options / Word Links by BOP5 and canīt find custom regex

Where is that field??

BirdOPrey5 27 Jul 2012 21:49

Sorry... It looks like I forgot to upload version 2.0 to vBulletin.org. :o

Let me double check it and if it is ready to go (like I think it was) I'll upload it in a few hours.

Version 2.0 has the custom regex option.

suko22 27 Jul 2012 22:40

Quote:

Originally Posted by BirdOPrey5 (Post 2351980)
Sorry... It looks like I forgot to upload version 2.0 to vBulletin.org. :o

Let me double check it and if it is ready to go (like I think it was) I'll upload it in a few hours.

Version 2.0 has the custom regex option.

Thanks m8, iīll wait for 2.0 version then :)

BirdOPrey5 28 Jul 2012 01:29

OK So then I noticed this was the thread for the VB 3,8 version- i was not intending to update this version to 2.0, it was the VB4 version I updated to 2.0.

However I did go ahead and bring this version up to 2.0 so it has the same features as the 4.x version again.

NOTE - if you upgrade to v 2.0 there is now a php file you must upload.

This version has the custom regex field you can try per instructed above.


All times are GMT. The time now is 10:06.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, 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.