Stories
Slash Boxes
Comments

SoylentNews is people

posted by NCommander on Thursday June 04 2015, @10:00AM   Printer-friendly
from the lets-do-this-right dept.
So as the post-upgrade dust settles, one of the big things still left on our usability TODO list is implementing inline reply and moderation for the site. A quick survey of our developers is that no one here really is super experienced in writing JavaScript code, so I'm putting a call for help to find someone to help implement and write this. For anyone getting interested in SN development, this appears to be a straightforward task. Here's the official requirements for the feature.
  • A user should be able to post and moderate comments without a seperate page load
  • If JavaScript is disabled for whatever reason, the site must degrade to the current click-to-post functionality. We don't want to force people to enable JS if they don't wish to. Dynamically rewriting the DOM to change links may be necessary, but this can be discussed
  • The rehash API must be extended to add this functionality; this should be relatively easy and straight forward; we have parts of the original AJAX code so this functionality may already be in place.
  • Contact me, or paulej72 on IRC, or post a comment below if you're interested in helping.

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by wonkey_monkey on Thursday June 04 2015, @05:15PM

    by wonkey_monkey (279) on Thursday June 04 2015, @05:15PM (#192170) Homepage

    I'm pretty sure this can be done using only CSS3 with a single clever :after selector.

    Which "this" is it that you're referring to? Posting comments?

    How would you do that with CSS3 and no Javascript?

    --
    systemd is Roko's Basilisk
    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 3, Interesting) by urza9814 on Thursday June 04 2015, @05:56PM

    by urza9814 (3954) on Thursday June 04 2015, @05:56PM (#192194) Journal

    Replace the reply button with a checkbox element that just looks like a button. Then you add an ::after selector to the checked checkbox (ie, reply button is pressed) and you should be able to throw the entire comment form in a content block on that selector. So when you click the button, the reply form appears right below it. Use attr() to get the comment ID and put that into the form element so it knows where to submit it.

    It *would* still need to take you to a new page when it actually posts, but then you've just gotta update the redirect to drop you back where you came from.

    I'm not 100% sure this would work, but it seems feasible at first glance anyway...