Expandable Comments

in pipedot on (#3F5)
Good news everyone! I've just pushed out the first version of expandable comments! They may still be a little rough around the edges, but you are welcome to try them out below or on any other story.

As for the nerdy details, the scripts are using jQuery to pull the raw comments in JSON format from the server. The two HTML5 slider elements control the display thresholds. Comments that are under the "Hide" threshold are completely hidden. Comments that are under the "Expand" threshold are collapsed. The rest of the comments are shown in full. Collapsed comments show the subject text + the first line of body text. You can click on any collapsed comment to expand it.

For those that prefer to be script free, we will offer an "Enable JavaScript" checkbox in your user settings page. Unchecking this option will present you with server-side-generated pages instead of the JavaScript enabled pages.

Re: Tried logging in with a non-existing user name? (Score: 3, Informative)

by zenbi@pipedot.org on 2014-03-07 18:57 (#AV)

Myself, I tend to use 'luser' as referring to the record itself, as opposed to the 'user', who is the actual person.
Exactly. The "user" field in the database is case sensitive so that people can have names like "SpallsHurgenson", but I didn't want another user to register "spallshurgenson" either. Nor did I want to constantly strtolower() the username when doing comparisons. Thus, I have two fields: "user" that is case sensitive and used for display, and "luser" that is the lower case equivalent and used for comparisons.
Post Comment
What is eighty seven thousand four hundred and forty three as digits?