Site Feedback

Snooth User: andrew

Links in snooth talk

Posted by andrew, Feb 29, 2008.

Any way to add links in Snooth Talk?

Replies

800
288
Reply by Chris Carpita, Feb 29, 2008.

I think for now, Snooth is pulling out all html to be safe, so you'll have to paste in the full address for now. Am I wrong?

1023
1393
Reply by Mark Angelillo, Feb 29, 2008.

There's no good way to plop links in right now other than pasting the full URL in. I can imagine adding this functionality later.

If you put an anchor tag in your post it's going to be printed out verbatim as escaped text -- that's to prevent XSS vulnerabilities. Check it out:

A link to Snooth

67
695
Reply by gr, Feb 29, 2008.

Letting regular HTML anchor tags through without XSS risk is a problem only barely worth solving.

I'm not a big fan of the stupid formatting bars (that take forever to load) that certain forum software (hack, php, koff, BB) use, but I'm not necessarily the average population. Between Microsoft Office, Xanga, Livejournal, the afore-implied phpBB, people are used to this sort of thing, so maybe something SIMPLE along those lines (especially for site-internal links, easy to fill in because of your extant easy-to-read URLs), and maybe adopting a subset of phpBB/wikimedia/etc's brackets in place of angle braces might not be a bad plan.

1023
1393
Reply by Mark Angelillo, Feb 29, 2008.

I don't think we'll be setting up any formatting bars, but I do think activating links in some way would be a solid improvement. We can stick in anchor tags for anyone who pastes in a URL.

67
695
Reply by gr, Feb 29, 2008.

What about img tags?

2031
3202
Reply by Philip James, Feb 29, 2008.

as soon as we allow img tags we need to kick the pron filters into overdrive...

67
695
Reply by gr, Feb 29, 2008.

Bleh. Fair point. Bloody heathens.

1023
1393
Reply by Mark Angelillo, Mar 6, 2008.

This has been added -- check out the link on this page to see how HTML is handled.

67
695
Reply by gr, Mar 7, 2008.

So how picky are you about URIs?

ftp://ftp.support.veritas.com/
mailto:your@mom.com
https://www.amazon.com/

(Just testing.)

67
695
Reply by gr, Mar 7, 2008.

Okay, that seems reasonable.

67
695
Reply by gr, Mar 13, 2008.

Two new things:

1. URL recognition gives up on some characters that are (de facto?) not stop characters. Cf, RBoulanger's post in http://www.snooth.com/talk/topic/fo... (the omission of the | and everything after it there doesn't actually matter in this case, but depending on what the site's doing with the |, it could). I actually don't know whether the relevant RFCs permit | (or various other unusual characters) in the http URI or not, and the curmudgeon in me thinks that if they don't they shouldn't be accepted, but this may be a place where accepting the reality of use is less painful to your users than sticking to the Rules. (For example, _ isn't legal as a character for DNS zones, which Microsoft decided to exploit in their Active Directory design... and now DNS is flooded with zones including underscores, which Unix resolver libraries stubbornly refuse to turn into an IP address. And, you know, I'd actually rather my web browser just loaded my_friends_page.example.dom than be the jerk who points out they're in violation of the RFC.)

2. Line-wrapping is a drag. This isn't exclusive to URLs, since I can just type a lot of characters without white space and cause the same thing, but it's the place where it's likely to come up most frequently in forums. I've definitely seen implementations that elide URLs longer than N characters, which does make a certain amount of sense (you can mouse over the HREF to see the expansion), but deciding on N given variable screen real estate and font size makes it harder. I'm not convinced this is ever worth fixing, and it certainly shouldn't be high on anybody's list, but it is a bit of a visual blemish when text sticks out of the IFRAME it's supposed to live in, regardless of whether it runs over images or they run over it.

1023
1393
Reply by Mark Angelillo, Mar 13, 2008.

1. Some things are quick. I wasn't intentionally disparaging the pipe character -- fixed now.

2. Can you provide me a link where the current implementation isn't working well for you? I'm pretty sure I have code to clean it up.

2031
3202
Reply by Philip James, Mar 13, 2008.

http://www.snooth.com/talk#http://www.snooth.com/talk/topic/wi...

Mark - try that link. Half way down is a long URL

67
695
Reply by gr, Mar 14, 2008.

Or the one I originally linked to (http://www.snooth.com/talk/topic/fo...), where the URL fits within the screen but the extra characters that you weren't (oh, but are now!) making into a URL don't when you have the font size cranked up to the biggest A.

1023
1393
Reply by Mark Angelillo, Mar 14, 2008.

Aha. Yes this is a bug in Firefox. There is a workaround which requires manually inserting line breaks into the middle of long strings. I'll add it to the list.


Back to Categories

Top Contributors This Month

324443 Snooth User: outthere
324443outthere
66 posts
125836 Snooth User: dmcker
125836dmcker
62 posts
847804 Snooth User: EMark
847804EMark
59 posts

Categories

View All





Snooth Media Network