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)

BirdOPrey5 06-13-2011 12:47 AM

adwade - I have figured out the "S&B" issue is because the & is being turned into the HTML code for an "&."

I will update the mod, probably tomorrow, but for now if you want change your keyword:

Code:

S&B
to

Code:

S&B
And it should link S&B as expected. :up:

BirdOPrey5 06-13-2011 06:54 PM

Updated to Version 1.2

Fixed bug when ampersand (&) and other special HTML characters were used in keywords. Keywords with these characters (ex: S&B) will work as expected.

Spinball 06-14-2011 11:38 AM

Another couple of points.
We would want some transparency to our visitors. Every time a link is added, we would want some kind of indication of that. Otherwise people whose posts have been changed will complain that it will look like they posted the link and therefore endorse it.
Could we have a title attribute of something like
Quote:

Shopping links added by AVForums
?

Also it would be nice if we could track the number of added links and clicks some how.
My ad guy suggested inserting a 1x1 pixel also.

Have you considered any of these ideas?

BirdOPrey5 06-14-2011 01:36 PM

Quote:

Originally Posted by Spinball (Post 2207545)
Have you considered any of these ideas?

I figured the issue of having links added to posts should be told to the users by way of an announcement and/or forum rules noting that the forum has a policy of auto-linking certain keywords and users should understand some links may be added to their posts. If you want to list your keywords or such that is up to you.

If your're using skimwords they should already be used to this.

The custom CSS option allows you to make links generated by this mod look different than ordinary user-added links so that could help reduce confusion too.

I suppose I could add an option to append a line to any post altered by this mod something like "For your convenience some keywords in this post have been auto-linked." - Obviously something you could edit.

But the tracking of links would involve edits to the database and that was never something I was intending to do with this mod. May I add it one day- possibly- but it likely will not be anytime soon.

Adding a spot for a 1-pixel gif would only help track if someone was willing to make a separate gif for each keyword. It could be done but does anyone really want to go through that much trouble? And it would only show how many times a link was displayed, would be of no help tracking clicks.

BirdOPrey5 06-14-2011 03:22 PM

1 Attachment(s)
New in 1.3: Added optional notice on posts with links and associated phrase.

You can now choose to display a custom notice in posts, PMs, visitor messages, and social group posts to alert users that keywords have automatically been turned into links.

To edit this notice use the Phrase Manager and edit the GLOBAL phrase: bop5_wordlinks_note.
HTML code is allowed in phrases. {1} will be replaced with the number of keywords linked in a post. Its use in the phrase is optional.

Artes_Marciales 06-14-2011 03:35 PM

Great Work!!!! : D

I have a suggestion but do not know if it will be very difficult to program
Registered users can enable or disable "Word Links" from your profile?
That would be perfect.

BirdOPrey5 06-14-2011 03:41 PM

Quote:

Originally Posted by Artes_Marciales (Post 2207658)
Great Work!!!! : D

I have a suggestion but do not know if it will be very difficult to program
Registered users can enable or disable "Word Links" from your profile?
That would be perfect.

It would require you as admin to make a custom profile field but the logic would be pretty easy to program in the mod, I just don't know how many admins would like to give the choice to disable- would defeat the purpose of the mod.

But I will try and work it into the next update.

Artes_Marciales 06-14-2011 03:58 PM

Ok, Thanks!! : D

I think registered users may not want to see the links and I think is very good for them to have the possibility to enable or disable the mod.

BirdOPrey5 06-15-2011 12:50 AM

BUG-FIX!

I noticed today that the option to "Match Whole Words Only" was being ignored and upon investigation I see it has been broken since version 1.0. (It was working in the Betas). I have fixed this issue and released version 1.31.

I am also well into development of an option to manage links and keywords via a csv datafile, so it's easier to keep track of than the two boxes currently in use. I expect to have this newer version out in the next day or two.

BirdOPrey5 06-15-2011 08:19 PM

Big update today... Two new features.

1) For those of you with a lot of keywords and links it's hard to keep track of which keyword goes to which link in the two separate boxes you can now put all your keywords and links together in one .csv (comma separate value) data file and upload it and the mod will pull its info from the data file instead of the two boxes.

In addition you can use advanced features if using the datafile such as setting the "target" and "rel" attributes for each link individually if you choose. If you don't specify a target or a rel value the mod will use whatever setting you have chosen in the mod settings.

A sample datafile is included and an example is here:
Code:

Amazon,http://www.amazon.com,,
eBay,http://www.ebay.com,,nofollow
Best Buy,http://www.bestbuy.com,_self,
JUOT,http://www.juot.net,_blank,nofollow
vBulletin,http://www.vbulletin.org,_blank,
Google,http://www.google.com,,
Apple,http://www.apple.com,,friend
Microsoft,http://www.microsoft.com,_self,alternate

You can make a csv file in a text editor or use a spreadsheet like Microsoft Excel and "Save As" a common CSV file.

The second new feature is integration with an optional Custom User Profile Field. If you make a custom profile field to enable users to turn automatic word linking on or off you can tell this mod which field number you created and the mod will disable itself for anyone who turns it off. (By default it's on.) Full instructions on how to make a custom user profile field is included in the mod instructions.

A separate How-To make a compatible csv datafile is also included in the mod .zip fie.


All times are GMT. The time now is 10:07 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.01121 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (3)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