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
4876
Features / Re: Rewriting the skin file parser...
« on June 15th, 2012, 07:07 AM »
Phew :)
4877
The Pub / Re: The Cookie Law (in the UK at least)
« on June 14th, 2012, 11:59 PM »
Gotta admit this topic is ultra complicated to go through ;) even I pretty much gave up on it... That's the beauty of laws. They're too complicated and yet we are all supposed to understand them.

I'm interested in the fact that Ie10 generated backlash because people think that since it enables DNT by default, websites will decide to turn it down. However, what makes one think that they wouldn't turn it down either way? Spammers don't care about laws anyway...
4878
The Pub / Re: The Cookie Law (in the UK at least)
« on June 14th, 2012, 10:53 PM »
Then I WAS right ahah. Pete ain't like that :P
4879
The Pub / Re: The Cookie Law (in the UK at least)
« on June 14th, 2012, 09:44 PM »
Quote from markham on June 14th, 2012, 09:09 PM
So everyone, in your eyes, is stupid? That's a rather arrogant and patronising statement to make about people who visit my sites, your sites and everyone else's sites.
Oh come on... You should know Pete by now... He's not like that :P
4880
Features / Re: New revs
« on June 14th, 2012, 09:42 PM »
rev 1616
(6 files, 12kb)

* Some tweaks to the Wuthering layout and styling. Nothing biggy but... Oh, well, it's actually bigger than planned, with a few fixes along the way. (index.css, sections.css)

* Rewrote the WeCSS parser to accommodate for commas inside selectors, e.g. :not(.this, .or, .that) or input[title,lang]. Very happy with this much-needed rewrite... Yay, champagne. (Class-CSS.php)

! Fixed selector sorting as well. Now everything should be properly sorted. It's not going to save more than a couple of bytes in the final gzipped file, but at least it's cleaner. Also, this allowed me to finally get rid of duplicate selectors without the need to actually clean up CSS inheritance, e.g. having multiple inheritance from two classes that also inherit another common class won't duplicate your base class by as many classes as found. If you don't understand anything, it's all right, I'm just trying to sound smart. What did I say already? Oh, just look at .postbg2, I built my fix on that... (Class-CSS.php)

! Fixed @import grammar. As indicated in the comments, I still wouldn't recommend using these, as Wedge provides alternative solutions that don't force you to push your @import to the first file in the list. Maybe later I'll implement some mechanism to import local files directly inside a file, like Sass does. (Class-CSS.php)

! Fixed use of colons (:) inside url files, e.g. @import url(googlewebfontURL:400,700). Well, didn't I just say not to use @import?! Oh, me and my obsessions... (Class-CSS.php)

! Fixed undefined index error in profile thoughts. (Profile.php)

! Preventing the flow control 'replace' keyword from appearing in final CSS filenames. (Subs-Cache.php)

* Documented wedge_cache_css_files() params, and replaced the plugin-oriented param with a more generic variable array that can do the same and more. (Subs-Cache.php)

! Older Android webkit versions don't support box-sizing without a prefix. (Subs-Cache.php)

! The checkmark in the skin selector wouldn't always show up, so ensured it would always use a basic sans-serif font. This increases chances that it'll be available. (Themes.template.php)
4881
The Pub / Re: The Cookie Law (in the UK at least)
« on June 14th, 2012, 06:52 PM »
I'll just say that once again -- cookie laws are done to give some juice to lawyers so they can attack bigger anti-privacy companies. They're not made to piss off people who have a forum, even those who think it's a smart idea to run Google Analytics (the agony!) on it.
So it's basically safe...
And if you ever receive an official notice about it -- then it'll be time to implement that in Wedge.
4882
Off-topic / Re: The 10 Year Sigh
« on June 14th, 2012, 05:06 PM »
Wasn't that bad, in the end :P
4883
Features / Re: Rewriting the skin file parser...
« on June 14th, 2012, 12:21 AM »
I'm in the process of rewriting the css selector parser... Well, it had some obvious flaws to me (notably, it was, uh, building the final selector directly as a comma-separated string instead of just manipulating an array of selectors?!). Still has. But at least now Wedge will properly delete any duplicates. After gzipping, the current main CSS file is now 70 bytes smaller without any other change than removing dupes (most of the savings) and reordering selectors properly. :)

Hey Pete! Gotta go, will read your post tomorrow ;)
4884
Off-topic / Re: The 10 Year Sigh
« on June 13th, 2012, 10:02 PM »
Eh! Saw you, Pete!

Ooh... Don't have time to stalk you, actually. I just realized Wuthering is broken in plenty of areas... And my girlfriend is calling me to watch some dud. What should I do?!
4885
Features / Re: Rewriting the skin file parser...
« on June 13th, 2012, 09:57 PM »
Quote from live627 on June 9th, 2012, 01:35 AM
Offending line:

.menu:not(#main_menu2, #context_menus)

The comma confuses the parser, it seems.
Instead of removing the sorting, I implemented the protection code.
It will search for any (..., ...) "..., ..." and '..., ...' in the selectors.
I tested with this:

Code: [Select]
.something, .menu:not(#main_menu2, #context_menus)
.hello
color: #fff

It got properly parsed. Is that good enough? :)

Now to fix the other error I'm getting... (Well, not so much an error as, ahem, a repetition of some selectors...)
4886
Archived fixes / Re: Thoughts not display @ on initial post
« on June 13th, 2012, 02:47 PM »
That's a fixed issue, btw...
4887
Plugins / [Plugin] Re: Improved attachments upload
« on June 13th, 2012, 02:42 PM »
Yeah, lol...

Silly as it sounds, though... How can I download this plugin?
What, we sure could use it on wedge.org itself... :lol:
4888
Archived fixes / Re: Profile Issue
« on June 13th, 2012, 12:33 PM »
Ah... Thanks, missed that one bit, as I was only testing on Guest profiles.
I just committed my changes a few minutes ago and I'm not going to re-commit just for this little fix, so I'm fixing it here and the commit will have to wait until I have more stuff to offer ;)
4889
Features / Re: New revs
« on June 13th, 2012, 12:30 PM »
rev 1615
(5 files, 5kb) (didn't do these on purpose...)

+ Added support for viewing all posts made by a single guest when clicking their name in topic pages. (Profile-View.php, Profile.php, Profile.template.php)

+ Adopting the sqr animation easing type by default. If you need to use swing, just specify 'swing2' as the easing. Tweaked menu animations to remain visible, as sqr is quite nice for 'big' animations but makes smaller animations barely visible. Finally, optimized more code. Saves another few bytes all in all. (script.js)

! The contextual tab menu code provided for custom URLs being used, but the original code didn't actually provide it with these URLs in the first place... (GenericMenu.template.php)
4890
Features / Re: New revs
« on June 13th, 2012, 11:58 AM »
rev 1614
(18 files, 33kb) (oddly, my last 'big' commit was exactly a month earlier, day to day.)

+ (Finally) added support for multiple group badges and ability for admins to determine (1) what group titles to show under user names (set it up in the Manage Membergroups area, Settings section), (2) what groups can show a badge and in what conditions (set it up in the individual membergroup settings pages, although as of now I have yet to write a proper UI for that one, but it works when done through the DB.) (install.sql, Display.php, Load.php, ManageMembergroups.php, PersonalMessage.php, Display.template.php, PersonalMessage.template.php, Help.language.php, ManageMembers.language.php, Themes.language.php)

+ Added permission for posting thoughts, and some related code. (install.sql, Load.php, ManagePermissions.php, index.template.php, ManagePermissions.language.php)

+ Added a 'userbox' custom loadMemberData set, used for topic pages. Also sorted the various sets to (more easily) spot the differences between them. Removed a few unused requests like group colors (done differently now.) (Display.php, Load.php)

+ Added hints for search engines in the language links (uses the country code and HTML5-sanctioned markup.) (Load.php, index.template.php)

* Don't bother saying "Hello, guest" when you don't even provide a login box in that section... (index.template.php)

* $context['first_new_message'] will now be used to link the anchor to the topic title if the topic is entirely unread, or the first unread post otherwise. (Display.php, Display.template.php)

! A missing function was causing AeMe to fail some maintenance tasks. (ManageMedia2.php)

* Commenazi. (Display.php)