vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Word Links (Turn words into links) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=263700)

BirdOPrey5 05-15-2011 10:00 PM

Word Links (Turn words into links) by BOP5
 
1 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:

Code:

.boplink A:link {background: yellow; text-decoration: none}
.boplink A:visited {background: yellow; text-decoration: none}
.boplink A:active {background: yellow; text-decoration: none}
.boplink A:hover {background: yellow; font-weight:bold; color: red;}

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 05-16-2011 01:03 AM

Reserved.

FreshFroot 05-16-2011 06:52 AM

This looks really good! I need something like this!

Will test and try it out.

Thanks!

BirdOPrey5 05-16-2011 03:08 PM

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 05-16-2011 11:20 PM

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

BirdOPrey5 05-17-2011 01:10 AM

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 05-17-2011 03:08 AM

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

vijayninel 05-17-2011 04:56 AM

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 05-17-2011 10:01 AM

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 05-17-2011 11:57 AM

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:

Code:

.boplink A:link {background: yellow; text-decoration: none}
.boplink A:visited {background: yellow; text-decoration: none}
.boplink A:active {background: yellow; text-decoration: none}
.boplink A:hover {background: yellow; font-weight:bold; color: red;}

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

MagicThemeParks 05-17-2011 12:54 PM

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 05-17-2011 02:54 PM

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 05-19-2011 06:14 AM

