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)

yamahapaul 08-03-2011 07:00 AM

How does this cope with linking a word to a particular product (by using the 'insert link' icon in the post interface and turning a word into a clickable link), would it still direct people to my affiliates program? for example I'd like to do something like this-

Quote:

I just bought my new wide angle 17-40mm lens from amazon and so far I'm very impressed with the results!

BirdOPrey5 08-03-2011 09:43 AM

It won't link to individual products unless you set a link for each individual product... This is not a replacement for something like VigLinks or SkimLinks which will affiliate ALL your links (including links made by this mod.)

Wreck713 08-07-2011 07:16 PM

How do you make it so the link text is blue and the link still is underlined. I played around with editing this CSS but my lack of skills didn't figure it out.

Also, I just upgraded the plugin and I have an issue that I was hoping by upgrading would fix. As I had this issue before too.

here is an example.

I wrote this ...

Quote:

I am testing out some stuff in regards to Uncharted 2. I love battlefield 3 and hate how Modern Warfare 2 turned out. I am also hungry as shit and waiting for a pizza to made in the oven.
and this is what it churned out.

Quote:

I am testing out some stuff in regards to Modern Warfare 2 turned out. I am also hungry as shit and waiting for a pizza to made in the oven.
each game reference should be linked, as you can see it botched it up and only left one game reference in there. ie. linked.

BirdOPrey5 08-07-2011 07:25 PM

Quote:

Originally Posted by Wreck713 (Post 2230610)
How do you make it so the link text is blue and the link still is underlined. I played around with editing this CSS but my lack of skills didn't figure it out.

Also, I just upgraded the plugin and I have an issue that I was hoping by upgrading would fix. As I had this issue before too.

here is an example.

I wrote this ...



and this is what it churned out.



each game reference should be linked, as you can see it botched it up and only left one game reference in there. ie. linked.

Blue and underlined should be the default in VB 3.x.

I will need a link to your forum and a copy & paste of all your keywords and URLs (or the datafile) to investigate.

Also please let me know what your settings are in the mod.

Wreck713 08-08-2011 04:51 PM

1 Attachment(s)
<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=131797&stc=1&d=1312825 819" target="_blank">https://vborg.vbsupport.ru/attac...1&d=1312825819</a>

there's my screenshot of settings.

Sent PM with other info.

THANKS!

BirdOPrey5 08-09-2011 05:37 PM

Quote:

Originally Posted by Wreck713 (Post 2230960)
https://vborg.vbsupport.ru/attachmen...1&d=1312825819

there's my screenshot of settings.

Sent PM with other info.

THANKS!

I've tested using your exact words and your exact settings and the phrase you e-mailed me that was causing you issues, and it all worked fine.

I'd imagine you are having a conflict with some other mod perhaps.

As for the custom link colors you need to enable the custom CSS in the mod settings which you have off. And then add the CSS as instructed in the taxt file to your additional css template.

I don't do CSS design myself so it will be up to yo to figure out how to get the colors you want.

Wreck713 08-09-2011 10:36 PM

fyi: I had the css enabled when I tried it, since it didnt work i then disabled and the screen shot came after. thanks for the help, I got a couple mods I know I can get rid of , I'll get rid of them and see if it helps ... otherwise guess im just screwed as most i gotta keep.

realmr 09-05-2011 12:39 PM

Joe, does the add-on run any additional query ?
And how good is it with the loads, especially on a large forum ?

BirdOPrey5 09-05-2011 02:00 PM

No additional queries.

I haven't had any complaints on server loads, I know there are some large/busy forums using it.

JohorBahru 09-27-2011 11:01 AM

hi,
[S]
what should i name the data file? should i just name is as sample_wordlinks_data.csv as the file provided by you?[/S]

sorry, just realize there is a place for you to name it in the cp, after installation.

thank you!

kpmedia 12-04-2011 11:26 PM

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. :)

dethfire 04-11-2012 08:32 PM

can you release 2.0 for vb3.8?

BirdOPrey5 04-11-2012 09:30 PM

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?

dethfire 04-11-2012 09:42 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2319183)
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 :D thanks!

suko22 07-27-2012 04:25 PM

Quote:

Originally Posted by suko22 (Post 2225514)
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:

https://vborg.vbsupport.ru/external/2012/07/5.jpg

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.

BirdOPrey5 07-27-2012 08:17 PM

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 .

suko22 07-27-2012 08:31 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2351966)
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??

BirdOPrey5 07-27-2012 08:49 PM

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

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.

suko22 07-27-2012 09:40 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2351980)
Sorry... It looks like I forgot to upload version 2.0 to vBulletin.org. :o

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 :)

