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
1486
Archived fixes / Re: Error on Skin/Theme Select
« on February 13th, 2014, 07:44 AM »
Anyone else..?

I didn't test before committing but iirc the reason for the bug was obvious (a theme removal collateral) and the fix was crystal clear. I'm curious as to whether I did another last minute blunder or you did. :P
1487
Archived fixes / Re: Problems with Edit Subscriber - Donation
« on February 13th, 2014, 07:41 AM »
Sounds fun! Eager to get on my PC and fix this. And see if the bug was smf's or someone else's... :P

Considering that I've never touched subscription code before this week... :whistle:
1488
Importing into Wedge / Re: Database permissions
« on February 13th, 2014, 07:38 AM »
You should post screenshots of your latter errors.

Tipping @TE.
1489
Features / Re: Language revs
« on February 13th, 2014, 12:09 AM »
[Commit revision 5f84254]
Author: Pandos (Signed-off)
Date: Wed, 12 Feb 2014 20:57:10 +0100
Stats: 1 file changed; +2 (insertions), -2 (deletions)

  • Fixing wrong variable name home_title and home_intro.

[Commit revision 02bd6eb]
Author: Nao
Date: Thu, 13 Feb 2014 00:09:31 +0100
Stats: 1 file changed; +2 (insertions), -2 (deletions)

  • Merge pull request #11 from Pandos/dev
  • Fixing wrong variable name home_title and home_intro. Also updating the intro a bit.
1490
Archived fixes / Re: Home.german.php wrong variable name
« on February 13th, 2014, 12:08 AM »
wedge_* was the old name. I suppose I renamed the keys while you were translating the language file, so you missed it maybe..?
1491
The Pub / Re: Logo Madness
« on February 13th, 2014, 12:07 AM »
Really like them too of course, but I've gotten use to resilience from my user base when it comes to simpler logos... I'm part of these, too, but I'm really convinced I should get rid of the Aller Display font for the Wedge logo. (Of course, everyone feel free to keep using it in your sigs or whatever, I really don't mind that Wedge has multiple visual identities, because it's kept evolving over the years anyway... The first logos really sucked with their use of the Kaffeesatz font or something, it's funny that one of my recent tests used François One which is a similar looking font... :lol:)
1492
Archived fixes / Re: Some thoughts on notifications
« on February 12th, 2014, 11:59 PM »
Well, or maybe it's time for me to get started on that automatic DB update script... :P

Something like, in index.php, if ($db_version < 123) update_database();, and then increase that integer by one each time I'm doing a database change... Then, in that update_database() function, I'd simply go through all tests geared towards $db_version < 123, and call the database update accordingly every time.
That's how I have it in my mind, but I couldn't bother with writing the whole damn thing.

Okay, I've reverted the files here because there's no point in storing more variables I'll never be using (and a visit = a variable for life... I'll probably need to clean up the DB), but I'll still need to determine whether I add one or two columns.

hey = 'not,pm' indicates both the notifications button and pm button should be orange.
Or,
hey_not = 1 (bit) indicates the notifications button should be orange.
hey_pm = 1 (bit) indicates the pm button should be orange.

First solution is easier for plugins to add more choices without having to add more database columns. (Just do an explode, then array_merge or array_diff, then implode.) Second solution takes a bit less space in the DB, and will make it easier to mass-update the rows (multiple recipients for pm, etc.)

Second, I guess..?

I want to make that table shorteeeeeeeeeeeeeeeeeer...... >_<
Same goes for the topic and message tables, of course... Oh well, they're not as aggravated as this one, really.

Bed time!
1493
The Pub / Re: Pretty quiet here
« on February 12th, 2014, 11:50 PM »
Well, there are still a couple new bugs being reported per day, but yes, I'm trying to go through the log of existing bugs I hadn't looked into yet... There are a lot. I took tonight's bug report from Farjo's recap post in the 'Preparing for an official package' topic.

I need to appoint someone or some people to maintain an official "Nao, this needs attention!" topic for me... :P And strike out things that I've worked on, etc.
Heck, there are also issues on the github repo (from Xarcell)... :-/
Plus, all of the issues that weren't closed but were actually incorrect bug reports.
1494
Features / Re: New revs
« on February 12th, 2014, 11:45 PM »
[Commit revision 9de68b7]
Author: Nao
Date: Wed, 12 Feb 2014 23:33:24 +0100
Stats: 3 files changed; +4 (insertions), -3 (deletions)

  • Added a 'style' variable to admin setting lists. It will basically allow you to customize the <dl> that encloses your setting. I needed it in one place, but I suspect it might be helpful in other occasions. (Admin.template.php)
  • Fixed select box drop downs being cut off in membergroup badge settings. Not my bug. (ManageMembergroups.php)
  • Fixed invalid HTML. Not my bug. (ManageMembergroups.template.php)

[Commit revision af2d910]
Author: Nao
Date: Wed, 12 Feb 2014 23:45:04 +0100
Stats: 1 file changed; +11 (insertions), -13 (deletions)

  • Fixed badges being shown after another badge even when set to "show only when no other badge is shown". This was due to $user_profile[$id]['badges'] being tested against in a loop, when at this point it was *explicitly* empty. $badges was the actual target of that test. Not my bug. (Load.php)
1495
Archived fixes / Re: Membergroup Settings - Badges
« on February 12th, 2014, 11:21 PM »
Seems to be fixed now...
There were apparently two (!) bugs in the same short code block.

The whole "hide this badge if another is already shown" was testing against $user_profile[...]['badges'], which is EMPTY at this point... The 'other developer' should have tested against the temporary variable.

This never would have worked at all. I have no idea why he committed that in the first place... And I thought I didn't test my commits thoroughly... ::)

I'll do a few more tests, ensure that everyone's working perfectly, and then commit tomorrow at the latest.

:edit: Finished my tests. Removed the other bug report because I noticed it was a moot point, as the badge list wasn't cached entirely anyway.
1496
Archived fixes / Re: Membergroup Settings - Badges
« on February 12th, 2014, 08:14 PM »
- First issue: my bad, I didn't look into it enough. It's all due to an intermediary <dl class="settings"> which has an overflow set to hidden. Hmm... Honestly, I can't remember why it's overflow: hidden at all, it might be tempting to just remove that rule. And, maybe, push the overflow: hidden to a higher level...

- The fix was uploaded here, and it didn't work (normally the post badges are also hidden if another badge is in there), but I think that's still the one, so... it's probably just something I forgot to fix in another place, too. I'm busy IRL right now, so that'll have to wait a bit.
1497
Archived fixes / Re: Membergroup Settings - Badges
« on February 12th, 2014, 07:35 PM »
I think I've fixed it... Another Pete bug :P
1498
Archived fixes / Re: Membergroup Settings - Badges
« on February 12th, 2014, 07:25 PM »
The first problem is a common issue with absolute positioning and z-index stacking.
Basically, there are two ways of fixing it. The first isn't possible because it involves removing positioning from sortable elements, which completely breaks the feature. Uh. The second implies moving the select box out of the current flow, for instance by putting its HTML at the very bottom of the page, outside of the #wedge div, etc. This means it gets its own z-index stack, and will correctly show up everywhere (see alert popups, for instance.)
Unfortunately, doing this has a MAJOR problem: it forces me to absolutely position the select box dropdown in pixels from the start of the screen, so if the select box ever changes its position (e.g. hardware scrolling when opening a hidden sidebar, or doing any kind of animation such as showing/hiding the header) will not update the dropdown's position, meaning it will, quite simply, stay where it was, and show up in silly places.
I tried doing that a few times in the past, and always gave up.
Another solution could be to change the way the sortable list is shown... For instance, I could show the current setting with a button next to it (change), and clicking it could open a popup when you can choose your preference. That's pretty much a cop-out, and a usability nightmare I'd say.

I don't know what to say, or what to do... What do you think?

As for the second problem, I'll look into it.
Posted: February 12th, 2014, 07:23 PM

Have you tried using the Purge Cache menu option after changing an option..?
1499
Archived fixes / Re: Some thoughts on notifications
« on February 12th, 2014, 06:51 PM »
Okay, I've implemented (a), and am relatively happy with it. When you click a notification button, it'll pop it up, and turn gray. Until another notification comes up, it'll remain gray. The number of notifications will still remain in place, so no resetting. Best of both worlds. :)

I need to talk about my implementation, though... I started off by putting the boolean into the member's data field, which is ready-made for this kind of unindexed data. Unfortunately, it turned out that this data still needed to be set on multiple users: a notification can be sent to multiple users, and a PM as well. So I tweaked my code to allow for a relatively fast implementation, but it still requires an extra UPDATE per member concerned with this.

So, I can do one of two things:
- leave it as is, and expect that it'll never impact performance, because notification updates aren't the slowest queries ever...
- or give up on my current implementation, and add one or two extra fields to the members table.

The advantage of the former is that plugin authors can easily add more stuff. The advantage of the latter is that plugin authors can even more easily add more stuff. Uh... And it's probably faster, too.

The big drawbacks of the latter (to me) are that (1) it forces testers to add the fields manually (or reinstall from scratch), (2) have you seen the SIZE of that members table, already...?! I've always wanted to make it shorter. Not longer...!

Opinions welcomed!
1500
Archived fixes / Re: Pretty URLs causing 404s
« on February 12th, 2014, 05:46 PM »
Quote from eolith on February 12th, 2014, 05:20 PM
the admin pages do switch to .../do/admin... and break.

I hadn't moved the .htaccess before (what did I miss that gives the instruction?),
Well, I don't know, but I've repeatedly said it.
I guess it should be mentioned in the Pretty URLs page itself, but it isn't the case.
That's mostly because /install used to be a folder where one was supposed to move all files to the root. Since this is no longer necessary, I tend to dismiss the fact that you still need to move some of the files to the root, if you want all features.
Quote from eolith on February 12th, 2014, 05:20 PM
but I did this time, and it makes no difference.
I did not try the /action instead of /do/action because that option is not available until after you turn on pretty URLs, and then the Save button no longer works because it leads to 404s (all admin pages are now 404s), and I don't know what URL would work to make that change.
What URL is being shown in your address bar when it shows a 404..?
Quote from eolith on February 12th, 2014, 05:20 PM
If it matters, I'm hosted on GoDaddy, deluxe linux package as a subfolder to my main forums (which run SMF).
Hmm, can't find anything at fault here. What Apache version..? (Admin > Server > phpinfo)