It is currently Sun Dec 10, 2017 4:07 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 12:06 am 
Offline
User avatar

Joined: Sat Feb 04, 2006 9:19 am
Posts: 2154
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!


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 1:03 am 
Offline
User avatar

Joined: Thu Aug 07, 2008 4:51 am
Posts: 4139
Andrew Lee wrote:
Let me know if anything needs fixing. Thanks!

w0t, no support for smilies?






Nothing to report yet.

Thank you.

_________________
Bəəs 2.0


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 3:03 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
Is it possible to set a button/switch, so the user is able to change the editor between BBCode and WYSIWYG :?:


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 3:07 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
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.


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 4:48 am 
Offline
User avatar

Joined: Sat Feb 04, 2006 9:19 am
Posts: 2154
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!


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 5:45 am 
Offline

Joined: Sat Mar 26, 2011 2:31 am
Posts: 700
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...


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:00 am 
Offline
User avatar

Joined: Sat Feb 04, 2006 9:19 am
Posts: 2154
Thanks for the details!

I believe I have fixed both issues.


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:11 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
@ 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.


Last edited by Checker on Thu Jun 21, 2012 7:16 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:13 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
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.


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:18 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
BTW: I noticed, that this thread does not show up at "Recent forum posts".
Is this intentionally :?:


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:23 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
Look at the "Unicode support"-entry of Q-Dir

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

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


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:39 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
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 :(


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 7:57 am 
Offline
User avatar

Joined: Wed Jun 20, 2007 1:00 pm
Posts: 1616
Location: Ingolstadt [DE]
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 :(


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 8:35 am 
Offline

Joined: Wed Apr 11, 2012 1:30 pm
Posts: 34
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. :)


Top
 Profile  
 
 Post subject: Re: Update of submission editor to use BBCode
PostPosted: Thu Jun 21, 2012 3:36 pm 
Offline

Joined: Sat Mar 26, 2011 2:31 am
Posts: 700
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group