Sending a Comment!

November 6th, 2011
Im getting a bit annoyed, Im sending a paragraph or so as a comment maybe even just two lines and its not sending all of it

e.g: This photo is realy nice, I like the bokeh, I might have to fav it

comes out as: This photo is really nice

Why is this happening?
November 6th, 2011
Are you posting it on the enlarged picture or the first main screen?
November 6th, 2011
there actual photo not from main screan @dmortega
November 6th, 2011
You're probably pressing shift when hitting the comma key and entering a less-than symbol accidentally or something. The site cuts anything after a less-than symbol off, as a safety measure.
November 6th, 2011
@eyebrows I noticed it doing that when i was trying to make hearts on a comment I was posting (I know, I'm such a girl) - but just out of curiousity, why would that be considered a safety measure?
November 6th, 2011
@pwallis Well!

Web pages are built in a language called HTML. If you right click this page (not on an image or on a button, but just somewhere in empty space) and click "View Source", or View Page Source or similar, you can see what it looks like. You'll notice it's full of <stuff like="this">. Those are called HTML elements, or tags.

Now, if the site didn't strip those from comments, it may be possible for someone to insert some program code (in another language called JavaScript) into a comment, via a specific HTML tag, that'd execute in anyone's browser when they viewed that photo. Thus, by blocking out HTML tags entirely, you remove the risk of malicious code appearing on the site.

In discussion threads there's a looser security, where certain tags are allowed, as you can see if you hit "How can I format my reply?" below.
November 6th, 2011
@eyebrows ahhhh! Thanks for explaining that:) So I still can't make hearts on my comments then. Bummer.
November 6th, 2011
@pwallis Thats what i do! Lets hope it comes up
November 6th, 2011
no it dident come up
November 6th, 2011
@pwallis But, you'm thinkin' "if these tags structures are stripped, how did @eyebrows manage to include one in his comment?" - well, imagine (this might all be a bit complex, but we'll see) you're writing an HTML document, with all your <tags and="such"> in it, but you wanted to literally include a less-than symbol, for making a <3, say. If you just straight entered the less-than, the web browser would think it was part of the HTML, and interpret it as a tag, and it wouldn't draw itself literally. It'd see it as part of the document structure.

So, there's another method for literally displaying characters used in the structure of HTML, using ampersands and semicolons, where in this case you put ampersand-l-t-semicolon (l-t standing for less than) and the browser knows you want it to display a less-than character. So & l t ; (with no spaces between) is how I got my < to display in here.

HTML is fun :P

-edit-
HOWEVER! Even the ampersand method doesn't work in photograph comments. :(
November 6th, 2011
@eyebrows my head just exploded.
November 6th, 2011
@pwallis hehe same, I tryed to read it and gor SO Confused ♥
November 6th, 2011
@pwallis @raggleroo it's a service I provide :P
November 6th, 2011
@eyebrows Do you have to be so confuseing - Joking, ♥ Im just lazy and cant be bothered to read :)
November 6th, 2011
@eyebrows I'M impressed! Who knew Doctor What?? However when Itry what you said all I get is the ampersand to show. What am I doing wrong?
November 6th, 2011
@grammyn Yeah, sorry, it doesn't work in comments either - only in discussion threads, I got myself confused too ._.
November 6th, 2011
@eyebrows Thanks. I am very challenged when it comes to technology and I was sure it was something I was doing wrong. However, you did just make it work in your comment so.............?
November 6th, 2011
@eyebrows thanks for your help pn here
November 6th, 2011
@eyebrows good replies, thanks. do you think i should allow formatting on photo comments? i dont want it to get like flickr where ppl include their own photos in the comments of your photo tho, i think thats a bit wrong
November 6th, 2011
@grammyn Made it work here, yeah, but not in a photo comment. On here, just &lt; would create the < symbol.
November 6th, 2011
@eyebrows OH! <3 THANKS and now I have figured it out! HUGE help Doc.!!!
November 6th, 2011
@Scrivna It wouldn't hurt, but I don't think it'd add much either. For simplest you could use the same regexp/function you're using here but just exclude the <img> tag from it I guess?
November 7th, 2011
@pwallis Copy and paste Rachael's ♥ :o) I had that same problem, and then someone mentioned this idea ( I think Jani?).
November 7th, 2011
@grammyn Look at you gettin' all tecchie!!!
November 7th, 2011
@marilyn <3 I wanted to use it with posts to you but the doctor has convinced me it won't work anywhere except in discussion so thanks for the opportunity to try it out. <3 !!!
November 7th, 2011
< ;-)
November 7th, 2011
@Scrivna I think the comments are fine just the way they are. We have plenty of room to say what we want to, and while shortcuts are nice, they aren't necessary.
November 7th, 2011
@grammyn This is my 3rd try at it... I <3 you, too!
November 7th, 2011
@scrivna When I started using this site back in January, I was testing to see if I could reference more than one photo (hosted elsewhere) each day in my album. I tried the html img tag in the photo description and the photo comments of my own photos but they were stripped away. It would be nice to reference external images to show others my extras, but I completely understand the usability and security issues that come with that. And even if you allowed only the owner of an album the option to use html on their own photo pages, you could end up getting something like MySpace. So instead, a link to a blog post works just fine. ;-)
November 7th, 2011
@marilyn Yay!!! Believe me it took me way more than 3 for the 1st one!
Write a Reply
Sign up for a free account or Sign in to post a comment.