Log in

View Full Version : URL Descriptions


ErnieTheMilk
11-07-2008, 03:05 PM
I was looking for a simple solution to where people pop a url link into a post and it comes up with a description as opposed to just the website.

Not sure if this is an add on or a feature of vB. If it is an add on, can anyone point me in the direction of what it is? Not sure if it to do with the link or the properties side of things. I am using 3.7

Cheers

snakes1100
11-07-2008, 03:10 PM
<a href="https://www.vbulletin.org" target="_blank">This is vbulletin.org, you friendly hack support site!</a>

{url=www.vbulletin.org]This is vbulletin.org, you friendly hack support site!{/url]

Change the two { to [

Standard feature of vbulletin software.

or

Would you mean something more along the lines of a popup box messages, when they hover over a link?

noppid
11-07-2008, 03:11 PM
The BB codes have room for two variables I believe, not three. There is replacement and description. So I dunno how to pull that off.

You got the data after and you can work with. You need a place to feed a description as well if I understand correctly?

ErnieTheMilk
11-07-2008, 03:15 PM
This is exactly what I am looking for!

How can I make this automatically happen on my site?

Could you tell me please?

This is vbulletin.org, you friendly hack support site! (www.vbulletin.org)

{url=www.vbulletin.org]This is vbulletin.org, you friendly hack support site!{/url]

Change the two { to [

Standard feature of vbulletin software.

or

Would you mean something more along the lines of a popup box messages, when they hover over a link?

snakes1100
11-07-2008, 03:20 PM
There is no automagical way that im aware of, you would need to add custom code to create a new way of posting links.

Add a new field when clicking "reply to post" or "new thread", have two input boxes added under the text field, one asks for link, one asks for description, the hack/custom code would combine and dump it into the text filed upon submittal.

Lynne
11-07-2008, 03:26 PM
search "replace" "all mods" "titles only"

Replace URL's With Page Title (https://vborg.vbsupport.ru/showthread.php?t=155909&highlight=replac%2A)

ErnieTheMilk
11-07-2008, 03:56 PM
search "replace" "all mods" "titles only"


Perfect

Thanks so much!

snakes1100
11-07-2008, 03:58 PM
That hack forces a replacement, that does not add a custom description and is why i didnt post it.

Lynne
11-07-2008, 04:12 PM
That hack forces a replacement, that does not add a custom description and is why i didnt post it.
I posted it just in case it was close enough to what he wanted.

snakes1100
11-07-2008, 04:15 PM
I posted it just in case it was close enough to what he wanted.

I wasn't commenting about you Lynne, i was just informing him of what that actually is, thats going to force what ever is set on the page that it is linked to, thats not a custom description, i posted what i did so he knows.

noppid
11-07-2008, 04:28 PM
It also uses fopen(), not fsockopen(), so there is no timeout settable and the post could hang. It could fail if allow_url_fopen is not set and the server is in safe mode.

And the number on reason it's not cool is because it's a scraper. :/ Sheesh!

Oh yeah, and it's does not add a title tag to a url.