The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Word Links (Turn words into links) by BOP5 Details »» | ||||||||||||||||||||||||||||||||
Word Links (Turn words into links) by BOP5
Developer Last Online: Aug 2023
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
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;} 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. Download Now
Screenshots
Show Your Support
|
4 благодарности(ей) от: | ||
furnival, JohorBahru, xorex, yahsuah |
Comments |
#62
|
|||
|
|||
THANXX again. This is working just M-a-r-v-e-l-o-u-s!
|
#63
|
|||
|
|||
Great Work!!!!
Thanks!!! |
#64
|
||||
|
||||
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! |
#65
|
||||
|
||||
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)
HTML Code:
<img src="http://www.pb5th.com/pbkidz10/log/051611.jpg" alt="!!!">
HTML Code:
<img src="http://www.pb5th.com/pbkidz10/log/051611.jpg" alt="!!!" />
|
#66
|
||||
|
||||
Quote:
|
#67
|
||||
|
||||
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.
|
#68
|
||||
|
||||
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.
|
#69
|
||||
|
||||
OK gotcha...
|
#70
|
||||
|
||||
I am far, far from an expert, but I'm wondering if this would work:
Take: "> Replace " /> |
#71
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|