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

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

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?

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


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

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

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 06-12-2011 04:42 PM

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 06-12-2011 05:44 PM

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 06-12-2011 05:52 PM

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 06-12-2011 05:59 PM

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

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 06-12-2011 07:09 PM

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.


All times are GMT. The time now is 12:49 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.01121 seconds
  • Memory Usage 1,786KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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