vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - External Link Titles, retrieve descriptive titles for URLs (https://vborg.vbsupport.ru/showthread.php?t=146679)

magnus 05-06-2007 10:00 PM

External Link Titles, retrieve descriptive titles for URLs
 
Keywords: SHOWTHREAD, external, link, titles, URLs, SEO

Description:
Retrieves descriptive titles for external posted links. Allows for better link recognition and, in theory, could help increase page SEO.

Details:
I recall this being requested somewhere, so I decided to take a stab at it. This is yet another feature offered in vBSEO.

For those unaware of what this actually does.. by default, when a URL is posted without a description it looks like:
http://www.vbulletin.com

With this modification enabled, it will now look like:
vBulletin.org Forum - The Official vBulletin Resource!

Nicer, eh?

[hr]-[/hr]
Installation:
  1. Download and import product-linktitles.xml via the Product Manager.
  2. Enable the modification via AdminCP > vBulletin Options > External Link Titles Options (it is disabled by default)
  3. ???
  4. Profit!

Notes:
There's really no magic here, it polls for titles using the cURL() function. If for some reason your host does not have cURL() enabled, you're out of luck.

From time to time you may notice the occasional link that does not get titled -- this is due to either the fact that the url is not active or it either timed out waiting for a response. By default, the system will wait for 5 seconds before timing out. If you wish to modify the timeout, you may do so via the AdminCP.

[hr]-[/hr]
Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really. :)

Version History:
  • 1.0.0 - Initial release, here's to hoping...
  • 1.1.0 - Added the ability to blacklist specific domains from having link titles retrieved (configurable via the AdminCP)
  • 1.1.1 - Wrapped returned titles in html_entity_decode(); to return properly decoded HTML characters.

Currently Known Bugs:
  • None

* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!

magnus 05-07-2007 05:58 PM

Holding this space..

Terminatoronly 05-07-2007 06:50 PM

First Install

Great Mod :)

Charlie98902 05-07-2007 09:11 PM

Second Install! :)

Stoebi 05-07-2007 09:23 PM

Hello,

thank you very much for this nice hack :)

I've found a little bug in the 2 plug-ins.
Please change
PHP Code:

if (isset($vbulletin->options['linktitles_active'])) 

to
PHP Code:

if ($vbulletin->options['linktitles_active']) 

Regards,

Stoebi

projectego 05-07-2007 09:29 PM

Awesome!

/me clicks install

magnus 05-07-2007 10:03 PM

Quote:

Originally Posted by Stoebi (Post 1243261)
Hello,

thank you very much for this nice hack :)

I've found a little bug in the 2 plug-ins.
Please change
PHP Code:

if (isset($vbulletin->options['linktitles_active'])) 

to
PHP Code:

if ($vbulletin->options['linktitles_active']) 

Regards,

Stoebi

Nice catch, thanks.

Charlie98902 05-07-2007 10:27 PM

For some reason on my board the update fails to work but the initial release does?

magnus 05-07-2007 10:38 PM

Quote:

Originally Posted by Charlie98902 (Post 1243305)
For some reason on my board the update fails to work but the initial release does?

Very the product is set to enabled. AdminCP > vBulletin Options > External Link Titles Options > External Link Titles Enabled (Make sure 'Yes' is checked)

Charlie98902 05-07-2007 10:55 PM

Quote:

Originally Posted by magnus (Post 1243316)
Very the product is set to enabled. AdminCP > vBulletin Options > External Link Titles Options > External Link Titles Enabled (Make sure 'Yes' is checked)

Thanks for the support as it is stated not supported. :D

Yes that was the issue, as when I used the initial release I guess it was on by default then as I didn't go into the admin panel.:up:


All times are GMT. The time now is 02:05 PM.

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.01147 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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