BirdOPrey5 07-28-2012 12:29 AM

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.

suko22 07-30-2012 10:35 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2352021)
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.

Ok m8, updated to 2.0 and changed custom regex field, now works fine

Thanks again ;)

nervice 09-06-2012 10:01 AM

Great mod! Thanks for this.
I have a question related to using the CSV file.
Is it possible to have commas inside the words I would like to auto-link? I.e. is there a possibility to escape the comma character? Or to switch to a different separation character, e.g. semicolon?

klaush 09-08-2012 12:32 PM

Normally yes! But it has another issue with the "Add Alt Text for Images GOLD by BOP5 for VB 3. If this mod is installed and activated you will have the same style error as well.

Quote:

Originally Posted by suko22 (Post 2352693)
now works fine

Thanks again ;)


klaush 09-08-2012 01:24 PM

And this issue with all jpg/jpeg within the [ img ] tag:

The picture is not shown, but this line

jpg" border="0" alt="" />

klaush 09-08-2012 02:15 PM

O.k., found it. You can“t use "jpg" as a keyword!

cleonard 11-26-2012 02:06 PM

I just installed this on one of my forums and while it is creating links on new posts, older posts (my forum has nearly 10 years of content) remain unlinked. Is there a way to apply this tool to older posts or an add-on to do so?

Thanks!

al2thero 11-27-2012 12:57 AM

i like it

thank u

yahsuah 11-28-2012 10:33 PM

Thanks for this mod. It is working very well in my forum.

BirdOPrey5 11-29-2012 11:17 PM

Quote:

Originally Posted by cleonard (Post 2385272)
I just installed this on one of my forums and while it is creating links on new posts, older posts (my forum has nearly 10 years of content) remain unlinked. Is there a way to apply this tool to older posts or an add-on to do so?

Thanks!

1) Please "Mark as Installed"

2) This mod works on all posts, both old and new- If it is not working on old posts on your forum you must have some sort of separate caching system installed- clearing the cache should get it working on all old posts.

If it was just the vBulletin post cache it would already be working.

muhakeme 01-11-2013 01:45 AM

I have mod " Geek auto linker " . I had about 50000 URL and my CPU was very high. How is this mod about CPU?

BirdOPrey5 01-12-2013 02:07 PM

I don't have data to compare. I've seen several hundred links work without issue.

RSNF 01-04-2014 11:41 PM

Is there a way to get this to ignore anything in a BB tag?

mdawg 04-03-2015 04:52 AM

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.

BirdOPrey5 04-03-2015 07:37 PM

Quote:

Originally Posted by RSNF (Post 2472298)
Is there a way to get this to ignore anything in a BB tag?

Not really, it never sees the bbcodes, it works on the test that had already been converted to HTML.

BirdOPrey5 04-03-2015 07:38 PM

Quote:

Originally Posted by mdawg (Post 2542229)
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.

I have done some work on a VB5 version, it is not out of the question.

NeutralizeR 04-06-2016 08:24 AM

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.

NeutralizeR 04-06-2016 10:33 PM

Changing
PHP Code:

$bopfind preg_quote(htmlspecialchars($bopfind)); 

to
PHP Code:

$bopfind preg_quote($bopfind); 

fixed the issue with Turkish characters but not sure If it is safe to remove htmlspecialchars though I won't use &amp; < > etc. in my phrases.

<b> <i> <a> format has problems

BirdOPrey5 04-07-2016 07:14 AM

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>|
However I don't know if it will work.

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 04-07-2016 09:11 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2568608)
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>|
However I don't know if it will work.

The default to go back to if it doesn't work is:

Code:

</b></a>|</font></a>|</b></font></a>|</font></b></a>|</c>|

Thanks, It worked. Not sure what "</c>" stands for though...

I fixed the problem with Turkish characters.

Added this function:

PHP Code:

function bop5htmlspecialchars ($t){   $find[0] = '<';   $find[1] = '>';   $replace[0] = '&lt;';   $replace[1] = '&gt;';   return str_replace ($find$replace$t);} 

Replaced the related line with this:
PHP Code:

$bopfind preg_quote(bop5htmlspecialchars($bopfind)); 

And replaced the $bopwd with this in the regex:
PHP Code:

(?<=^|\PL)('.$bopfind.')(?=\PL|$) 

Now "Match Whole Words Only" works for words beginning and ending with Turkish characters.

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 04-07-2016 10:59 AM

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.


All times are GMT. The time now is 08:24 AM.

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.01504 seconds
  • Memory Usage 1,850KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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