Weblog entry #112 for Steve
I've just received a mail from another person highlighting some of the broken comment handling facilities here.
Specifically the seperation between "plain text" vs. "html" when posting comments is a frequent problem, and it can be difficult to use special characters properly.
Mostly this wouldn't be an issue, except that we do have a lot of comments which wish to include things like Apache configuration blocks, eg:
<VirtualHost ...> Blah .. Blah Blah .. Blah Megan .. </VirtualHost>
The code behind the site (available here) makes a lot of modifications to submitted content to avoid XSS attacks, etc, and this has a lot of side-effects in the code which handles comments.
So I'm in a quandry.
The solution I'm strongly favouring is to drop Text vs. Plain in all areas of the site. Instead to switch to using BBCode for markup.
This will result in text like this:
[url=http://blah.com/]Link title[/url] [b]Bold text[/b] [i]italic text[/i] .. normal text.
We lose the ability to do some things in the comments/markup, such as tables, but itemized lists (etc) will still be available.
Anybody comments? Opinions?
Yay/Nay?
Comments on this Entry
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Nothing has changed yet, the comment preview has been there for ages..
Even with bbcode support unmarked-up/plain text would still be there - just wouldn't be a seperate option.
[ Parent | Reply to this comment ]
For the preview - If I make a comment in one place, then go to make a comment in another place, I see a message about having to wait 60 seconds, as well as an empty preview of the comment I am yet to write..
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
The main things I want to support are:
- Italic
- Bold
- Pre-formatted text.
- Hyperlinks
Anything else is a bonus I think.
I'm going to see if I can fixup the comment handling a little just now, and if I can't then I'll be very keen to switch to something simpler which I don't have to write ;)
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
i trust you to make the decision in the way that's best for d-a.org, but count me as one vote for keeping around an html submission choice (even if i have to go turn it on in my Options setting or something).
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
After a couple of hours work I think I've got things fixed up better now - so it looks like there will be no changes in the short term.
Maybe a subject to revisit in the future if it becomes necessary for other reasons.
I think that using "Plain Text" should now work for all the cases that people have reported as being broken in the past.
[ Parent | Reply to this comment ]