Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
To-do list
Tidy fixes the >> problem. It converts the extra > to the & -gt entity.
I am starting to think this all way over-engineered. Storing what they typed, and displaying the expansion is going to gather up 99% of the cases. The remaining 1% won't break the board. We can give the poster a private message in that 1% where the post doesn't look right.
Liese's point about hassle-screens is solid, too. In the vast majortiy of cases the poster will accept the changes, so it just becomes a "Nyah, nyah! Had to fix your post!" nuisance.
I didn't mean a >> problem, but rather this one:
<font size="-3">
>blah blah blah</font>
Tidy will catch it, but when you display the expansion, it'll look perfectly fine to most people, and even the HTML savvy mightn't get from the source that it's broken.
When you say "storing what they typed and displaying the expansion" do you mean a correction screen, or just correcting and displaying?
Tidy fixes your example, ita, to display this:
blah blah blah.
do you mean a correction screen, or just correcting and displaying?
I mean no preview or correction page, beyond the edit page that is in use now. The edit box will contain exactly what was typed.
In that example, what happens is that
t font size=-1
t blockquote
t tt
blah blah blah
t /font
t /tt
t /blockquote
gets sent to tidy. Which it can definitely fix. What was being pointed out by Jon, I think, is that this is an error that occurs on expansion only, and what was being pointed out by me is that if presented with the opportunity to fix this, the error is obscure and hard to see.
However, irrelevant, since you're not talking about preview and fix.
So's I agree with you.
I'm glad my example is getting some mileage because the entities were a bitch to type.
I mean no preview or correction page, beyond the edit page that is in use now. The edit box will contain exactly what was typed.
Under this flow, if someone types bad html, would the post immediately get posted and it would be up to the poster to go into the editpost page? Or would it first go to the edit post page before being posted?
would the post immediately get posted and it would be up to the poster to go into the editpost page?
Yes. Today's flow. No change. In the post-TidyPlus era, there will be very little a person can do to mess up the html. I can't really think of anything, in fact. Building elaborate mechanisms to allow user correction seems unnecessary.
I know this seems a little Polyanna-esque, but there is a lot of diligence in the Tidy code.
Well then we've got the problem of notifying the poster privately that there were errors, but in a way that's obviously private.
That is done. The error messages only show up for the author of the post, and are prefixed with "Private message:".
The messages will also appear for admins.
The messages will also appear for admins.
I was going to suggest that. Maybe the message can say
"Private Message to
t username
: This post was Tidied"
with a link to the FAQ or how-to page explaining what Tidy does and what the poster's options are.
Works for me. I am using the edited-by class for the font style. It will only be presented when Tidy finds errors, as opposed to warnings.
For now, I'll use a link to the Faq. We can add a "#Tidy" at some point, I guess.
eta: OK, that is all in. TidyPlus is here [link] . I dares ya to break it.