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
5236
Features / Re: Action buttons: positioning
« on May 11th, 2012, 12:05 AM »
What do you think about this?

Not as good looking but... At least it works...
5237
Features / Re : Re: Keyworks in the URL + SEO
« on May 10th, 2012, 11:28 PM »
Oops, I posted my bump in the wrong topic... Lol :)
Quote from Arantor on May 10th, 2012, 11:01 PM
I think it's because without seeing it it's not like we can judge the visual effect and as for the code consequences, it's like I can't visualise the consequences without trying to make use of it later, you know?
Sure... But I'm still unsure what's best. Forget about touch devices..?
5238
Features / Re: Action buttons: positioning
« on May 10th, 2012, 06:08 PM »
(Still working a lot on Wedge, it's just that I'm so overwhelmed by the amount of changes to commit, that I'm postponing my next commit every time...)
Quote from Arantor on May 5th, 2012, 06:13 PM
I'm not sure, there is such a thing as having too much stuff.
Alright...
Quote
Quote
I'm still not 100% sure about whether or not I'll keep the note classes with likes number etc... But at least it's a solution that would be perfect on mobile. (Perhaps I should just show the 'You like this' text next to it, and then hide it entirely on a media query test.)
Try it :)
I'm not sold on either solution, actually... :-/
Quote
I uploaded it, saw it was corrupt, removed it, reuploaded it and still corrupt (the same way). Very weird. But I didn't find any of the normal PNG block indicators, I couldn't find the IHDR sector end when downloading the file again...
Did you look into this bug in the meantime...?

Back on topic -- I rewrote the minimenu CSS/JS code to fix a detail that bothered me at low-res (iPhone etc) -- if a minimenu overlaps another minimenu's parent entry (like the Actions button overlapping the following post's author name), the parent entry has priority z-index so it shows up on top of the menu. This is because of a complex implementation to ensure the parent entry wouldn't be 'hidden' by the menu showing up behind it.
I tried to fix it by doing a reverse walkthrough of all umme/acme tags, like this:

Code: [Select]
(function () {
var zindex = 1;
$.fn.reverse = [].reverse;
$('.acme, .umme').reverse().each(function () { $(this).css('z-index', zindex++); });
})();

(Isn't this some cool JavaScript? :P)
I would then create the minimenus dynamically to use the parent item's z-index minus 1. Worked perfectly, but I noticed it didn't look great on my iPod -- most notably the menus tended to disappear and then reappear as they were animated. Possibly due to the great amount of processing power this requires... (Yay for mobile devices.)

So I threw away that solution, and instead decided to .clone() the parent into the minimenu and position it on top of the parent. Fixing all z-index issues immediately, meaning I didn't have to specify them any longer (which makes it easier to style stuff, too.)
And again -- it works nicely. Well, it didn't at first, but then I got rid of the padding animation implied by .show() (by replacing it with a longer .animate() call[1], but thanks to gzipping it's actually much shorter than the original code). Except for my iPod, again.....!!!
Now, the animations work correctly, but I can't seem to get the font sizes right. I can fix it by setting paddings and sizes manually in the index.iphone.css file, but it also means that some other devices are bound to show issues with this...

