Page 1 of 3

Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 12:06 am
by Andrew Lee
I have modified the submission editor to use BBCode.

What happens to the old HTML-based data is this. There is simply no reliable way to directly convert the at-times pretty messy HTML code to BBCode, so what I have done is to put a flag in the database that is initially marks all entries as HTML-based. That way, the current entries will all display as it is without modification.

When someone tries to modifying an existing entry, I made a routine that makes a best effort to convert the HTML code into BBCode. This is presented to the updater who will then fix any problems with the BBCode. Once that is done is saved, the flag is set to mark that entry as BBCode-based so that subsequently it can be displayed correctly.

Let me know if anything needs fixing. Thanks!

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 1:03 am
by I am Baas
Andrew Lee wrote:Let me know if anything needs fixing. Thanks!
w0t, no support for smilies?






Nothing to report yet.

Thank you.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 3:03 am
by Checker
Is it possible to set a button/switch, so the user is able to change the editor between BBCode and WYSIWYG :?:

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 3:07 am
by Checker
Andrew Lee wrote:Let me know if anything needs fixing. Thanks!
I just updated the entry of Q-Dir.
- I noticed, that I'm unable to find Q-Dir with direct search.
- After the update the "Synopsis"-Field was one big block (same with SearchMyFile) and I had to do some additional work to give it the "old" look. ... :|

So for me switching to BBCode it's no advantage presently.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 4:48 am
by Andrew Lee
Checker wrote:Is it possible to set a button/switch, so the user is able to change the editor between BBCode and WYSIWYG
The main reason why we are ditching the WYSIWYG editor is because it generates horrible, messy HTML code. And sometimes you have very little control when the formatting goes haywire. Haven't you encounter this before?!
Checker wrote:I noticed, that I'm unable to find Q-Dir with direct search.
I checked, and I think it's due to the limitation of MySQL search. So it should be the same as before the recent changes. I have some plans to improve the search by moving to Sphinx. But that's for another time.

I did fix up the highlighting when performing a search.
Checker wrote:After the update the "Synopsis"-Field was one big block (same with SearchMyFile) and I had to do some additional work to give it the "old" look. ...
You lost me here. Could you give me more details?

Thanks!

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 5:45 am
by lautrepay
Andrew Lee wrote:
Checker wrote:After the update the "Synopsis"-Field was one big block (same with SearchMyFile) and I had to do some additional work to give it the "old" look. ...
You lost me here. Could you give me more details?

Thanks!
I guess that Checker refers to the difference between this

Image

and this

Image
__________________________________________________________________________________

Another problem that I have had i is that I can't move down one level the first word of the field "What's new":

Image
__________________________________________________________________________________

Finally, sometimes after choosing the update preview, the address of the web page of the application disappears, which forces me to make a few more steps...

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:00 am
by Andrew Lee
Thanks for the details!

I believe I have fixed both issues.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:11 am
by Checker
@ lautrepay: That's it ... thanks for explaining.
@ Andrew Lee: I did a lot of this "bad to good" changes, but it was/is very easy to correct it.

But I see a lot of work coming up now.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:13 am
by Checker
Andrew Lee wrote:
Checker wrote:I noticed, that I'm unable to find Q-Dir with direct search.
I checked, and I think it's due to the limitation of MySQL search. So it should be the same as before the recent changes.
I did a lot of version number updates for "Q-dir" and I always found the entry with direct search input.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:18 am
by Checker
BTW: I noticed, that this thread does not show up at "Recent forum posts".
Is this intentionally :?:

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:23 am
by Checker
Look at the "Unicode support"-entry of Q-Dir

Presently:
YesThere are two version available: ANSI and Unicode. The Unicode version only works on Win2K/XP/Vista/7.
Should be:
Yes. There are two version available: ANSI and Unicode. The Unicode version only works on Win2K/XP/Vista/7.

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:39 am
by Checker
What happend to: SearchMyFiles :?:

The Synopsis is again one block of text. (Wasn't so as I changed it)
And additionally: The entry "A 64-bit version is available" is now missing :(

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 7:57 am
by Checker
Checker wrote:And additionally: The entry "A 64-bit version is available" is now missing :(
Oops, I missed, that you entered a seperate download-link for 64-bit now.

... now I/we have to change all 64-bit entries.
As I did most of this "A 64-bit version is available" entries and I had a lot of work to go thrue the database and give them a structured look, I see a lot of work coming up again :(

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 8:35 am
by procyon
Checker wrote: ... now I/we have to change all 64-bit entries.
As I did most of this "A 64-bit version is available" entries and I had a lot of work to go thrue the database and give them a structured look, I see a lot of work coming up again :(
IMHO, don't bother you with that. Affected entries can wait theirs next update. :)

Re: Update of submission editor to use BBCode

Posted: Thu Jun 21, 2012 3:36 pm
by lautrepay
Andrew Lee wrote:I believe I have fixed both issues.
Thank you, Mr. Lee.
Checker wrote: As I did most of this "A 64-bit version is available" entries and I had a lot of work to go thrue the database and give them a structured look, I see a lot of work coming up again :(
There's a lot of extra work to be done with the new 64-bit download links, but the entries look really better now.
I'll continue with my little help in the "updates" tasks, and hope others users can join.