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
7771
Features / Re: New revs
« on September 16th, 2011, 07:58 PM »
rev 1002
(6 files, 12kb)

! The gradient rule in WeCSS only accepted rgb/rgba data, so added support for #hex values as well. (Class-CSS.php)

* Don't bother showing the favicon code if the forum is already at the root. I think it's the correct way to do it... (index.template.php)

+ Added basic support for CSS-driven notifications inside menus. Only for the main menu right now, though. IE support incoming (like anyone cares.) (Subs.php, index.template.php, index.css)

- Removed a test before loading media settings, that became useless a few weeks ago. (Subs.php)

* Spacinazi. (Subs-Boards.php, MessageIndex.template.php)


@ Now the PM menu will say 'NEW' and the Inbox sub-menu will say the actual number of posts, like in the Admin menu. Is it for the best? (i.e. 'NEW' may mean something to new users, but after a while they may be annoyed that they have to hover the menu before they know how menu new PMs they have...)
7772
Features / Re: These two bytes may not matter to you...
« on September 16th, 2011, 07:29 PM »
Re: topicseen, I really don't think it's a legacy thing... Its main use is in Display.php, things like this:

Code: [Select]
// Have we recently cached the number of new topics in this board, and it's still a lot?
if (isset($_REQUEST['topicseen'], $_SESSION['topicseen_cache'][$board]) && $_SESSION['topicseen_cache'][$board] > 5)
$_SESSION['topicseen_cache'][$board]--;

The idea really seems to be about saving extra work for the server.

Re: the option, it will go away then :) Adding to my to do list.

Re: pm_notify, I'm pretty sure my local install is vanilla with respect to that setting, and I can assure you PM notification is disabled for me. Maybe it's because I don't have a mail server on my machine, and Wedge saw it and disabled the feature...? I don't know.
Ahhh, can't bother to look into it now... :(

Another thing now. While looking into topicseen and other things, I noticed a VERY strange thing on my local install and its single topic (sigh). When posting a new message, I'd be brought to the second-to-last message instead. After looking into it, I found a SMF bug. I can reproduce it here.

One of my posts in the topic is actually unapproved (so I can check on styling unapproved posts.) The COUNT that generates $context[start_from] from start=new takes care of that by removing all unapproved posts from the post count, but then... In the meantime, Wedge meets this piece of nasty code:

Code: [Select]
// Go to the last message if the given time is beyond the time of the last message.
if (isset($context['start_from']) && $context['start_from'] >= $topicinfo['num_replies'])
$context['start_from'] = $topicinfo['num_replies'];

At this point, $context['start_from'] is 20 (according to COUNT(*)) if I have an unapproved post and 19 if I don't.
And $topicinfo['num_replies'] is 18 if I have an unapproved post, and 19 if I don't.
So, no unapproved post = it works.
Unapproved post(s) = it gets reset to < 19 and voilà, the bug happens.

IIRC, num_replies caches the number of actual visible posts for everyone, so it won't take unapproved posts into account, hence the bug. I unapproved a post of mine here and tried /new/#new and was redirected to the second-to-last post, again.
Any suggestions as to how we should fix this...?

I just tried again (posting 2 messages as an 'approvable' account and then logging in as admin, approving the last one...) Did the /new/, and I got redirected to the second-to-last post, i.e. the unapproved one. So it's definitely something that can be reproduced.

- Oh, and a bonus bug... Apparently, when the very last post in a topic is unapproved, the topic won't show up at all on the Message Index. It just shows nothing... :-/ I have to go to the mod area and then follow the link to the unapproved posts.
Funtastic. Today is bug day -- also found YET another bug in IE with white-space crap... Breaks the entire layout in certain conditions. :-/ Spent an hour on this, couldn't find a way to fix.
7773
The Pub / [Archive] Re: Logo Madness
« on September 16th, 2011, 04:36 PM »
Hmm...
Posting my file in AI and SVG formats. The SVG version embeds the text as outlines AFAIK.
Feel free to... Improve it the way you want.

Did you feel something for the square logo, btw?

