auto-clickable urls

Started by
19 comments, last by Michalson 19 years, 2 months ago
This has to be my #1 gripe with GameDev. Links are not automatically made clickable. I.e.: http://7427466391.com/ It causes two problems. Visit the site above to see the first one. The second is requiring us to code HTML to get rid of the first (which, being a good Samaritan, I do all the time.) PLEASE fix this!!!

Matthew Doucette, Xona Games

Advertisement
Is adding <a href=" ">Clicky</a> around your url so hard?

Besides, what is your first problem?
Quote:Original post by ToohrVyk
Is adding Clicky around your url so hard?

Besides, what is your first problem?

Not hard, just inconvenient. Computers can do this, and should. Check all my posts and you'll see I do it all the time. So I suffer from the 2nd problem.

However, I also suffer from the 1st problem which is not being able to click URLs of other members who do NOT type out the html code.

Both problems are easily fixed and should be. There really is no excuse.

"Machines should work. People should think." - IBM Pollyanna Principle

Matthew Doucette, Xona Games

Firefox + Linkification Extension = Everything coming up rosey for me!

Quote:There really is no excuse.

Certainly not for the second one. Lead by example, et al...
www.aidanwalsh(.net)(.info)
I know GDNet is ASP, but...

function create_URLs($text) {	$text = preg_replace("/(?:^|\b)((((http|https|ftp):\/\/))([\w\.]+)([,:%#&\/?~=\w+\.-]+))(?:\b|$)/is","<a href=\"$1\" target=\"_blank\">$1</a>",$text);	$text = preg_replace("/(?<!http:\/\/)(?:^|\b)(((www\.))([\w\.]+)([,:%#&\/?~=\w+\.-]+))(?:\b|$)/is", "<a href=\"http://$1\" target=\"_blank\">$1</a>", $text);	$text = preg_replace("/(([\w\.]+))(@)([\w\.]+)\b/i", "<a href=\"mailto:$0\">$0</a>", $text);	return $text;}


Regular expressions hurt my head [sad].

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

Quote:Original post by doodle_sketch
Linkification Extension


I am Firefoxing, too. Where do I get this extension?

Quote:Original post by doodle_sketch
Lead by example, et al...


Very true. But, not all members are going to start coding HTML. Even if they did, all the old posts are not going to magically change...

Unless... :)

Matthew Doucette, Xona Games

Quote:Original post by Matthew Doucette
Quote:Original post by doodle_sketch
Linkification Extension


I am Firefoxing, too. Where do I get this extension?


Linkification, er, linky...
www.aidanwalsh(.net)(.info)
Quote:Original post by doodle_sketch
Linkification, er, linky...

Thanks. I installed it and the link I posted in my first post is still unclickable. How about for you?

[EDIT:] CORRECTION, it works! Even though I restarted Firefox it must have loading the page from cache. Thanks!

Testing (mistakes are on purpose):

don't work:
google
google.com
google.com/
//google.com
//google.com/
www.google

work:
www.google.com
www.google.com/
http://google.com
http://google.com/
http://www.google.com
http://www.google.com/

They only become "linkified" after the entire page loads, images and all. So this is a good fix, but not as perfect as what GD could do. At any rate, this only solves ONE of the two problems I mention in my first post.

Matthew Doucette, Xona Games

Quote:Original post by Matthew Doucette
Quote:Original post by doodle_sketch
Linkification, er, linky...

Thanks. I installed it and the link I posted in my first post is still unclickable. How about for you?


Works fine for me.
www.aidanwalsh(.net)(.info)
Quote:Original post by Matthew Doucette
http://7427466391.com/

It causes two problems. Visit the site above to see the first one.


Quote:Original post by Mathew Doucette
At any rate, this only solves ONE of the two problems I mention in my first post.


So what exactly IS your first problem??? Visiting the site as suggested simply reveals that the linked addy doesn't exist (which I'd already guessed). I fail to see how the link being automatically clickable would in any way magically create content at the address specified, so I'm assuming that isn't the problem... so what is?

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement