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
9991
Features / Re: New revs
« on November 24th, 2010, 02:18 PM »
rev 289

- Reverted rev 287-288

rev 290

+ Added placeholder for a dynamic file cache suffix (*.js?suffix), in case we want to use it.
- Commented out the statistics sharing code. We're not SMF. (install.php, upgrade.php)
* More add_js/add_js_file. (Admin.template.php, Subs-Editor.php
- Deleted all copyright removal test code. We'll see to that later but we're certainly not selling the right to delete a copyright. You just need to ask nicely. (Credits.php, Subs.php, Admin.template.php, Who.template.php, Admin language, Errors language)
* Renamed some of the SMF stuff to Wedge and fixed scheduled task SM files to point to our website. (install.php, install.sql, upgrade.php, Install language, ScheduledTasks.php, Subs-Database.php, other/xml/*.js renamed to *.php)
9992
The Pub / Re: Logo Madness (Was: New revs)
« on November 24th, 2010, 11:06 AM »
Okay so is it worth asking everyone which they prefer again? :P
Posted: November 22nd, 2010, 07:19 AM

Bump
9993
Features / Re: New revs
« on November 23rd, 2010, 03:42 PM »
rev 286

* Split $context['footer'] into $context['footer'] (regular HTML) and $context['footer_js'] (postponed Javascript). (Load.php, index.template.php, etc.)
- Removed SCRIPT_HEADER/SCRIPT_FOOTER because of the better implementation. (index.php, etc.)
+ Added new Javascript encapsulator. add_js() (temp name) will add your postponed Javascript to $context['footer_js'] and deal with the layout for you. You can still manually add to $context['footer_js'], for instead if you need to manipulate the JS buffer or add characters without newlines. The main benefit is that you can call add_js('hello', $world) and it will behave the same as add_js('hello' . $world'), which makes it easy to convert older templates. (BoardIndex.php, Class-Editor.php, Load.php, ManageBoards.php, ManageMail.php, ManageNews.php, ManagePaid.php, ManageRegistration.php, ManageSearchEngines.php, ManageSettings.php, QueryString.php, Subs.php, TEMPLATES: Admin, Calendar, Display, GenericMenu, MessageIndex, Packages, Post, Register, Stats)
+ Also added add_js_file() function, to specify a JS file to load later, or a list of files. Warning: doing add_js_file($scripturl, '?something') will consider $scripturl as a standalone script. I could improve the behavior but I don't know if it's worth it. (Class-Editor.php, QueryString.php, TEMPLATES: Admin, Display, MessageIndex, Register, Stats)

Now, finishing inline JS should be a piece of cake... :)
Will still need to finish the data-* fixes (has to be done manually because of the hitme complexity + some onclick calls don't require postponing). And I'll be done...
9994
Features / Re: New revs
« on November 23rd, 2010, 11:48 AM »
rev 285

! Fixed captcha sound popup and simplified Javascript. (GenericControls.template.php, Register.template.php, captcha.js)
! Reverted Profile template to revision 281. (Profile.template.php)
! Reverted all <img style="width/height"> changes, as HTML5 perfectly supports <img width/height>. (Display.template.php, Login.template.php, MessageIndex.template.php, Packages.template.php, Search.template.php)
* Fixed cat_bar margins and indentation in the admin settings. (Admin.template.php, admin.css)
* Added a seamless parameter to the preview iframe, as recommended in HTML5. (Themes.template.php)
9995
Features / Re: New revs
« on November 23rd, 2010, 12:13 AM »
rev 281

* Added two defines, SCRIPT_HEADER and SCRIPT_FOOTER, to make it easier to declare Javascript snippets with proper CDATA protection. You may still use <script> alone, it's up to you. Converting a few files to use these. (index.php, BoardIndex.php, Class-Editor.php, Subs.php, GenericMenu.template.php, index.template.php, Packages.template.php)
* More JSE fixes and footer movement. (Packages.template.php)
* When showing the footer Javascript, make sure to delete any redundant script tags. This may not be worth the trouble, but you know me and my regular expressions... (index.template.php)
* addLoadEvent() is not for dogs. (French saying.) (Subs.php)

Would like some opinions on SCRIPT_HEADER and SCRIPT_FOOTER...
Basically, this turns something like this:

Code: [Select]
$context['footer'] .= '
<script><!-- // --><![CDATA[
initMenu(document.getElementById("amen' . ($mid > 1 ? '_' . ($mid-1) : '') . '"));
// ]]></script>';

Into this:

Code: [Select]
$context['footer'] .= SCRIPT_HEADER . '
initMenu(document.getElementById("amen' . ($mid > 1 ? '_' . ($mid-1) : '') . '"));' . SCRIPT_FOOTER;

Is it worth it? Would you, as programmers, be more like to use these instead of typing the CDATA from memory or copying it from other code stuff?
Would it be more natural/less confusing to just do something like this?

Code: [Select]
$context['footer'] .= '
<script>' . CDATA_HEADER . '
initMenu(document.getElementById("amen' . ($mid > 1 ? '_' . ($mid-1) : '') . '"));
' . CDATA_FOOTER . '</script>';

I like CDATA_HEADER better, but I figured most people would rather have SCRIPT_HEADER from the beginning...
Posted: November 22nd, 2010, 11:47 PM

Silly me... Alternatively, I could do it this way: users write scripts with <script> (no CDATA), and at runtime I'll simply add the CDATA before printing the tag. I'd just need to make sure not to add CDATA header/footer to <script url="something"></script>
(Obviously, it would take a bit more server CPU time to process. Not much though...)
9996
Features / Re: New revs
« on November 22nd, 2010, 05:06 PM »
rev 280

- Deleted all type="text/javascript" from script tags, as it's no longer required in HTML5. (All files)
* Tablenazi. (Packages.template.php)
9997
Features / Re: New revs
« on November 22nd, 2010, 12:34 PM »
rev 279

* Mega-update with the end of cellspacing's, cellpadding's, align's, valign's, width's and other things that are deprecated in HTML5. Most boring task of the month. (Class-Editor.php, Modlog.php, Subs.php, index.css, editor.js, ManageSettings.french.php, ManageSettings.english.php, TEMPLATES: pretty much *all* of them so please don't force me to look into it)
* More JSE fixes. (index.english.php, index.french.php, ManageBans/Boards/Maintenance/Membergroups/News/Paid.template.php, PersonalMessage.template.php, Profile.template.php)

(I had to do all of these manually. One by one. AM I THROUGH NOW? :sob:)
9998
Features / Re: New revs
« on November 22nd, 2010, 10:38 AM »
rev 278

* Hopefully converted all of Packages and Profile to HTML5. (Packages.template.php, Profile.template.php)
* More JSE fixes. (Register.template.php, Profile.template.php, Login.english.php, Login.french.php)
- Removed DOMContentLoaded calls, as they're unneeded when JS is only loaded at the end of the page. (profile.js, script.js)
! Fixed Moderator list being empty in linktree when board has no owner. (Load.php)

I'm dying of boredom... HTML5 conversion has got to be the most annoying thing I've done in months. It makes IE6 compatibility look like heaven. So many deprecated elements... And not always for the better! Why isn't there a "transitional" setting for HTML5, that would do without the deprecated align/valign/width stuff...? It really, REALLY eats a lot of space to turn these all into inline CSS.
9999
The Pub / Re: Logo Madness (Was: New revs)
« on November 21st, 2010, 11:33 PM »
Quote from Bloc on November 21st, 2010, 12:44 PM
The different colored first letter I would have changed to all letters same color(it just looks too busy and give the logo a sense of being chopped up, "wedge" is short and one-syllable word - it should be seen as that too IMHO),
Well, I like having "edge" be separated from the "w"... Although originally it was due to the w representing the wedge itself... I've grown accustomed to it. Still, I only want it to slightly stand out, so it can be made as a shade of blue rather than gold, in the blue logo. Look at the current gold logo to get an idea.
I'm thinking of turning the logo text into an alpha transparent b&w text that can then safely be pasted onto the colored background, without requiring me to recolorize the logo.
Quote
and make the logo colors stand out more..it seems to be almost sunk into the background, instead of springing out and saying "here i am!" .
Oh, that's precisely the point... It has so much information (the slogan, the logo picture, the logo text) that it has to be relatively integrated to its environment. It does create a contrast with the background.

@YogiBear> Which one?
10000
The Pub / Re: Logo Madness (Was: New revs)
« on November 21st, 2010, 11:29 PM »
Better than this, I suppose? (quick mockup. Sorry for the quality.)
10001
Features / Re: New revs
« on November 21st, 2010, 11:22 PM »
rev 277

! There's probably never going to be something as stupidly exciting as rewriting a feature that took you dozens of lines in dozens of files, in ONE single line. Fixed XMLHttpRequest calls for different domains and subdomains. (script.js)
! Fixed a potential JS error. (topic.js)
! Syntax error. (ViewQuery.php)
* Converted MessageIndex template to HTML5, moved more inline code to footer, etc. (MessageIndex.template.php)

Seriously -- that domain name fix...? Why didn't I think of that in the first place, uh? I don't EVEN need to specify a proper variable with a subdomain like on wedgeforum.com (smf_suburl).
Posted: November 21st, 2010, 11:16 PM

Not too impressive, but thanks to that silly trick, my noisen patch is down from 480 to 467KB...
10002
Features / Re: New revs
« on November 21st, 2010, 10:18 PM »
rev 275

- Deleted the validation unit test. Seriously, what was that anyway? And we're going HTML5 now... (other/unittest/validation/*)
- Deleted the forced XHTML header from debug pages. (Load.php, Subs.php)
- Deleted the strict doctype fix, as, known song, we're going HTML5. (Subs.php, index.template.php)
! A class could be empty at some point... Bad logic, change logic. (Memberlist.template.php)
* Turned stand-alone nowrap styles into a nowrap class. (Admin.template.php, index.css, Errors.template.php, Install.english.php, Install.french.php, ManageBoards.template.php, Memberlist.template.php)
* Turned small stand-alone pages to HTML5 as well, even if it's not needed. Consistency. (install.php, Class-Editor.php, Errors.php, Load.php, ViewQuery.php, Errors.template.php, Help.template.php, ModerationCenter.template.php, Packages.template.php, Post.template.php, Printpage.template.php, Register.template.php)
Posted: November 21st, 2010, 09:46 PM

rev 276

* Turned a few addcslashes into more semantic JavaScriptEscape calls. (Class-Editor.php)
* Commenazi. (index.template.php)

(Small, but I don't know if I'll be able to commit later tonight.)
10003
The Pub / Re: Logo Madness (Was: New revs)
« on November 21st, 2010, 12:03 PM »
Added this to the slogan list :P
"Boldly coding where no machine has gone before."

man/machine/machine code/SMF... Whatever you think is right ;)
10004
The Pub / Re: Logo Madness (Was: New revs)
« on November 21st, 2010, 11:44 AM »
Okay, I've made a quick mockup of Bloc's latest integrated into my design. (Look at the Blue banner pages to compare with Gold pages.)
I love it. It loses the "wedge put into a circle" effect, but it gains a new attitude -- the wedge, with its drop shadow, really looks like a spaceship now, boldly going where no BBS has gone before. (Now that's a slogan or I don't know anything about it :P)
This logo gets my approval.
It's a *bit* crowded compared to the Gold version, so I made the wedge text slightly less massive (shrunk horizontally by a few percents.)

As for the text above -- I slightly like it better when it was below, but it works nicely too.
The text could say either "Simple math. | Really." or "Choosing it is | Simple math."
Something like that...
But the shorter, the better.

Opinions welcome. Make sure to compare both versions by flipping through pages!
Posted: November 21st, 2010, 11:27 AM

Note for self: blue is (hue-saturation) 133-70, w is 30-122. Don't remember Gold.
:edit: Gold would be around 24-129.
10005
Features / Re: New revs
« on November 21st, 2010, 11:20 AM »
I tend to forget that debug mode != stats at the bottom... I never use debug mode, myself.
Well, I tested under Safari and it works just fine. (Safari because I need memory for another app right now and Opera with its 350 tabs is a bit too demanding right now.)