![]() |
Word Links FREE (Turn words into links) by BOP5
1 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:
The GOLD Version is available at Qapla.com It allows auto-linking words in:
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
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: [s]Nominate MOTM if you LOVE it! ;)[/s] Thank You! |
Reserved
|
Good for SEO .
|
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 :) |
Quote:
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. :) |
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 |
Updated to version 0.91-
Added the ability to limit the number of links per keyword per post. |
Thank you Sir :)
all the best joao barroca |
Updated to 0.92- Added ability to customize the look of links via CSS.
Class: boplink See top thread or instructions for full details. |
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... |
Third notice (just saw the update):
Why not using the class attribut instead of adding a span? Instead of: Code:
<span class="boplink"><a href="'.trim($boplink).'"' . $boptarg . $bopnofollow . ' >' . $bop_find_array[$bopi] .'</a></span> Code:
<a class="boplink" href="'.trim($boplink).'"' . $boptarg . $bopnofollow . ' >' . $bop_find_array[$bopi] .'</a> |
Quote:
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:
|
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. |
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 |
great mod, I know it's one that's been asked for years
|
not working on my 4.1.3
|
Quote:
Did it install? Did you set "enable" to Yes? Can you paste here a list of the keywords and URL's you are using? What actually happens- nothing? Bad links? Error code? Link to a post if possible? |
Updated to 0.93
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. |
Quote:
How many times of each keyword shall be replaced per page?2) Thank you, will try it out. 3) Can't test it, it seems that your new version isn't working anymore? Can't get it working on vB 4.1.2. It doesn't replaces the keywords with the links? |
Very weird... I just re-uploaded the exact code I just tested on a 4.1.2 forum. Please try again. Also I uploaded the older version just in case.
Please let me know. |
installed and testing. Looks good.
|
Not working? Wonder if xchache affects it?
|
Quote:
|
As I said to the other guy who said it's not working, if you want help I need more info.
What isn't working? Did it install? Did you set "enable" to Yes? Can you paste here a list of the keywords and URL's you are using? What actually happens- nothing? Bad links? Error code? Link to a post if possible? |
Bird,
What isn't working? It is not replacing selected words and turning them into links.. Did it install? Installed fine, no error messages or db error codes. Did you set "enable" to Yes? Sure did, did it twice to make sure. Can you paste here a list of the keywords and URL's you are using? What actually happens- nothing? Bad links? Error code? Nothing happens, no keywords selected in the admin area are converted to links. Link to a post if possible? Will shoot you credentials if you like? |
Please PM me the info, I will take a look. :up:
|
Gimme a sec to set you up with an admin account.
|
Thanks to fishmaster I found a conflict with VBSEO. I have uploaded a new version 0.935 to fix this conflict. If you were having problems with the mod not working at all I suggest you upgrade to 0.935 whether you run VBSEO or not.
If you use xcache or other caching software it may take several minutes for the affects of the mod to show up. Turn it on and wait 5 to 10 minutes if you don't see the links immediately- they will come eventually. |
Awesome addition, used correctly, will benefit any forum.
Nominated MOTM. |
Quote:
Your new version is now working ;) Although it was a clean vB 4.1.2 installation. Suggestions:
|
Nominated ;)
|
Quote:
PHP Code:
PHP Code:
I'll make the span tags optional in the next release. Appreciate the nominations. :cool: |
what if the word is already anchored i nthe post
will this mod override the link somebody gave, or it leaves such links alone? |
It leaves existing links alone.
|
notminated for mod of month. this is great i was waitign for that
|
Updated to 0.94- Adds the new feature to disable the <span> tags if not using custom css. Will prevent generating unnecessary HTML code.
|
Do you know how this mod influences performance?
For example if you have a lot of keywords to be replaced? |
Quote:
The bulk of the work here is being done by php's preg_replace function if that means anything to you. |
Okay, thank you. ;)
A little suggestion, is it possible to disable it on PMs? I know the postbit is used there, too. But perhaps you can use the this_script attribut? //Edit: Found a good test about pre_replace and str_replace: http://blog.rvi-media.de/php/perform...e-ist-langsam/ Seems that str_replace is a little bit faster... :D |
Quote:
str_replace is faster but not possible to use in this mod. |
All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|