Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Word Links (Turn words into links) by BOP5 Details »»
Word Links (Turn words into links) by BOP5
Version: 2.0, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 05-15-2011 Last Update: 07-27-2012 Installs: 69
Supported Uses Plugins
Translations  

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.

Download Now

File Type: zip Word Links FREE for VB3 by BOP5 v2.0.zip (244.6 KB, 256 views)

Screenshots

File Type: jpg wordlinks_phrase.jpg (73.2 KB, 0 views)
File Type: jpg wordlinks_vb3.jpg (103.2 KB, 0 views)
File Type: jpg user_profile_field_setup.jpg (93.2 KB, 0 views)
File Type: jpg word_links_free_vb4_settings_full.jpg (54.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
furnival, JohorBahru, xorex, yahsuah

Comments
  #92  
Old 12-04-2011, 11:26 PM
kpmedia's Avatar
kpmedia kpmedia is offline
 
Join Date: Jan 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the mod I've always wanted, but never existed. (No, I didn't like our pre-2011 options, both for technical and financial reasons.) Thank you so much for sharing this, and as open source in the spirit of the vB.org community. I don't often post simple thank you's, but this one deserved it for sure.

Also appreciate that you didn't ditch 3.x owners, and make a 4.x only mod.

BOP, I'm grateful.
Reply With Quote
  #93  
Old 04-11-2012, 08:32 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you release 2.0 for vb3.8?
Reply With Quote
  #94  
Old 04-11-2012, 09:30 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2.0 Was mostly because I made "Gold" version to work in the vBulletin Suite. There were only minor changes to the Free version- the cleaned up code was more for my benefit than anyone else.

What features do you want that this version doesn't already have?
Reply With Quote
  #95  
Old 04-11-2012, 09:42 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
2.0 Was mostly because I made "Gold" version to work in the vBulletin Suite. There were only minor changes to the Free version- the cleaned up code was more for my benefit than anyone else.

What features do you want that this version doesn't already have?
it works great, I just like new version numbers thanks!
Reply With Quote
Благодарность от:
BirdOPrey5
  #96  
Old 07-27-2012, 04:25 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by suko22 View Post
Hi, congrats for this addon, works great in my forum.

But have one problem with images. Using the default 'Insert image' button from vbulletin, if I try to insert an image whit a name linked whit this addon, I have this problem:



The word linked is 'dmt' , and the image name is 'dmt22.jpg' . How can I solve it?

thanks
I quote myself because i am having the same problem again. Look at this post http://www.todocircuito.com/foro/tod...49/#post250349

This is the last fix I used months ago... now doesn?t work

Quote:
Nevermind- I see the issue- you're image resizer mod is conflicting.

You can fix this by editing the three plugins:

Word Linker Group Message
Word Linker Postbit
Word Linker Visitor Messages


In EACH find the line:
Code:

$bopfind = '~'.$bopwd.'('.$bopfind.')'.$bopwd.'(?![^<]*(</a>|" />|width="\d+"|target="_blank"|width=\'\d+\'|follow ">|onclick="[\w .()]+"))~'.$bopcase;

And replace it with:
Code:

$bopfind = '~'.$bopwd.'('.$bopfind.')'.$bopwd.'(?![^<]*(</a>|" />|width="\d+"|target="_blank"|width=\'\d+\'|follow ">|rel="thickbox">|onclick="[\w .()]+"))~'.$bopcase;

In a future version I will include an option for a custom regex to take care of special circumstances like yours.
Reply With Quote
  #97  
Old 07-27-2012, 08:17 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the custom regex field of the mod settings try adding this to the end of the exiting code:

Code:
.jpg|
So the full box will probably look like:

Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|.jpg|
New code in red.

Note- there is no space between the old | and the new .
Reply With Quote
  #98  
Old 07-27-2012, 08:31 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
In the custom regex field of the mod settings try adding this to the end of the exiting code:

Code:
.jpg|
So the full box will probably look like:

Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|.jpg|
New code in red.

Note- there is no space between the old | and the new .
Uhmmm... I?m searching in Forum Options / Word Links by BOP5 and can?t find custom regex

Where is that field??
Reply With Quote
  #99  
Old 07-27-2012, 08:49 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry... It looks like I forgot to upload version 2.0 to vBulletin.org.

Let me double check it and if it is ready to go (like I think it was) I'll upload it in a few hours.

Version 2.0 has the custom regex option.
Reply With Quote
  #100  
Old 07-27-2012, 09:40 PM
suko22 suko22 is offline
 
Join Date: Jan 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Sorry... It looks like I forgot to upload version 2.0 to vBulletin.org.

Let me double check it and if it is ready to go (like I think it was) I'll upload it in a few hours.

Version 2.0 has the custom regex option.
Thanks m8, i?ll wait for 2.0 version then
Reply With Quote
  #101  
Old 07-28-2012, 12:29 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK So then I noticed this was the thread for the VB 3,8 version- i was not intending to update this version to 2.0, it was the VB4 version I updated to 2.0.

However I did go ahead and bring this version up to 2.0 so it has the same features as the 4.x version again.

NOTE - if you upgrade to v 2.0 there is now a php file you must upload.

This version has the custom regex field you can try per instructed above.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06312 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete