Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Nao
3481
Features / Re: New revs
« on March 5th, 2013, 07:39 PM »
rev 1975 - Gallileo, Gallileo, Gallileo, Gallileo, Gallileo Figaro Magnifico[1]
(12 files, 8kb)

+ Replaced the Advanced Search pop-up link with a much better looking pop-up that comes up when you click the quick search input box (and pops out on click or tabbing outside of the form). It provides you with all of the advanced search options (except for the board list), and is loaded through Ajax so it doesn't add any bytes. Actually, it removes bytes from the HTML (although it also adds an extra line when inside a topic -- this needs more tweaking!). Adds more JS, of course, but what can I say... (script.js, Search.php, index.css, sections.css)

* Moved 'Advanced Search' and 'Search Results' language strings to Search language files. (Memberlist.php, index.language.php, Search.language.php)

+ Added a search scope select box. If you're within a topic, you can directly choose to search across the current board, or entire site. If you're in a board page, you can search across the entire site. (Search2.php, index.template.php, Search.template.php, Search.language.php, script.js)

! Oh, the agony... jQuery and IE8 don't cooperate when creating a new DOM node. While $('<div>') works perfectly everywhere, in IE7/8 it doesn't seem to close the element automatically, resulting in many issues. I'll only fix them one by one... Don't want to waste too many bytes because of that. (script.js)

* Should be doing my menu hack for all touch-enabled devices, rather than just Android. I'm sure iOS won't mind about it... (script.js) :edit: typo
 1. My fave 1975 albums are all instrumental... So I'm just going to pay homage to the cool guys who were born that year. 8-))
3482
Features / Re: New revs
« on March 5th, 2013, 05:10 PM »
rev 1974 - Dreamer, you know you are a dreamer...
(5 files +1-1, 85kb)

! Now that was an interesting commit... Reverting last one's update to jQuery 2.0 beta 2, because it has a nasty bug that causes all reqWin calls to break, and possibly more. While I could temporarily 'fix' this bug, I'd rather just downgrade because beta 1 was running fine. (Load.php, jquery-2.0.0b1.min.js, jquery-2.0.0b2.min.js)

* A few more Wess functions needed the static treatment. Not that it triggered any errors... I'm just trying to stick to strict standards (until I'm bored with it.) (Class-CSS.php)

* More strict fixes: array_shift(array_keys()) is better replaced with key(), at least on newly created arrays. Plus, it's strict. (ManageMemberOptions.php, ManagePlugins.php)

- Hmm, I didn't remember having left some ;xml strings in URLs here and there... Starting with the stats file. It works fine without them, of course. (stats.js)
3483
Features / Re: New revs
« on March 5th, 2013, 10:38 AM »
rev 1973 - Open your eyes, it's full of surprise, everyone lies, like the fox on the rocks, and the musical box.[1]
(4 files, 83kb)

* Updated jQuery 2.0 to beta 2. (Load.php, jquery-2.0.0b1.min.js, jquery-2.0.0b2.min.js)

! Fixed spellchecking not firing up in Quick Edit mode. Until we get to actually remove the SC feature entirely... (Display.template.php)
 1. Too many great albums for 1972-1973, had to choose between dozens so I took my favorite part of my favorite song of October 1972... Well, Pete took rev 1972 and didn't use it for references, so I'm calling dibbs! :P
3484
Off-topic / Re: Spirate
« on March 5th, 2013, 09:33 AM »
Maxx, when I say his ideas were fresh, I mean that he doesn't care about the stylistic separation between blog and forum themes. His implementations were classical and logical. Just have a look at my blog (http://nao.noisen.com), it was built with that SMF style between 2005 and 2009, and is close to what I want to do in Wedge.
3485
Well, that's what scrollbars are for... :^^;:
Also, loading the board list could be done via Ajax... On top of the original Ajax call. Nested Ajax calls, eh... ;)
Posted: March 4th, 2013, 07:19 PM

Styling nearly done (only got a problem with font sizes...), animation is looking good, everything looks like one of those mini-menus we all love, except it shows on focus, not hover. :)