So, two possible fixes:
- Finding a 'correct' way to clone the parent entry perfectly. (This would *probably* imply setting the minimenu to be a child of the parent, rather than a child of the body. I'll try this next but it's like that it's going to create other issues.)
- Getting rid of the current minimenu style. Instead, implement them to look just like the 'normal' menus, i.e. an arrow below the item, and nothing surrounding it. Basically, doing what John did in the first place when he suggested re-using our menu style but I wanted to look into more animation styles.

I need opinions.
 1. I should also point out that because of the lack of padding animation, it doesn't 'feel' as nice an animation as it used it, but at least it's clean. This can probably be fixed by animating the list items at the same time as the parent ul... But I'm lazy for now.
5239
Bug reports / Re: Pretty URL remarks
« on May 7th, 2012, 02:32 AM »
Why only on these? Because we are to assume that's only for non-file-based caches?

Also, I wouldn't know how best to store these URLs in a file cache... Per-page basis is meh to me.
5240
Bug reports / Re: Pretty URL remarks
« on May 7th, 2012, 01:23 AM »
So... Do I remove db caching? :P
5241
Bug reports / Re: Pretty URL remarks
« on May 6th, 2012, 10:58 PM »
So, no file cache then?
5242
Archived fixes / [Bug] Re: Select menu is slightly broken on touch screens
« on May 6th, 2012, 06:13 PM »
This would force me to add a touchend event, wouldn't it..?
And which one would I have to disable, do you reckon?
$items.not('.disabled').mousedown(clickSBItem), I suppose?

Wondering if it wouldn't be simpler to just turn it into a mouseup event... Maybe touch devices are less picky when it comes to mouseup... I don't know. I'd have to check on quirksmode.org, I think it lists all events triggered on touch for all touch devices...
5243
Features / Re: New revs - Public comments
« on May 6th, 2012, 01:41 AM »
Hey guys! Now here's for a good opportunity to use the Like system: since you can't post in the New Revs topic, you can share your satisfaction with a given commit by 'liking' it :)
(Don't 'like' a technical boring commit though, as I'll know you're just trying to make me feel good... :P)

Now for a good suggestion too... Should likes be disabled if a topic is locked? My gut feeling is 'no'.
Quote from Arantor on May 3rd, 2012, 08:48 PM
QuoteFast is used any time you press quote to insert it into the editor. There's two sets of circumstances it can be called - either to insert from main display into quick reply, or to insert from the summary of topic into the main reply. Probably more than you'd suspect.
I don't use it much, really.
Quote
Quote
I suppose so. Especially since it has its own folder anyway... It could be done. And it'd be a good idea to rename 'Aeva-Gallery2' or 'Subs-Aeva' to some self-explained names...
That's the big one that occurs to me, anyway.
And I suppose you're expecting me to find the names...... :lol:
Quote
Heh, I do know what you mean, though in my case all my tabs are passive ones that I'm keeping open until I've finished with the information therein.
Easy to say, cowboy! You read faster than your shadow... :P
5244
Features / Re: New revs
« on May 6th, 2012, 01:34 AM »
rev 1579
(11 files, 6kb)

! AeMe caching for external embedded images was failing. (Aeva-Gallery.php)

- Got rid of unneeded code in the search results, and cleaned up the area a bit. (Search2.php, Xml.template.php)

* More 'time' to 'on_time' renames. Hopefully the last ones... Will probably generate warnings if you install from SVN, because it's missing some other files I'm still working on. I'm mostly committing whatever doesn't conflict with other work with progress. (Post.php, Profile-View.php, Recent.php, Search2.php, Subs-BoardIndex.php, Boards.template.php, InfoCenter.template.php, Profile.template.php, Search.template.php)
5245
Features / Re: Action buttons: positioning
« on May 5th, 2012, 05:51 PM »
Quote from Arantor on May 5th, 2012, 05:35 PM
The 'silently like' option will require a schema and query change.
Schema change yes -- adding a new field where you store whether the user wants to remain anonymous, but that's all..?
(We could also simply add a single field with a serialized array of options, like in the members table...)

I think it might be an interesting thing to do, though. I never discussed it before, but see it this way: let's say you want to Like a NSFW picture and your boss is on the same forum as you are... You won't "like" it because you'll be afraid he finds out you liked it. So, hiding your name from the Like list seems okay to me...

Apart from that -- well, we could also have an option to Like something without showing it in your user news stream (or wall, or whatever), and that's a one-time function so it doesn't need a database entry.
Quote
A lot of this stuff is going to be based on how it looks when we actually try it, you know. As long as the like button can just be clicked without having to hover or wait or anything, it'll probably work out OK to have unliking be less prominent.
Yup.
I'm still not 100% sure about whether or not I'll keep the note classes with likes number etc... But at least it's a solution that would be perfect on mobile. (Perhaps I should just show the 'You like this' text next to it, and then hide it entirely on a media query test.)
Quote
Bump for attachment broken issue.
Very oddly -- it seems like your file is done like this: it's missing the first 30893 bytes of the original file, then you get the rest of the file, then at the end, it adds another 30893 bytes which seem to be repeated from offset 52078 of the original file (i.e. it adds them again)... Make what you want of it, but I'm at a loss myself.
5246
Features / Re: Action buttons: positioning
« on May 5th, 2012, 03:59 PM »
Sometimes, just asking for opinions isn't enough :P

Well, I guess I'll follow my instinct and go for a minimenu then... Where I'll be able to show the main voters, a link to show them all, Unlike icon (in case you already liked the post, I think it's best to hide the Unlike text away from view...), and perhaps things like 'silently like' which could mean 'say I like this, but anonymously'... Dunno.
5247
Off-topic / Re: So, busy out here in RL
« on May 5th, 2012, 12:22 PM »
Next time you have a drink, you'll be considering porting Wedge to Node.js... :P

When you're talking about an open connection -- it reminds me of the difficulties I met with KMJ that contributed a lot to my loss of interest for win32 programming and brought me to PHP and stuff...
To think that, if we'd had websockets and things like that back in '06...
5248
Plugins / Re: Random idea for a plugin
« on May 5th, 2012, 12:17 PM »
Pete.... Don't let me be your mum and tell you not to drink too much, please :P
5249
Features / Re: Scratching my head on CSS margin collapsing...
« on May 5th, 2012, 12:16 PM »
Would like to move forward with this one, too...
I guess no one has any idea how to cleanly fix this.

Then plan B: what is the *least* dirty way to fix it then?

- extra quote markup...
- extra opening br with trimming as necessary
- the old way: setting no top margin for quotes, and expecting everyone to press Enter twice before a quote... (Like I always do for readability inside my textareas :P)
- something else, if you have an idea...
5250
Features / Re: Action buttons: positioning
« on May 5th, 2012, 12:07 PM »
So...

- I turned the two notice classes, 'note' and 'warn', into three classes: note (orange -- neutral, like New posts), notewarn (red -- requires immediate attention), and notenice (green -- neutral but as in 'good'). I'm not sure about the name/purpose of notenice, but I wanted to make your own likes clearly stand out in a positive way. I also used that in the main menu where new PMs are concerned, but I'm not sure whether it's best to use a warning or 'nice' note for PMs -- I use warnings for admin errors, and neutral for new media items, and I still haven't made a decision for new PMs.

- If you can't like a post and it hasn't received any likes, you won't see anything.
- If you can't like a post and it has received likes, you'll see the Thumbs Up icon, and a neutral (orange) notice with the number of likes.
- If you can like a post and it hasn't received any likes, you'll see the Thumbs Up icon and a "Like" link.
- If you can like a post and it has received likes, you'll see the Thumbs Up icon, a neutral notice with the number of likes, and a "Like" link.
- If you can like a post and you likes it, you'll see the Thumbs Down icon[1], a 'positive' (green) notice with the number of likes, and an "Unlike" link.

I'm working on having the whole area show who liked the posts on hover, but I don't know what's best: a minimenu where clicking that popup will then load the full list of likes, or a non-clickable popup with just the main names, or a non-clickable popup with the full list of likes (loaded through Ajax, obviously.)

Some of the new style was unconsciously, although I realized quite early in the process but that's okay, quite inspired by Facebook's compact way of showing likes.

Fishing for opinions now :)
 1. Which is totally illogical at this point... I'm thinking of getting rid of it?