Update of submission editor to use BBCode
- Andrew Lee
- Posts: 3083
- Joined: Sat Feb 04, 2006 9:19 am
- Contact:
Update of submission editor to use BBCode
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!
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
w0t, no support for smilies?Andrew Lee wrote:Let me know if anything needs fixing. Thanks!
Nothing to report yet.
Thank you.
Re: Update of submission editor to use BBCode
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
I just updated the entry of Q-Dir.Andrew Lee wrote:Let me know if anything needs fixing. Thanks!
- 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.
- Andrew Lee
- Posts: 3083
- Joined: Sat Feb 04, 2006 9:19 am
- Contact:
Re: Update of submission editor to use BBCode
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:Is it possible to set a button/switch, so the user is able to change the editor between BBCode and WYSIWYG
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.Checker wrote:I noticed, that I'm unable to find Q-Dir with direct search.
I did fix up the highlighting when performing a search.
You lost me here. Could you give me more details?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. ...
Thanks!
Re: Update of submission editor to use BBCode
I guess that Checker refers to the difference between thisAndrew Lee wrote:You lost me here. Could you give me more details?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. ...
Thanks!
and this
__________________________________________________________________________________
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":
__________________________________________________________________________________
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...
- Andrew Lee
- Posts: 3083
- Joined: Sat Feb 04, 2006 9:19 am
- Contact:
Re: Update of submission editor to use BBCode
Thanks for the details!
I believe I have fixed both issues.
I believe I have fixed both issues.
Re: Update of submission editor to use BBCode
@ 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.
@ 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.
Last edited by Checker on Thu Jun 21, 2012 7:16 am, edited 1 time in total.
Re: Update of submission editor to use BBCode
I did a lot of version number updates for "Q-dir" and I always found the entry with direct search input.Andrew Lee wrote: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.Checker wrote:I noticed, that I'm unable to find Q-Dir with direct search.
Re: Update of submission editor to use BBCode
BTW: I noticed, that this thread does not show up at "Recent forum posts".
Is this intentionally
Is this intentionally
Re: Update of submission editor to use BBCode
Look at the "Unicode support"-entry of Q-Dir
Presently:
Presently:
Should be:YesThere are two version available: ANSI and Unicode. The Unicode version only works on Win2K/XP/Vista/7.
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
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
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
Oops, I missed, that you entered a seperate download-link for 64-bit now.Checker wrote:And additionally: The entry "A 64-bit version is available" is now missing
... 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
IMHO, don't bother you with that. Affected entries can wait theirs next update.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
Re: Update of submission editor to use BBCode
Thank you, Mr. Lee.Andrew Lee wrote:I believe I have fixed both issues.
There's a lot of extra work to be done with the new 64-bit download links, but the entries look really better now.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
I'll continue with my little help in the "updates" tasks, and hope others users can join.