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)

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.


All times are GMT. The time now is 04:06 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.01107 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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