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
6736
Features / Re: Selectbox
« on January 3rd, 2012, 04:26 PM »
So... It turned out that many of my issues with events here (namely, them not triggering when expected), was due not to the order in which events are executed -- but simply, to the fact that the original events were only copied on the first call (with a pretty smart single-line statement). Fact is, that single line only works *before* the page has finished loading. After that, it's useless. So I wrote a longer version, and also used the opportunity to retrieve all non-jQuery events, making it possible to add events to select boxes through .html("<select onclick...>") rather than assigning them any .bind() events after creation.

Meh... It's messy.
And of course it didn't work in IE8. (At first.)

I think I've had my share of SHITTY code that keeps sending me bugs whatever I do. I always beat them in the end. This one is no different, I'll beat it just the same. Problem is just that -- WHEN the hell does this happen?!
I've been on this for THREE WEEKS. Fantastic. And it's far from being finished! I still need to write that scrollbar code. And check every single <select> in Wedge. (All direct <select> manipulations are done, but I have no idea where it has some silly hidden code like $('<select id=something>') then $('#something').append()... (This is why I'd rather always use clearer code.)
6737
The Pub / Re: Logo Madness
« on January 3rd, 2012, 04:01 PM »
- Busy: yeah sure, it's busier... Not busy enough to bother me, though. I made busy logos before that I enjoyed. Actually I consider that once I added the gradient inside the icon, it might as well be a bit easier. The flat version works extremely well on flat environments. I'm not sure what I wanna do with this one for now.

- Added a slightly bigger version for you to look at the details. The font is back to PT Sans Bold, without the odd 'ripple' effect that was on the original (which is barely visible, but it's also in the logos in the poll.) Also made the contrast bigger between 'we' and 'dge'.

- The mouseover issue is known, and I discussed it before. It's only temporary... Just keep the mouse in the middle of the hovered logo.
6738
The Pub / Re: Logo Madness
« on January 3rd, 2012, 12:23 PM »
(Bump for votes...)
Quote from Marcus Forsberg on December 30th, 2011, 02:28 PM
I'm very happy that you seem to be going with the green one, it's just beautiful!
Oh, I loved the gray one just as much... But it was obvious it wasn't as popular, so I just removed it from the poll.
Quote
I want more white-space around the text, particularly near the bottom of that box. Just to give it some extra air, y'know.
Tried it, doesn't work.
Also tried various other fonts... Somehow, I "got" it to click with me with an Helvetica where WDG are in uppercase and the E is in lowercase (with size updated to fit the other letters, of course.)
See below...? (I still prefer the one in the poll, though.)
:edit: Removed -- it sucked.
Quote
I also personally think it'd be a better idea to keep the entire slogan ("Level up your forum") the same colour - the darker one -
Also tried that -- looks bland. 'Your forum' is more important to me, than 'Level up'. It defines what Wedge is, while Level up really is the slogan -- and I won't be comfortable with the slogan until the software is out and people actually use it and love it... (Just having our Consultants to test it and love it isn't enough for me ;))
Quote
The other alternative is quite good as well. I was sceptic to the idea of having the shape thingy on top of the text at first but I must say it grew on me.
It really works well. I have spr1te to thank for putting that back on track, I guess!
Quote
Really, I'm in love with the shape. In a very disturbing way I might add.
Then that makes two of us... Do we have to fight over it? :P
Quote
Random unrelated thought: You guys should use your Twitter account :P (yeah I know, I'm slowly becoming a Twitter addict...)
I've never liked Twitter... I only have an account there to point people to something if someone starts claiming they're me. Heck, even Google gets confused with my account... Used to be @noisen, and I thought it still was, and Google points to that, and it redirects to a @NoiseN that has nothing to do with me... So I logged in, and checked my account name, and it's @NaoGilles. Which makes more sense, I guess.
There's also @wedgeteam, but I simply don't even remember what our password is... Lol. (Otherwise I guess I'd have updated the logo by now.)
Posted: January 2nd, 2012, 10:18 AM

I *think* I've found a way to get a large icon with small text into the logo, without having to turn back to uppercase text, and thus be able to keep the overall effect. Of course it requires inverting the colors for the text, but I'm absolutely fine with that. That way, we can have the two different logos.
Also tried two different fonts. My all-time 3 faves in my designs have been Coolvetica, Segoe-likes and PT Sans Bold. Below are 5m (PT Sans Bold) and 6m (Segoe) tests. Dunny which font would be best...
(Also added a minor diffuse glow to the icon itself, to enhance the 3D effects with the text on top of it.)
6739
Off-topic / Re: Doctor Who
« on January 2nd, 2012, 08:56 PM »
I don't think anyone mentioned it in here... Apparently, the Beebs added a few mini-sodes of Dr Who to the DVD release.
It's called "Night and the Doctor" and it's 5 episodes totaling 16 minutes. They're all set within the Tardis, except for the last which is a 2-minute "comical introduction" to the Cybermen episode from series 6, without the Doctor. Episode 1 has TD, Amy and Rory. It's not very funny/good. Episode 2 has TD and Amy, not very funny but it has a touching ending. Episode 3 and 4 have TD and River Song. They're a bit funnier, but mostly episode 4 is the best, if only because it mentions THE thing that Pete was always worried about. Moffat never forgets continuity, good! Also the origin for the word "Spoilers"... Fan service :P

Oh, and no one mentioned either that Sherlock 2x01 was broadcast yesterday.. I started watching it, it's pretty good as can be expected.
6740
Features / Re: Selectbox
« on January 2nd, 2012, 08:02 PM »
So... It's 8PM, I've been on this since 8AM...
Trying to fix onclick events. Breaks onfocus events. Then the other way around. Then all works... But not when using keyboard. Fixing this. Breaks onclick. Fixing. Breaks onfocus. Fixing... Breaks mouse events.

OH MY...

Select boxes are developer hell. I just checked out Kyodai Mahjongg and since I'd rewritten the entire UI to use textures, obviously I'd made my own select box for it... (Used in the high scores window.) Well, it works. Only it doesn't have all of these silly events to deal with... :^^;:

I don't know where to start (or finish)... And again, I'm tempted to call it quits.
6741
Features / Re: Selectbox
« on January 2nd, 2012, 07:06 PM »
Quote from Aaron on January 2nd, 2012, 06:51 PM
Well, yesterday was New Year's Day ...
I heard about that one... :P
It's just that I kept seeing people in the Who's Online list, but no one would post... Even those who made it a habit to post their opinions on many different subjects. :-/
6742
Features / Re: Selectbox
« on January 2nd, 2012, 05:26 PM »
Any reasons I'm the only one who posted in the last 48 hours...?
Am I that boring?
Technical issues?
6743
Features / Re: Selectbox
« on January 2nd, 2012, 10:37 AM »
Okay, an alternative to the odd code seen in rev 1233 would be to simply not care about onfocus, and ask modders to use onclick instead...

The difference is simple. onfocus triggers when you activate a select box (in 99% of cases, that means when you click it.) onclick triggers when you click the select box (as it opens the dropdown.)
So, basically, the ONLY difference is that onclick is never run when you use the keyboard to navigate.
I figured, I *could* possibly fire a click event when opening the select box via the keyboard... What do you think?
That way, the infinite loop thingy is no longer possible. (As long as no one uses onfocus, of course!)

I wrote a small piece of code that would watch for DOM changes to any select box and call reloadSB as needed, but (1) it adds about 200 bytes of code to the whole thing, (2) it's a hack, (3) it adds more issues that I can't bother to fix right now. So I'm adding it to our wip folder instead... (Because it's still quite cool.)
6744
Features / Re: New revs
« on January 1st, 2012, 08:34 PM »
rev 1233 (one, two, three... three?)
(4 files, 10kb)

+ Added a 'fixed' class that does the same as setting o.fixed to true. Also inverted the meaning of o.fixed, actually, because it didn't make any sense... Added the fixed class to a few select boxes in the PM area that looked bad when resized on the fly. (PersonalMessage.template.php, script.js, sbox.js)

+ Added a 'focus' option to .sb() when reloading an item. It feels a bit hackish, but I still haven't found a way to automatically discover the call is being made from the onfocus event, and Wedge only does this on two occasions so what the hell... This should be used each time a focus event wants to refresh a select box, to avoid an infinite loop because the reload process does trigger the original focus event again. (PersonalMessage.template.php, script.js, sbox.js)

* Now disabling current board's entry in Quick Access select box, instead of changing its background color. I'd say it feels more natural... (script.js)

- Removed maxWidth option from select boxes. It didn't work properly, and the same can be achieved with a 'max-width' setting on .sbox classes in CSS files, plus it's more flexible. (index.css, script.js, sbox.js)

* Many, MANY minor fixes related to selected items. Really, I don't know where to begin... (sbox.js)
  - Cleaned up some unneeded class additions/removals (focused and selected), and some duplicate calls like a double positionSB().
  * openSB's parameter is now focus-related, because we can perfectly determine if it needs an animation by testing whether it's already opened...
  * Display area's text can no longer be empty, it should at least be an unbreakable space (for styling reasons.)
  * Devised a hack to disable event handlers before triggering a native event (focusOriginal()). I'm actually amazed that it works. Heck, this should be made into a native jQuery function, too...
  * The current selection is now cached into $selected.

@ Forgot to log the current size for sbox.js: 2167 bytes. The native event trigger function is the main reason why it went up a bit, rather than dramatically down.
6745
Features / Re: New revs
« on January 1st, 2012, 08:16 PM »
rev 1232
(4 files, 2kb)

! When changing minification option in the admin area, the cache purge would generate an error if one of cache's sub-folders had a name similar to what it would purge. Granted, it probably won't happen outside of a test environment... (ManageServer.php)

! Fixed undefined index in post editor. (Class-Editor.php)

- $txt['shortcuts'] and $txt['shortcuts_firefox'] are duplicated in the index language files. They're only used in a context where the Post language files are loaded... (index.language.php)
6746
Features / Re: Selectbox
« on January 1st, 2012, 08:15 PM »
Okay, to answer the post above -- the Who's online page reacts on change(), not focus(), so it's definitely not an issue.

BTW... It's been over 24 hours since the last post was sent here. I think we broke a record or something... :P
6747
The Pub / Re: OpenID
« on December 31st, 2011, 07:53 PM »
You needed a website if you couldn't find a provider willing to help. Back in the beginning it was hard.
6748
Short version: Aeva Media still works great. Enjoy it but don't ask too much of it. If anything, complain to the SMF team, not me. ;)
6749
Features / Re: Selectbox
« on December 31st, 2011, 07:50 PM »
I don't think it's generated on focus. Can't check though. Not on my pc.

Btw some bugs I had in Firefox 3 don't show up in later versions. Ahah. Good fun. I'll use v8 for the rest then.
6750
Features / Re: New revs
« on December 31st, 2011, 06:30 PM »
rev 1231
(10 files, 12kb)

* Rewrote layout of post buttons/shortcuts in Post and PM pages. Moved all related CSS to editor.css. Will commit the PM template as soon as I'm done with its onfocus bugs. (Class-Editor.php, Post.template.php, editor.css, index.css, sections.css, post.js)

+ Added an Opera specific shortcut string (its behavior being different and all). (Post.language.php)

! Fixed missing focus loss in post editor when choosing an option through a select box. Also rewrote the editor JS a bit to fix some rare init bug I've had with jQuery. (editor.js, post.js, suggest.js)

* Rewrote smart tag closer (quote splitter) to require holding the Shift key when pressing Enter. This may be temporary, but as of now I'm not sure I'd rather have it enabled by default. (post.js, Post.language.php)

! Fixed font size on thought privacy select box. (index.css)

@ This commit may (or may not) be broken, because I'm splitting my work in half to do a final 2011 commit.

:edit: from January 1st -- LOL -- rev 1231, committed on 12/31. Totally coincidental!