I think I should have some committable material tomorrow!
3486
- Then we need to update the language string to say it empties the entire cache, not just the 'file' cache. (Also, when APC or whatever is enabled, as in here, it doesn't really empty a file cache... Heck, I'm not sure it empties the data cache at all... :P)

- That's the thing, if only a handful of people can use that option, e.g. those with FTP access, it would also save us the hassle of checking too carefully for any outdated cache entries, and at the same time there could be no abuse because we're talking about users who know exactly when they could have to empty the cache, i.e. they just uploaded something, and the website is suddenly broken or misbehaves...

- Everything currently in this error log... :^^;:
3487
The Pub / Re: Spell checker
« on March 4th, 2013, 07:14 PM »
Let's just bump this okay next weekend then, okay? :)
3488
It will have all of this, except for the board selection of course. (I'm saying of course, but it's probably doable, I guess...)

I'm just working on the styling bits, but it will require more work on the JS side to deal with modifying the default params and passing a new one (search scope). I also need to add language strings for scopes, ah ah...
3489
The Pub / Re: Spell checker
« on March 4th, 2013, 07:05 PM »
Hmm yeah, probably... ;)
I guess it's not even worth asking people again.

I won't work on it anytime soon though (i.e. before next weekend), if you want to remove it yourself, have fun.
3490
Quote from Arantor on March 4th, 2013, 06:49 PM
Quote
Actually, I think it'd be nice to have a general 'flush cache' button or menu entry, accessible from any non-admin page if you're an admin. (Or something...)
Admin > Maintenance > Routine > bottom option

I wouldn't encourage it everywhere.
Doesn't that only do the file cache, really...? At least that's what the option is advertising itself as doing.

Why wouldn't you encourage its use? If anything, it could save us a lot of support requests, at least in the areas where caching is not directly flushed by a new upload (and I don't really plan to stick with my expensive file date searches on every single page load just to ensure we're using the latest version of the JS and CSS files....)

Also, I noticed that the error log is in English, while my page is in French... Is it as desired? I thought the error messages were logged as language-independent strings, but maybe that's only the case of Dragooon's error log implementation in SMG/Aeva Media..?! Can't remember.
3491
The Pub / Re: Spell checker
« on March 4th, 2013, 06:56 PM »
Note to self, and to anyone... Wedge is still broken when clicking Spellchecking in quick edit mode.
It's an easy fix (I'll commit it at some point), just a wrong ID name, but it reminded me that we should really discuss whether to change this all to use php_enchant, or support both php_enchant and php_pspell, or get rid of everything, and consider that this was all a 'novelty' thing back in the early SMF days, and no one really has any use for this any more...

Would be nice to know if those who voted in the poll to keep the spellchecker (or at least consider keeping it), have changed their mind since 2011..?
3492
Actually, I think it'd be nice to have a general 'flush cache' button or menu entry, accessible from any non-admin page if you're an admin. (Or something...)
This would empty the language, css, js and file cache all in one go. Basically: "if you're having trouble, hit the button. If it doesn't fix anything, then come to us."
3493
Off-topic / Re: Spirate
« on March 4th, 2013, 06:09 PM »
That's the post... His outlook was already the freshest possible... :^^;:
I was kinda hoping that at some point he'd give me insight into my own skin work and give me clues on how to get better at 'modernizing' it...
3494
That's the idea, yes... ;)
Posted: March 4th, 2013, 05:10 PM

Okay, so I gave up on focusout stuff, and instead did it like I did with select boxes or something... A document-wide click event that tests whether we're clicking outside of the form. If yes, then close, otherwise not. It works perfectly (phew), and allows me to focus on other issues, but I'm a bit bothered by the fact that if you navigate with the keyboard, you can't actually close that popup... It's quite important because the search input is one of the first (if not the first) items that get navigated to by the keyboard, so once the popup is opened, it gets in the way... Bah!
3495
I'm not a big fan of using the database to handle things that are already in 'master' files, either, but whatever makes sense to you, as long as you handle language caching, i.e. updating stuff whenever a file is being updated by FTP.
Remember how I always hated when you moved bbcode to the database and didn't write an editor for these..? ;)