:edit: Sending by PM instead. Anyone who wants it, please PM me.
7774
Off-topic / Re: Humor
« on September 16th, 2011, 02:09 PM »
I think I played it once or twice in the last 5 years. I don't even think I installed it on my new pc. Heck I don't even know if competitors caught up with it. I doubt it though!
7775
Off-topic / Re: Humor
« on September 16th, 2011, 12:50 PM »
Made me learn PHP to develop an online player matching mode. Which I never implemented because I was too hooked on PHP, or simply tired after 10 years working on the same program.
7776
Off-topic / Re: Humor
« on September 16th, 2011, 12:26 PM »
I prefer games that train your brains than your muscles ;) Plus, without Kyodai there would be no Wedge today. Can you say the same about Space Invaders? :niark:

(And I always liked Gorf better than S.I.! Ahah! Who remembers it? I think my sister made it through the last rank, Space Avenger IIRC, on our CBS ColecoVision. I'm getting old, I know.)
7777
The Pub / [Archive] Re: Logo Madness
« on September 16th, 2011, 12:00 PM »
PS: I removed the last two logos from the poll, given how they were trailing in the polls. I'm encouraging 0x, Dr. Deejay, toolnox and Aaron to vote for one of the two remaining logos and choose their favorite font. If any :P
7778
The Pub / [Archive] Re: Logo Madness
« on September 16th, 2011, 11:58 AM »
Just for comparison... Big logo, both versions.
7779
Off-topic / Re: Humor
« on September 16th, 2011, 09:50 AM »
There isn't a single egg in AeMe, and AFAIK, not a single new egg in Wedge. We do
have a topic about eggs and discussed adding big things that wouldn't hurt performance in any way, but eventually the topic died out. I think I mostly gave up after starting thinking about making a port of Kyodai Mahjongg in JavaScript as an easter egg.... :lol:
7780
Off-topic / Re: Humor
« on September 16th, 2011, 07:51 AM »
Quote from Jorin on September 16th, 2011, 06:53 AM
You guys are so funny! That's refreshing! Are you planning some messages like this in wedge?
The earlier SMF developers already did that a lot -- in the comments mainly, though.
We do the occasional funny comment, but when it comes to language strings, the English version, while not as strict as SMF, is still rather 'professional' in that respect. Only the French version has a few jokes I inserted back in 2008 in the official SMF French package, and I added more in Wedge. I'm not as 'fluent' in English as I'm in French, so it's not always easy to determine whether a joke is SFW or not.
Quote
Maybe "Your honor, your majesty, dear admin, that's the wrong password to enter this sacred site! May I offer some assistance or should the people be suffering for your mistake (by mixing their posts maybe)?"
Anything that's geeky -- changelogs, code comments, obscure help files... Has the potential for jokes and easter eggs. Anything that's widely used is a less likely candidate.
7781
Off-topic / Re: Baidu bloody loves me.
« on September 16th, 2011, 07:45 AM »
Maybe it requires a specific format in the robots.txt...? Like, Baidu has to be written in hanzi? :P
7782
The Pub / [Archive] Re: Logo Madness
« on September 16th, 2011, 07:07 AM »
Strategic voting or not, it's now clear that the 'old' shape is the winner. Now it's a lethal fight between the two fonts... (And I don't mind. I like them both anyway... The first looks a tad warmer and the second is a tiny bit more professional.)
7783
The Pub / [Archive] Re: Logo Madness
« on September 16th, 2011, 12:02 AM »
Yes, you can vote for two entries if you want.
Asked for Milady's opinion. She doesn't have an account here but she'd vote for option #3, the only one that has had no vote so far... :lol: Well, she and I rarely share the same taste in terms of design. Not that anything's wrong with that.
7784
The Pub / [Archive] Re: Logo Madness
« on September 15th, 2011, 07:53 PM »
Added a poll...
First option is the 'old' logo that suddenly got popular :P
Second option is the same with the new logo's font.
Third option is the old logo's font with the new logo's shape.
Third option is the new logo.
Posted: September 15th, 2011, 07:16 PM

(BTW, the 'old' logo (the non-square puzzle one) is slightly darker and I'll definitely make it a bit brighter in the final version if we choose it.)
7785
Features / Re: New revs
« on September 15th, 2011, 07:05 PM »
rev 1001
(11 files, 10kb)

- Removed $sc from globals when not actually used in the code. Please note that $context['session_id'] should have the same value in it anyway. (Load.php, ManageMemberOptions.php, ManageServer.php, ManageSettings.php, ModerationCenter.php, PersonalMessage.php, Post.php, Subs-OpenID.php)

+ Added language strings for a fatal error in draft code. (Subs-Post.php, Post.language.php)