Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Replace URL's With Page Title Details »
Replace URL's With Page Title
Mod Version: 1.1, by Jafo232 (Coder) Jafo232 is offline
Developer Last Online: Nov 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (30 votes - 4.60 average) Installs: 464
Released: 22 Aug 2007 Last Update: 22 Aug 2007 Downloads: 2090
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:

VBulletin.org Forum

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:

http://www.vbulletin.org/forum/showp...7&postcount=23

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 Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Replace Local Links With Title Jafo232 vBulletin 3.5 Add-ons 90 22 Aug 2007 04:10

  #31  
Old 22 Aug 2007, 17:54
semauae's Avatar
semauae semauae is offline
 
Join Date: Sep 2006
Real name: T@R!Q
I was searching for this hack

thnx alot , installed and I will try now
Reply With Quote
  #32  
Old 22 Aug 2007, 20:19
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
Ok, I've been waiting for this hack for some time... but I use another hack [AME] that parses the URLs converting them on Video, can this affect the functionality of the other hack?
__________________
. █│║▌│█│║▌║│█║▌│║║█║
Reply With Quote
  #33  
Old 22 Aug 2007, 21:02
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Jafo232
One being, there is only one plugin, and it uses one hook: url_to_bbcode.
One plugin location vs two.. heh.

Originally Posted by Jafo232
Second, it uses Vbulletins built in method for matching URL's, instead of the one built into this hack.
Correct, because if you use any other hacks that toy with vB's internal URL parsing routines it will most likely break this hack.

Originally Posted by Jafo232
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.
This is true, however, because it's by design. From an Admin's perspective, this mod is a great SEO tool. It's mostly for the admin, not necessarily the users.

Originally Posted by Jafo232
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.
Well, just to name one.. DreamHost. fopen() is generally considered a security risk on shared hosting servers.

Originally Posted by Jafo232
URL on the other hand, must be installed on the system (well at least the libcurl package) whereas fopen is native.
You'd be hard pressed to find a shared hosting provider that doesn't have cURL available. And those not using shared hosting can simply install it themselves. But I digress..

Originally Posted by Jafo232
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.
Well, the first problem here is that someone is trying to download Fedora.. when obviously they should be downloading a superior distribution such as Debian . That being said, there's a nifty (.. and configurable!) timeout option. By default, if a page takes longer than 5 seconds to return a title then the process is aborted and the default URL is used.

Originally Posted by Jafo232
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.
So.. I can hijack a shoutbox and cripple a server by spamming a bunch of links to 10GB ISO's and waiting for it to parse 1000 lines each time I paste it? However way this hack is implemented, by nature it's going to create additional load on the server. Why would you want to add an additional load to something that already puts a ridiculous strain on a server (re: Shoutbox)?

If you're going to provide a link in the OP to compare the differences, the least you could do is make sure the statements are factual.

Last edited by magnus; 22 Aug 2007 at 21:03. Reason: Spelling..
Reply With Quote
  #34  
Old 22 Aug 2007, 21:20
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by magnus View Post
One plugin location vs two.. heh.


Correct, because if you use any other hacks that toy with vB's internal URL parsing routines it will most likely break this hack.
That is why hacks that do not muck with the internal routines are better as opposed to the one you proposed.

Originally Posted by magnus View Post
This is true, however, because it's by design. From an Admin's perspective, this mod is a great SEO tool. It's mostly for the admin, not necessarily the users.
Well, from my prospective, it is better to worry about the users experience first, not a search engines. The ability to craft a URL without it being mucked by a hack is a requirement for many sites, especially those dealing with code. Your proposed hack limits a users experience.

Originally Posted by magnus View Post
Well, just to name one.. DreamHost. fopen() is generally considered a security risk on shared hosting servers.

You'd be hard pressed to find a shared hosting provider that doesn't have cURL available. And those not using shared hosting can simply install it themselves. But I digress..
It isn't hard at all. Look how many hacks that require cURL have questions about error messages regarding unfound functions that are part of cURL. There are numerous. If it wasn't a problem, then I fail to see why you mention it in your hack.

Originally Posted by magnus View Post
Well, the first problem here is that someone is trying to download Fedora.. when obviously they should be downloading a superior distribution such as Debian . That being said, there's a nifty (.. and configurable!) timeout option. By default, if a page takes longer than 5 seconds to return a title then the process is aborted and the default URL is used.
The timeout option does NOT stop the download. It is a timeout for a non-response. Please, let us keep it factual.

