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 |
#112
|
||||
|
||||
I don't have data to compare. I've seen several hundred links work without issue.
|
#113
|
||||
|
||||
Is there a way to get this to ignore anything in a BB tag?
|
#114
|
||||
|
||||
How about making this for vb 5 - vb5 is the wave of the future!
I was stuck in vb3 for years but now that I've upgraded to vb5 over all I am glad I made the move. |
#115
|
||||
|
||||
Not really, it never sees the bbcodes, it works on the test that had already been converted to HTML.
|
#116
|
||||
|
||||
I have done some work on a VB5 version, it is not out of the question.
|
#117
|
|||
|
|||
Hello,
Thanks for the mod. It seems I need a custom regex for this. Matching the <i> tags. I also noticed if I use Turkish characters such as "Ş" in the phrase, the HTML output becomes invalid and I see the post text as font=5 ... etc. |
#118
|
|||
|
|||
Changing
PHP Code:
PHP Code:
<b> <i> <a> format has problems |
#119
|
||||
|
||||
Sorry, am not able to test or fix it for non-English characters.
Removing htmlspecialcharacters may be causing the issue with the tags, but if you want to try a new custom regex try: Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|</c>|</b>|</i>|</a>| The default to go back to if it doesn't work is: Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|</c>| |
Благодарность от: | ||
NeutralizeR |
#120
|
|||
|
|||
Quote:
I fixed the problem with Turkish characters. Added this function: PHP Code:
PHP Code:
PHP Code:
I'm currently using the CSV file and I will have about 200-250 words when I am done with the full list. xCache and VB Optimise are enabled, did not notice any performance issues so far (with 57 words). Do you think using the admincp option is faster? |
Благодарность от: | ||
BirdOPrey5 |
#121
|
||||
|
||||
I don't think it would be a noticeable difference. In theory I suppose the admincp option would be slightly faster but also require slightly more memory use on every page load regardless if word links were being used on the page or not.
The setting was never meant to be faster than the other, juset easier for people dealing with longer lists of keywords/links. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|