Jump to content

IP.Board should recognize URL that does not have HTTP


jackmilas

Recommended Posts

Currently the way URLs are recognized by IP.Board is the http:// part of the address. So when we insert http://www.bbc.co.uk/ it is parsed as link, but when we type www.bbc.co.uk it stays as normal text. Also, the problem is with IMG tag. When there is no http:// in the image address, the picture will not show. People are used to typing addresses without http:// and IP.Board is out of date in this regard. There is a simple way to describe what is a URL and what isn't without the http:// part.

Link to comment
Share on other sites

In general, I agree with you... I'd like to see it handle www. or any of the regular .com, .net, .org, etc domains...

But what about.. "Hey, go to youtu.be"... youtu.be is a valid link, but could also be construed as poor punctuation and not a link.. What would your solution for that be without preg matching the whole post content with hundreds of permutations of domain extensions?

Link to comment
Share on other sites

Currently the way URLs are recognized by IP.Board is the http:// part of the address. So when we insert http://www.bbc.co.uk/ it is parsed as link, but when we type www.bbc.co.uk it stays as normal text. Also, the problem is with IMG tag. When there is no http:// in the image address, the picture will not show. People are used to typing addresses without http:// and IP.Board is out of date in this regard. There is a simple way to describe what is a URL and what isn't without the http:// part.

Although that may be a good option there are people who actually don't like the idea and just want it to not be a link :/. you could be saying www and not mean for it to be a link. And plus there is the bbcode image in the ckeditor that adds the http:// part for you so u dont have to worry about it :/ why dont people use it?

Link to comment
Share on other sites

Many automatic parsing systems I've seen that do this often break textual posts significantly. I've seen people type "www.threads" and the system tries to link it. Or "wowww. that's silly" and it tries to link it.

Well, you could always ask Google or Facebook how they do that. Check how Xenforo does that. I think badly programmed parsing would behave the way you described. But there are some smart programmers working at IPS, aren't there?

For people that would not want that in their communities there might be an option to switch it off in ACP. But I feel that here some of you forget that forums are not for computer geeks. They are for musicians, for parents, for car enthusiasts and mostly for normal people. They will appreciate simplicity of not having to add http:// when they want to type in www.autosport.com link. Oh, sorry, that was supposed to be http://www.autosport.com ...

Link to comment
Share on other sites

They will appreciate simplicity of not having to add http:// when they want to type in www.autosport.com link. Oh, sorry, that was supposed to be http://www.autosport.com ...

Then just tell them to use the link button... Click it once, type your URL, and it adds the http:// for them...

To be perfectly honest, I like the WYSIWYG approach over the 'we are going to automagically comb through your post and replace what we want without you knowing about it until after it's submitted'

Link to comment
Share on other sites

Or they would more than likely just use the link button in the editor and let the editor do it for them.

Yes, they would love that so much that they would feel lost in gmail and facebook where they don't have the link button and links are normally parsed. Check www.gmail.com and www.facebook.com if you don't believe me. Sorry, I can't bother with using the link button. Actually IP.Board is the only forum script I know that requires http:// or pressing the link button.

Link to comment
Share on other sites

Let me try to add a picture. The address is: www.dzwiek.org/board/admin/skin_cp/images/logo.png

I paste the address using "Image" button:

logo.png

oooppsss... no picture, it just says "logo.png" because there was no http:// there...

If a browser is failing to copy the http:// when you copy the url of the image then that's a browser bug.

Link to comment
Share on other sites

here is how google is dealing with no http:// addresses:

attachicon.gifScreen Shot 2012-11-26 at 10.34.42 PM.jpg

that is a screenshot of an email that I just sent

and i will bet 10/1 odds that is because all of those url's are indexed.

Google has a database of every link type that can possibly exist through virtue of having a crawler.

Surely you do not expect IPB to have that? To run regexes on all post content on display against such a database?

You should easily realize this is a security and resource concern, allowing *anything* to be used in a link href is tantamount to allowing XSS injection.

Link to comment
Share on other sites

Yes, they would love that so much that they would feel lost in gmail and facebook where they don't have the link button and links are normally parsed. Check www.gmail.com and www.facebook.com if you don't believe me. Sorry, I can't bother with using the link button. Actually IP.Board is the only forum script I know that requires http:// or pressing the link button.

Not that it matters to you, but just pointing this out.

idlW2BWzH9Wvu.png' alt='' class='ipsImag" alt="idlW2BWzH9Wvu.png">

I am sorry you can't bother with using the link button, but many others do and are completely fine with having to do so.

Link to comment
Share on other sites

  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...