Originally Posted by magnus View Post
So.. I can hijack a shoutbox and cripple a server by spamming a bunch of links to 10GB ISO's and waiting for it to parse 1000 lines each time I paste it? However way this hack is implemented, by nature it's going to create additional load on the server. Why would you want to add an additional load to something that already puts a ridiculous strain on a server (re: Shoutbox)?
You mean like search bombing or a million other techniques you can use to DDOS a server? At least what you are speaking of is an intentional act. Posting a link to a large file is common in a forum with no malicious intent. YOUR plugin however makes it seem that way.

Originally Posted by magnus View Post
If you're going to provide a link in the OP to compare the differences, the least you could do is make sure the statements are factual.
Is it the fact that your lack of understanding of the overall concept that bothers you or that this plugin already has more than half the amount of installs yours has, yet it only took less than 24 hours for a superior hack to do it?
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #35  
Old 22 Aug 2007, 21:31
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Wow. Ok, pal. Good luck!
Reply With Quote
  #36  
Old 23 Aug 2007, 10:22
home9000 home9000 is offline
 
Join Date: Aug 2005
Is it working in 3.6.5 ?
Reply With Quote
  #37  
Old 23 Aug 2007, 10:37
home9000 home9000 is offline
 
Join Date: Aug 2005
It's working in 3.6.5

but it' give me the name of the forum also in the title . Is it possible to remove it
Reply With Quote
  #38  
Old 23 Aug 2007, 12:51
semauae's Avatar
semauae semauae is offline
 
Join Date: Sep 2006
Real name: T@R!Q
I tried it

when I write thread link it will display the Forum name

I want to display the thread name

can I ?
Reply With Quote
  #39  
Old 23 Aug 2007, 13:01
Handbag Handbag is offline
 
Join Date: Jan 2005
I was just coming on to say that version 1.0 buggered up my polls (ie. users were shown a blank page when trying to post a poll) but v1.1 fixes this, so thanks!
Reply With Quote
  #40  
Old 23 Aug 2007, 13:51
rayphua rayphua is offline
 
Join Date: Jul 2007
Interesting debate. I'm using yours Jaro, not that Magnus' version wasn't working. But based on what you're saying, I'd rather be safe than sorry. Anyway, the more important point is this, we're all here to better what's currently available on a standard VB package, so thumbs up to both of you.
Reply With Quote
  #41  
Old 23 Aug 2007, 15:52
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by semauae View Post
I tried it

when I write thread link it will display the Forum name

I want to display the thread name

can I ?
Originally Posted by home9000 View Post
It's working in 3.6.5

but it' give me the name of the forum also in the title . Is it possible to remove it
This is the title to your page. You need to remove it from your Vbulletin admin cp. It will display whatever is between the <title></title> tags.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #42  
Old 23 Aug 2007, 17:56
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by Handbag View Post
I was just coming on to say that version 1.0 buggered up my polls (ie. users were shown a blank page when trying to post a poll) but v1.1 fixes this, so thanks!
Yeah, I had a brain cramp in not realizing the function where the hook is might be called multiple times per instance. Since this was not a code edit, I forgot that the hook could be eval'd more than once.

That should all be fixed now.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #43  
Old 24 Aug 2007, 05:22
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Keeping allow_url_fopen off in mind, using fopen() might not be the best choice ...

If you don't want to use cUrl for one or another reason, what about fsockopen()?
Also, I'd prefer not to waste resources for local URLS (eg. showthread, etc.)
Would be nice if those were detected automatically and the titles retrieved directly rather than forking a new vBulletin instance just to get the title

Last edited by Andreas; 18 Aug 2009 at 13:48.
Reply With Quote
  #44  
Old 24 Aug 2007, 07:12
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
nice, I didn't know there was a hack for this at the Org

Thanks for sharing, I'll install for a client later I'm sure.
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #45  
Old 24 Aug 2007, 13:04
MB-Soft's Avatar
MB-Soft MB-Soft is offline
 
Join Date: Aug 2007
Real name: Christine
Thanks for the great Hack.

Clicked Installed
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:36.

Layout Options | Width: Wide Color: