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
3451
Features / Re: New revs
« on March 10th, 2013, 10:28 PM »
rev 1988 - Nanimo iwazu dakishimeta, Anata no yasashisa wo... Wasureru hi wa nai no, You are my reason to be.[1]
(5 files, 7kb)

+ Initial implementation of the <if> test system for skeletons that Pete requested the other day. Please note that it's not been thoroughly tested. It also works on skin.xml files, meaning you can freely set a skin to <mobile> mode only for guests, or load a web font only for a specific board, whatever you want, in addition to being able to enable some skeleton blocks only for members, which was the original request. Ah, yes, I didn't implement any sort of <else> alternative, you'll have to do it the htaccess way, i.e. <if admin>...</if><if !admin>..alternative..</if>. And finally, I'm not offering support (yet) for skin constants, and <if mobile> isn't the same as <if SKIN_MOBILE>. The first tests for the user's device, while the second would (if implemented) test for mobile status of the current skin, e.g. are we inheriting from the Wireless skin or another skin that has the mobile flag on it? (Subs-Cache.php)

+ Added a few variables to the we::$user array. 'is_member' is the opposite of 'is_guest', 'is_m123' means 'is member #123', 'is_b1' means 'currently viewing board #1' and 'is_c1' is same for categories. Finally, 'is_rtl', which is initialized outside of Class-System but still ASAP, means the current language is right-to-left. Why all the variables..? Because they can now always be accessed in we::is() tests, meaning you should be able to test against them properly inside CSS files, skins or whatnot. (Class-System.php, Load.php)

! As per the above -- fixed @is (rtl) and @if (rtl) tests in CSS files, which didn't work at all (only the filename suffix system supported it). It goes to show how often I test RTL versions of my files... Yes, last time I did it, your mother wasn't even born. (Load.php)

! we::$user['name'] was always set to 'Guest' for guests, even for non-English versions, due to a missing global. Also removed another global, unneeded this time. (Class-System.php)

! Fixed a situation where sub-skins with an empty option set could generate minor errors. (Subs-Cache.php)

! Don't allow admins to choose someone else's thought for their own posterity... Oh, naughty admins! (Thoughts.php)

! Fixed typo in gallery area that caused a page crash. Also updated item page mini-sidebar to be hidden on all mobile devices, rather than just iOS stuff. (Aeva-Gallery.php)
 1. http://dossiers.cyna.fr/598.html -- I watched this movie well over 300 times between 1990 and 1995. If I bothered to keep track, then it obviously has its spot in here. :P
3452
Archived fixes / Re: Flexbox, meet code
« on March 10th, 2013, 07:30 AM »
Tested with 27.0.1426.0 canary.
Works fine when first loading.
Then I followed the link, and reproduced.
Then I hit F5, and it fixed itself.
I noticed that the scrollbar doesn't show up at DOMContentReady time, and then it shows up, with the text over it (just like the screenshot), and then instantly the text is pushed down.
Is there some JavaScript in action here..? I don't even remember.

I kept having problems with Chrome, this week. But it was on mobile. It actually ate 120 tabs on it, in the course of three crashes, and it never offered to restore them... It just kept the first few tabs up to the one I was trying to look at, and acted like it was 'normal'. So, yeah, Chrome Mobile is fantastic these days... Good thing that Opera Mobile switched to their butt-fucking stupid engine.

One of these days, I'll be doing my own Firefox or Chrome clone... We'll see :P
I think I want a Firefox Mobile clone with an ACTUAL session recovery feature (they don't have one at all), and I'll be happy on mobile.
Posted: March 10th, 2013, 07:28 AM

It's definitely a browser bug.
I can refresh the page anytime, I'll never be sure whether I find the 'fixed' page or the 'buggy' page.
3453
Plugins / [Plugin] Re: User Mentions v1.0 (9th March 2013)
« on March 8th, 2013, 09:59 PM »
Interesting!

Are these all stable enough to be installed here, at least for 'testing'...?
3454
Features / Re: New revs
« on March 8th, 2013, 09:53 PM »
rev 1987 - Look at me standing, here on my own again... Up straight in the sunshine... No need to run and hide, it's a wonderful, wonderful life.[1]
(6 files, 3kb)

* Oh bugger, it's becoming so hard... I'm spending 10 times more time reviewing and reverting files than actually changing $scripturl calls. This smells like the end to me... ;) I'm leaving the rest up to Pete for now! Or some more interesting commit, of course... (ManageMedia2.php, MessageIndex.php, Modlog.php, PostModeration.php, Profile-Modify.php, Profile-View.php)
 1. And that's my childhood's favorite song. Done for now -- I'm sure the world can live without my anime lyrics for the next 15 commits to come... :lol:
3455
Features / Re: New revs
« on March 8th, 2013, 09:37 PM »
rev 1986 - Dakishimeta, kokoro no kosumo... Atsuku, moyase, kiseki wo okose! Kizutsuita, mama ja inai to, kiseki atta haruka na ginga... / One dream, one soul, one prize, one goal, one golden glance of what should be...[1]
(12 files, 7kb)

* More $scripturl replacements. All templates are now officially converted. Hopefully everything's working... It's getting hard to navigate along items that really need $scripturl these days. I've double-checked, but I can't test everything in context, so basically, if something's broken because of that, we'll fix it. Because that's what we do. (Ajax.php, Aeva-Foxy.php, Merge.php, MessageIndex.php, ModerationCenter.php, Modlog.php, PostModeration.php, Profile-Actions.php, Profile-Modify.php, Profile-View.php, Subs.php, ManageMedia.template.php)
 1. One is my favorite show's opening, the other is one of my childhood movies, plus Pete would want it here. :P
3456
Features / Re: New revs
« on March 8th, 2013, 06:07 PM »
rev 1985 - I never knew how much I cared, so I played vicious games, vicious games... / I like talking in my sleep, when people work so hard they need what they can't keep a choice that leaves them scarred...
(3 files, 2kb) (ONLY?!)

+ Added a more interesting rewrite of device-pixel-ratio, meaning you won't have to touch it anymore, you just need to use min/max-resolution with a dpi or dppx unit in your media query. (Class-CSS.php)

* Commenazi. (Class-CSS.php)

* A couple of changes to the English version of EmailTemplates. Feel free to revert them, I just felt some of it could be improved. (EmailTemplates.english.php)

* At last... My latest nemesis, the French translation of EmailTemplates descriptions, is dealt with. (EmailTemplates.french.php)
3457
Features / Re: New revs
« on March 8th, 2013, 05:59 PM »
rev 1984 - Tasogare, utsusu... Madobe e to, mai oriru... / Stonehenge! Where a man's a man. And the children dance to the Pipes of Pan.[1]
(11 files, 7kb)

! Some $scripturl fixes for the previous rev (and various related things)... In a rush, Pete? My fault I guess... ;) (Groups.php, ManageMembers.php)

* More $scripturl changes. (Admin.php, ModerationCenter.php, Recent.php, Unread.php, UnreadReplies.php, Xml.template.php -- yes, it works on it too.)

* Improved logic of board index linktree. (Boards.php)

- One last remaining, well hidden type="text" input... (Register.template.php)

- Wedge can't search through its online manual. Wedge doesn't have an online manual. Wedge will never have an online manual. Manuals are for pussies. Wedge isn't for pussies. Wedge is for real men. And women. And dogs. (Admin.template.php)
! Some $scripturl fixes for the previous rev (and various related things)... In a rush, Pete? My fault I guess... ;) (Groups.php, ManageMembers.php,

* More $scripturl changes. (Admin.php, ModerationCenter.php, Recent.php, Unread.php, UnreadReplies.php, Xml.template.php -- yes, it works on it too.)

* Improved logic of board index linktree. (Boards.php)

- One last remaining, well hidden type="text" input... (Register.template.php)

- Wedge can't search through its online manual. Wedge doesn't have an online manual. Wedge will never have an online manual. Manuals are for pussies. Wedge isn't for pussies. Wedge is for real men. And women. And dogs. (Admin.template.php)
 1. This one's for Pete... Although I'm sure he'd have prefered a Metallica or Iron Maiden quote, allegedly best artists of that year :P First one is from the Macross movie ending. I love it.
3458
Features / Re: Mini-skeletons
« on March 8th, 2013, 03:37 PM »
Sub-skin:

<option>
  <mobile>1</mobile>
</option>

<remove block="..." />

So, technically, any mobile skin can delete anything they want, and I'd rather have the extra CPU time (spent on removing blocks) pushed to the sub-skin, rather than its parent...

It's a different matter for member vs guest, of course.
3459
The Pub / Re: Remove \
« on March 8th, 2013, 03:35 PM »
Quote from Arantor on March 8th, 2013, 03:23 PM
Quote
As for saved PMs, I'm still unsure, but it is true that PMs never represent more than 10% of the overall post count in any given forum (usually...?), so it's never going to be the 'bottleneck'.
There is precisely zero overhead of retaining saved PMs vs not doing so. It's almost entirely a UI consideration.
There's overhead if the recipient deletes their PMs, of course... (?)
But yes -- this and that: very unlikely to have an impact at all... Removable.
Quote from Arantor on March 8th, 2013, 03:23 PM
I wanted to do something useful and worthwhile, and I have 50+ files to commit...
Anything you do is worthwhile! All right?
3460
Off-topic / Re: Spirate
« on March 8th, 2013, 02:47 PM »
Oooh, 'nice of them'... :-/
3461
Features / Re: Mini-skeletons
« on March 8th, 2013, 02:45 PM »
- Is this how you want it to be, exactly..?

- I prefer $msg, in this case. I have no doubt putting it into $context makes more sense, but I wanted something that was fast enough to type, and easy enough to remember.
Posted: March 8th, 2013, 02:35 PM
Quote from Nao on March 8th, 2013, 02:35 PM
- Is this how you want it to be, exactly..?
I'm trying to figure out how to do it... For instance, at parse time, however we do it, multiple identical tests will be stored in the skeleton at the same position... (Layers can only have one name.) Which I guess can be circumvented by adding a random number at the end, which we'll ignore if at render time, the layer is seen as being an 'if' test.

Hmmm...
3462
The Pub / Re: Remove \
« on March 8th, 2013, 01:42 PM »
Re: convo without PMs, I suggested it above ('have a convo homepage without any PMs below it'), so obviously I'm all for it. As for saved PMs, I'm still unsure, but it is true that PMs never represent more than 10% of the overall post count in any given forum (usually...?), so it's never going to be the 'bottleneck'.

Please try and commit today Pete, I've been holding up for your revs, and I'd like to commit some stuff before I'm leaving tonight -- a rewrite of the device-pixel-ratio fallback in Class-CSS, as well as the (finally!) completed EmailTemplates translation, and a few other minor fixes.
3463
Off-topic / Re: Opera goes WebKit, RIP Presto
« on March 8th, 2013, 08:24 AM »
Its mostly the tab list... its taken from the stock browser. Which sucks in the first place. If I wanted to use stock, I'd use it. At least it got flash support.

Chrome has issues with text auto sizing since the latest update, though.
3464
Archived fixes / Re: Codes appearing while viewing some topics.
« on March 8th, 2013, 08:19 AM »
Yup!

Hmm why am I not redirected to this page after logging in with the form box in it...
3465
Off-topic / Re: Opera goes WebKit, RIP Presto
« on March 8th, 2013, 08:19 AM »
New Opera for Android sucks.

Chrome is better. I'm sad.