Back to vBulletin 3.6 Add-ons

Replace URL's With Page Title
Mod Version: 1.1, by Jafo232

This modification is in the archives.
vB Version: 3.6.8 Rating: (30 votes - 4.60 average) Installs: 467
Released: 22 Aug 2007 Last Update: 22 Aug 2007 Downloads: 2142
Not Supported Uses Plugins  



This product will automatically take any incoming parsed link and display the title of that page instead of showing the URL.

Example:

http://www.vbulletin.org/forum/index.php

Is how URL's are displayed by default, after adding this plugin, automatically the page title of that URL will be displayed and linked:

http://www.vbulletin.org/forum/index.php

The only thing required to install is to upload the product file (see readme in attached file).

For those asking what the difference is between this mod, and a similar one, see my post here:

Spoiler (click to open)


Quote by magnus
How is this any different than: External Link Titles, retrieve descriptive titles for URLs ?

Also, fopen() is a cludgy function to use and you'll find that many people will be unable to use it on shared hosting accounts (where fopen() is usually disabled in favor of the cURL() function).
Well there are several differences.

One being, there is only one plugin, and it uses one hook: url_to_bbcode.

Second, it uses Vbulletins built in method for matching URL's, instead of the one built into this hack.

If the user chooses not to parse links, during a reply or threadpost, then the hack won't override it as the hack you linked to appears to do.

I have never heard of a host disabling fopen, the only thing is when it used to open FILES, and safe mode is on, it will check the UID. However, I do not believe this applies when calling a remote document via http.

cURL on the other hand, must be installed on the system (well at least the libcurl package) whereas fopen is native.

What happens with the other hack when a user say, posts a link to the latest fedora distribution that is 2.7 GB? From what I see of the other hack, the server will attempt to download this entire package before parsing out a title (that it will never find). Of course, it will time out, or give you an exhausted memory error. My mod by contrast, only downloads the first 1000 lines of any document.

This also works with shoutbox or any other plugin that does not bypass the normal posting process, whereas the other only works with the newpost and and edit post hooks.

I hope this answers any of your questions.

Close


Limitations:
  • If the page has no title tag, only the URL will be displayed.
  • If the title tag does not appear within the first 1000 lines of the page, only the URL will be displayed. To keep the script from locking on URL's that go to large files or other large documents that could put a strain on the server and timeout a post, only the first 1000 lines are accepting when retrieving the page information.
  • Links on pages posted prior to adding this mod will not be updated.
Changelog:
  • Aug 22-2007: Fixed issue where functions might redeclare themselves, especially with shoutbox.
(note 49 downloads v1.0)

If you enjoy this mod, please nominate it for mod of the month (MOTM).


Download

This modification is archived, downloads are still allowed.

File Type: %1$s Title_Replace.zip (1.8 KB, 2235 downloads)

Similar Mods

Replace Local Links With Title vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024