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

Reply
 
Thread Tools
Word Links FREE (Turn words into links) by BOP5 Details »»
Word Links FREE (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: 4.x.x Rating:
Released: 05-15-2011 Last Update: 03-04-2012 Installs: 244
Uses Plugins
Additional Files  
No support by the author.



Thank You for voting this June 2011 Mod of the Month!!!

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.

This is the FREE Version. It allows you to auto-link words in:
  • Posts/Threads
  • Private Messages
  • Visitor Messages
  • Social Groups

The GOLD Version is available at Qapla.com It allows auto-linking words in:
  • Posts/Threads
  • Private Messages
  • Visitor Messages
  • Social Groups
  • Picture Comments
  • Blog Entries
  • Blog Comments
  • CMS Articles
  • CMS Comments

Live Demo at Qapla.com.

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 or styles.

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.935: Fixed conflict with VBSEO and possibly other mods. Upgrade if you are having problems.
  • New in 0.94: Made the "Custom CSS" an option to prevent unnecessary HTML if not needed.
  • New in 0.95: Enable or disable in PMs.
  • New in 0.96: Should fix conflicts with AME3 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.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 1.5a: Updated German language file thanks to Igel1.
  • New in 1.6: Fixed bug if keyword was part of thread title and thread title was a link in the post. (VB4 Only)
  • New in 1.7: Added field to extend the regex easily through the mod settings. Included fix for bold/font color links.
  • New in 2.0: Rewritten more efficient code. Added option to disable by styleid. Added GOLD version.

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.

Notice:
Since the following words are used in HTML tags I would avoid them as keywords:
style, div, class, pre, href, img, html, meta, name, rel, nofollow, and link.

I would also avoid any single letter or two letter keywords since they could easily be used accidentally in places you weren't intending.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
[s]Nominate MOTM if you LOVE it! [/s] Thank You!

Download Now

File Type: zip Word Links FREE for VB4 by BOP5v20.zip (244.3 KB, 1077 views)

Screenshots

File Type: jpg wordlinks20_posts.jpg (119.4 KB, 0 views)
File Type: jpg wordlinks20_socialgroups.jpg (87.5 KB, 0 views)
File Type: jpg wordlinks20_vms.jpg (82.3 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.
12 благодарности(ей) от:
babyv0x, BCP Hung, CThiessen, dnk.it, eTiKeT?, m2006, mahsazn, markoroots, mohammadxxx, postcd, Taurus1, Trangalleiro

Comments
  #312  
Old 05-20-2014, 07:31 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sonic83 View Post
Hi sir. He localizado las palabras que causan problemas.

What happens? Thank you

cr?dito
estrella de la ma?ana
estrella doji de la ma?ana
In your Language Manager for your language, in settings, what is the HTML Character Set set to?
Reply With Quote
  #313  
Old 05-20-2014, 07:59 PM
sonic83 sonic83 is offline
 
Join Date: May 2011
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sonic83 View Post
Hi sir. He localizado las palabras que causan problemas.

[/COLOR]
Haha, sorry, I put this in Spanish haha. In English it is:

"I have located the words that cause problems"
Quote:
Originally Posted by BirdOPrey5 View Post
In your Language Manager for your language, in settings, what is the HTML Character Set set to?
To answer your question:

ISO-8859-1

Thank you
Reply With Quote
  #314  
Old 05-21-2014, 12:28 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sonic83 View Post
Haha, sorry, I put this in Spanish haha. In English it is:

"I have located the words that cause problems"

To answer your question:

ISO-8859-1

Thank you
OK, now is your database latin or utf8? If utf8 is the utf8 line enabled in your config.php file?

Also- Are links stored in a csv file or directly in the mod settings data boxes?
Reply With Quote
  #315  
Old 06-05-2014, 02:37 PM
nektar nektar is offline
 
Join Date: Apr 2004
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.

I'm trying to move my forum to a new server with php 5.4 and I'm getting this error when the product is disabled (running 4.2.1)

Code:
mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 576656709 bytes) ..... line 135
Any ideas?
Thanks.
Reply With Quote
  #316  
Old 06-05-2014, 03:38 PM
nektar nektar is offline
 
Join Date: Apr 2004
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the line which causes the error:

Code:
$bop_message = preg_replace ($bop_find_array, $bop_replace_array, $bop_message, $boplim, $bopcount);
Reply With Quote
  #317  
Old 06-05-2014, 05:14 PM
nektar nektar is offline
 
Join Date: Apr 2004
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After removing all Greek words from Words/Phrases To Link everything works ok.
So this is a combination of non-English characters with php 5.4?
Reply With Quote
  #318  
Old 06-06-2014, 05:21 AM
nektar nektar is offline
 
Join Date: Apr 2004
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As of php 5.4 default encoding for htmlspecialchars is UTF-8.
So if your forum is in another encoding (like ISO-8859-1 which is mine) then you will have all the above problems.
The solution is to use your encoding with htmlspecialchar:

First Define your encoding:

PHP Code:
define('CHARSET''ISO-8859-1');
define('REPLACE_FLAGS'ENT_COMPAT ENT_XHTML); 
And then replace

PHP Code:
$bopfind preg_quote (htmlspecialchars($bopfind)); 
with

PHP Code:
$bopfind preg_quote (htmlspecialchars($bopfind,REPLACE_FLAGSCHARSET)); 
Reply With Quote
  #319  
Old 12-03-2014, 07:47 AM
shlomisa shlomisa is offline
 
Join Date: Nov 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi. thanks for this mod, it is exactly what i was looking for.
my forum is in utf8 and users type their posts in Hebrew.

the mod works fine with english words but i cant make it work on hebrew words.

the language is in ut8 and also the db.

can you please advise what to do?
Reply With Quote
  #320  
Old 12-03-2014, 11:53 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What really come in handy would be some sort of stats, that show how often a keyword has been turned into a link. Any chance that this could be added, Ozzy?
Reply With Quote
  #321  
Old 12-03-2014, 09:50 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummm, not sure, as this is BOP's mod not mine.
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 02:52 AM.


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.06822 seconds
  • Memory Usage 2,367KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_php
  • (4)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)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