Not working :(

BirdOPrey5 05-19-2011 11:47 AM

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 05-19-2011 02:30 PM

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 05-19-2011 08:23 PM

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 05-19-2011 08:28 PM

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 05-19-2011 09:06 PM

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

Lee G 05-20-2011 10:42 AM

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 05-20-2011 12:29 PM

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

BirdOPrey5 05-20-2011 06:43 PM

Thanks.

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

BirdOPrey5 05-31-2011 01:28 PM

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

BirdOPrey5 06-05-2011 08:11 PM

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

nine5flareside 06-05-2011 10:11 PM

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

xmobile 06-07-2011 07:06 PM

Nice mod, but...
1. If you install TCattd - The Image Resizer
https://vborg.vbsupport.ru/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 06-07-2011 08:35 PM

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 06-08-2011 04:10 AM

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

Many thanks to BirdOPrey5.

Artes_Marciales 06-11-2011 08:47 AM

Great Mod!!

Artes_Marciales 06-11-2011 02:06 PM

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 06-11-2011 02:31 PM

Can you give me a link to this mod?

BirdOPrey5 06-11-2011 02:42 PM

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 06-11-2011 02:46 PM

1 Attachment(s)
https://vborg.vbsupport.ru/showthrea...35#post2206235
Product Here

Thanks!

BirdOPrey5 06-11-2011 02:52 PM

Quote:

Originally Posted by Artes_Marciales (Post 2206239)

Try what I suggested above about changing the execution order.

Artes_Marciales 06-11-2011 03:06 PM

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 06-12-2011 07:36 AM

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

Spinball 06-12-2011 08:39 AM

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

BirdOPrey5 06-12-2011 11:01 AM

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 06-12-2011 02:22 PM

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 06-12-2011 03:02 PM

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 06-12-2011 03:10 PM

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?

Code:

Angletech
Bacchetta
Backsafer
Barcroft
Bigcat
Bike Friday
Bike-e
Bike e
Bikee
Birk
BROL
Burley
Carbent
Catrike
Challenge
Cycle Genius
DF
Easy Racers
Easy Racer
Flevobike
Flying Furniture
Greenspeed
Haluzak
handcycle
Hase
Hell-Bent
Hellbent
HP Velotecnik
HPVelotecnik
Ice Adventure
Ice Spirit
Ice Vortex
Just Two Bikes
JTB
KMX
Labent
Ladue
Leitra
Lightfoot
Lightning Cycle Dynamics
Linear
Logo Trikes
Logo Trike
Longbikes
M5
Optima
Organic Engines
Para-Cycle
Paracycle
people movers
Quadracycle
Rainbow
Rans
RANS
recumbent
Recumboni
Reynolds
Rhoades
Ryan
S&B
Sidewinder
ST
Sunrise Medical
Sun
SUN
Terracycle
TerraCycle
Toxy
Trailmate
Trimuter
Trisled
Turner
Velocity
Velocraft
Velogenesis
Velokraft
velomobiles
velomobile
Vision
Volae
Wazabike
Windcheetah
Wizwheelz
Zohrer

Code:

http://angletechcycles.com/
http://www.bacchettabikes.com/
http://www.backsafer.com/home.asp
http://www.barcroftcycles.com/
http://www.catrike.com/
http://www.bikefriday.com/
http://www.bicycleman.com/recumbents/bike_e/bike_e.htm
http://www.bicycleman.com/recumbents/bike_e/bike_e.htm
http://www.bicycleman.com/recumbents/bike_e/bike_e.htm
http://www.speedbikes.ch/
http://www.bentrideronline.com/index.php
http://www.edgerecumbents.com/index.html
http://bentupcycles.com/product-list/short-wheelbase-1253/?rb_br=116
http://www.catrike.com/
http://www.challengebikes.com/
http://www.cyclegenius.com/index.html
http://www.acronymfinder.com/Diamond-Frame-%28bicycle%29-%28DF%29.html
http://www.easyracers.com/
http://www.easyracers.com/
http://translate.googleusercontent.com/translate_c?hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=auto&tl=en&u=http://www.flevobike.nl/&usg=ALkJrhhmpbguz3Kk7j0ho7tEpZc5hnVCbg
http://www.flyingfurniture.com.au/
http://www.greenspeed.com.au/
http://www.bicycleman.com/recumbents/haluzak/haluzak.htm
http://en.wikipedia.org/wiki/Handcycle
http://hasebikes.com/2-1-news-homepage.html
http://www.hellbentcycles.com/
http://www.hellbentcycles.com/
http://www.hpvelotechnik.com/index_e.html
http://www.hpvelotechnik.com/index_e.html
http://www.icetrikes.co/explore-our-trikes/adventure
http://www.icetrikes.co/explore-our-trikes/sprint
http://www.icetrikes.co/explore-our-trikes/vortex
http://www.justtwobikes.com/
http://www.justtwobikes.com/
http://www.kmxus.com/
http://www.labentbyladue.com/
http://www.labentbyladue.com/
http://www.leitra.dk/
http://www.lightfootcycles.com/
http://www.lightningbikes.com/
http://www.linearrecumbent.com/
http://www.logotrikes.com/
http://www.logotrikes.com/
http://www.longbikes.com/index.html
http://www.m5-ligfietsen.com/site/EN/
http://www.optimabikes.com/
http://www.organicengines.com/
http://www.para-cycle.com/whats/index.htm
http://www.para-cycle.com/whats/index.htm
http://www.recumbent.com/
http://www.quadracycleinc.com/
http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.rainbowligfietsen.nl%2Fpage%2F202%2Fligfietsen.html
http://www.ransbikes.com/
http://www.ransbikes.com/
http://en.wikipedia.org/wiki/Recumbent_bicycle
http://www.cambiecycles.com/
http://www.reynoldsweldlab.net/7352.html
http://www.rhoadescar.com/index.html
http://www.longbikes.com/2/CompanyInfo/AboutUs.html
http://home.pacbell.net/recumbnt
http://www.sidewindercycle.com/
http://www.stmfr.co.jp/STMFR/recumbent.html
http://tinyurl.com/3zs7a3p
http://www.sunbicycles.com/products.php?cl1=RECUMBENT
http://www.sunbicycles.com/products.php?cl1=RECUMBENT
http://www.terracycle.com/
http://www.terracycle.com/
http://www.toxy.de/index_en.html
http://www.trailmate.com/
http://www.trimuter.com/
http://www.trisled.com.au/
http://www.turnerrecumbents.com/
http://homepages.paradise.net.nz/velocity/index.html
http://www.velokraft.com/
http://www.velogenesis.com/
http://www.velokraft.com/
http://en.wikipedia.org/wiki/Velomobile
http://en.wikipedia.org/wiki/Velomobile
http://www.bicycleman.com/recumbents/vision/vision.htm
http://www.volaerecumbents.com/
http://wazabike.itgo.com/
http://www.windcheetah.co.uk/
http://www.wizwheelz.com/
http://www.zohrer.com.br/index.php



All times are GMT. The time now is 03:28 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
  • Page Generation 0.01411 seconds
  • Memory Usage 1,855KB
  • 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
  • (4)bbcode_code_printable
  • (9)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
  • (40)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