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.
2836
The Pub / Re: Infinite Scroll
« on June 14th, 2013, 05:06 PM »
Ah, yes... But then again, Facebook is super-scripted, just like Google there's a lot of handling happening behind the scenes, and since they have full control of their pages (unlike Wedge which has to deal with future plugins), it's not hard to imagine they could pull it off, I guess...
Although it's interesting to consider using JSON or XML or whatever to retrieve the posts; but that would also imply, I guess, doing the same even on non-infinite pages, i.e. we get the JSON data inside the page, and we inject it through JS... Hmm, not very realistic, I'd say... (But it certainly makes it harder to save the web page, for those interesting in protecting their content, I suppose... :^^;:)
Where do you want me to go, then..?
Although it's interesting to consider using JSON or XML or whatever to retrieve the posts; but that would also imply, I guess, doing the same even on non-infinite pages, i.e. we get the JSON data inside the page, and we inject it through JS... Hmm, not very realistic, I'd say... (But it certainly makes it harder to save the web page, for those interesting in protecting their content, I suppose... :^^;:)
Posted: June 14th, 2013, 05:05 PM
Where do you want me to go, then..?
2837
Archived fixes / Re: Language cache doesn't turn off
« on June 14th, 2013, 03:23 PM »
Hmm, dunno... Well, OTOH, if it's a plugin, it's a no-brainer. ;)
Good idea, I'd say... :D
Good idea, I'd say... :D
2838
Archived fixes / Re: Language cache doesn't turn off
« on June 13th, 2013, 10:34 PM »
Yup, probably, but not in Chrome, which is what I'm using these days, either through Chrome Canary, Opera 15 or Sleipnir... ;)
2839
The Pub / Re: Infinite Scroll
« on June 13th, 2013, 09:25 PM »
NB, Tumblr blogs don't seem to have any JS in their posts, in the end... It's all about showing plain text links only, really... That's a cheat, I guess. :-/
I probably shouldn't bother too much, and disable mod checkboxes on infinity pages... Although it kinda defeats the purpose of being able to remove more than 15 posts in a row, doesn't it...?
As for external scripts like swfobject, it's still complicated. It's either I get it to execute and break quick edit (I forgot to mention that one...), or the other way around.
Or, I just rewrite quick edit and mod checkboxes to ensure they don't execute code on their own; rather, the main page 'monitors' all quick edit buttons, for instance, and calls the usual stuff when it's pressed. I don't know, is it realistic..?
I probably shouldn't bother too much, and disable mod checkboxes on infinity pages... Although it kinda defeats the purpose of being able to remove more than 15 posts in a row, doesn't it...?
As for external scripts like swfobject, it's still complicated. It's either I get it to execute and break quick edit (I forgot to mention that one...), or the other way around.
Or, I just rewrite quick edit and mod checkboxes to ensure they don't execute code on their own; rather, the main page 'monitors' all quick edit buttons, for instance, and calls the usual stuff when it's pressed. I don't know, is it realistic..?
2840
The Pub / Re: Infinite Scroll
« on June 13th, 2013, 09:11 PM »Yea I guess you would need a big red dividing line at the end. I'm just infatuated with it now. It doesn't take that much to entertain me. :)Quote from Arantor on June 9th, 2013, 01:41 AM I can only imagine how annoying that would be :/
It's possible to do, just annoying.
Also, I'd like to discuss an alternative implementation I made today, which I find really funny...
It all comes down to the fact that I'm not satisfied with having JS problems when loading posts. Really, infinite scrolling is a feature that's targeted to showing elements that don't need JavaScript to 'work'.
So, I went back to using an iframe... Except, instead of showing it, I simply detached the post list, and appended it to the main page. The trick is to use .detach() -- this will keep the events and data, something that even .clone(true, true) doesn't seem to be able to do in jQ when doing an iframe to parent move.
And here's the funny thing... While, for the first time, I managed to get a Dailymotion embed to show up, the scripts are actually STILL inside the iframe, even though I moved them too... So, whenever I click the Delete button on a new post, the confirm popup shows up... Inside the iframe, of course..! Ah ah, very funny, indeed...
Similarly, checking a mod checkbox on a new post will show the "Delete selected posts" option, but in the iframe, not in the main page... While doing the same on an 'old' post, will show the option in the main page, of course.
So, right now, I just don't know where to get, eh... I'm thinking, there MUST be a way to make JavaScript execute, and not conflict with the main page's scripts.
After all, Google Images have (some) JS in their infinite scrolling images, and Tumblr also has events & co. on their new posts/images. I looked into them a bit, and they seem to actually be using the Infinite Scrolling plugin for jQuery, which dates back to 5 years ago..! I didn't even remember jQuery existed at that point, ah ah... Well, I'm debugging through it, and can't see anything related to executing JS, so, hmm... I dunno.
I'm not losing hope; but, honestly, it's taken its toll on me, at least a bit...
2841
Features / Re: New revs
« on June 13th, 2013, 08:00 PM »
rev 2164 -- the return of flexbox, can you believe it..?
(5 files, 4kb)
+ Implemented a new technique of my own, CSS-only, flexbox-based, to emulate proper rowspans in Chrome. I'm only targeting this browser, because really, it's the only one that supports my technique, but other than that, it should be flawless. I know, I know, Chrome always has the cool toys... But other browsers should think of getting their stuff to work, shouldn't they..? (sections.css)
! Fixed CSS transitions to auto-prefix 'transform' values (like Wess does on the 'transform' rule itself), as it is still a requirement in Chrome, as odd as it sounds... This is so 2012! (Class-CSS.php)
! Don't run MessageIndex JS code on Display pages, it's a (small) waste of time. Also some commenazi, whatever. (topic.js)
! Fixed AJAX loading icon not, err... loading, in the Zoomedia code. (zoom.css)
* Tweaked disabled buttons in the admin area, as it wasn't easy to notice that they were actually disabled, eh... (mana.css)
(5 files, 4kb)
+ Implemented a new technique of my own, CSS-only, flexbox-based, to emulate proper rowspans in Chrome. I'm only targeting this browser, because really, it's the only one that supports my technique, but other than that, it should be flawless. I know, I know, Chrome always has the cool toys... But other browsers should think of getting their stuff to work, shouldn't they..? (sections.css)
! Fixed CSS transitions to auto-prefix 'transform' values (like Wess does on the 'transform' rule itself), as it is still a requirement in Chrome, as odd as it sounds... This is so 2012! (Class-CSS.php)
! Don't run MessageIndex JS code on Display pages, it's a (small) waste of time. Also some commenazi, whatever. (topic.js)
! Fixed AJAX loading icon not, err... loading, in the Zoomedia code. (zoom.css)
* Tweaked disabled buttons in the admin area, as it wasn't easy to notice that they were actually disabled, eh... (mana.css)
2842
Features / Re: New revs - Public comments
« on June 13th, 2013, 07:35 PM »
Okay, I was thinking about this, and decided to discuss it first...
How about, we change the permission page, at load time, to replace the radio buttons with a pseudo-select box?
I'm thinking along the lines of the post icon selector, i.e. a green/black/red icon that you can click, and it shows a small dropdown with all possible choices.
As you probably know, I already did something similar in Noisen with the privacy selector; it's re-using most of the IconList code, and it works very well; in fact, I was even able to add checkboxes to the popup, so it's really comfortable in terms of power, I'd say.
What I'm seeing, in the future, is an IconList that would be entirely configurable; it would rely on some custom JS to turn any kind of item into a dropdown list, along with a callback, to transform it internally back into whatever we want, so that we can apply it to radio buttons, checkboxes, select boxes and so on...
What do you think, guys..? Is it realistic, or even exciting, or just something that's not worth it..?
How about, we change the permission page, at load time, to replace the radio buttons with a pseudo-select box?
I'm thinking along the lines of the post icon selector, i.e. a green/black/red icon that you can click, and it shows a small dropdown with all possible choices.
As you probably know, I already did something similar in Noisen with the privacy selector; it's re-using most of the IconList code, and it works very well; in fact, I was even able to add checkboxes to the popup, so it's really comfortable in terms of power, I'd say.
What I'm seeing, in the future, is an IconList that would be entirely configurable; it would rely on some custom JS to turn any kind of item into a dropdown list, along with a callback, to transform it internally back into whatever we want, so that we can apply it to radio buttons, checkboxes, select boxes and so on...
What do you think, guys..? Is it realistic, or even exciting, or just something that's not worth it..?
2843
Archived fixes / Re: Language cache doesn't turn off
« on June 13th, 2013, 06:14 PM »It might have been nice if this had been mentioned sooner, I wouldn't have wasted time adding it to the admin panel :P
Actually, I'd even forgotten about the feature, eh... :^^;:
So, do you have any idea why Chrome will outline the password confirmation area (indicating that it HAS it stored in its database), but won't fill it in by default..?
2844
Features / Re: Flexible box model. It's easy, until it gets hard.
« on June 13th, 2013, 06:12 PM »
So, last April I disabled this feature, because I'd discovered that no matter how much I worked on fixing it across browsers, nested flexboxes have an undefined behavior.
Today, for some reason, I decided I wanted to see if I could do without the parent flexbox, and only use the child. So, I experimented on it, and added a dummy div in postarea, and made it absolutely positioned, but then I remembered the table cell itself could be relatively positioned, because of a Firefox bug or something, so I tweaked everything, and managed to get the child div to take the entire height of the cell, *without even resorting to absolute positioning*!
This is probably a Chrome bug or something, but from my tests (and I assure you, it was a totally random shot, not some hack I read from another website), setting the table's height to 100% (which doesn't have any impact) allows me to set it on its cells as well. Odd, eh..? And then I can also set height: 100% on the child div. It works, and allows me to turn the div into a flexbox, but unfortunately, the height: 100% trick didn't work on other browsers, and thus can't be used there, AFAIK.
Then I thought about it some more, and decided I didn't give a damn... I'm on Chrome, I can decide to 'improve' its layout if it supports it; other browsers will just behave as usual. I also removed the dummy div, and tried doing display: flex on the postarea, and it friggin' worked. I can't believe it, eh..?!! Anyway, considering that it's Chrome-only now, I'll spot bugs soon enough, so, I suppose, it's time to restore flexbox into Wedge, and enjoy the moment.
'course, as usual, if someone finds a truly cross-browser way to do it, feel free to point it out...!
This will be in my next commit, I think... Along with other things, hmm... Can't tell, it's top secret.[1]
Today, for some reason, I decided I wanted to see if I could do without the parent flexbox, and only use the child. So, I experimented on it, and added a dummy div in postarea, and made it absolutely positioned, but then I remembered the table cell itself could be relatively positioned, because of a Firefox bug or something, so I tweaked everything, and managed to get the child div to take the entire height of the cell, *without even resorting to absolute positioning*!
This is probably a Chrome bug or something, but from my tests (and I assure you, it was a totally random shot, not some hack I read from another website), setting the table's height to 100% (which doesn't have any impact) allows me to set it on its cells as well. Odd, eh..? And then I can also set height: 100% on the child div. It works, and allows me to turn the div into a flexbox, but unfortunately, the height: 100% trick didn't work on other browsers, and thus can't be used there, AFAIK.
Then I thought about it some more, and decided I didn't give a damn... I'm on Chrome, I can decide to 'improve' its layout if it supports it; other browsers will just behave as usual. I also removed the dummy div, and tried doing display: flex on the postarea, and it friggin' worked. I can't believe it, eh..?!! Anyway, considering that it's Chrome-only now, I'll spot bugs soon enough, so, I suppose, it's time to restore flexbox into Wedge, and enjoy the moment.
'course, as usual, if someone finds a truly cross-browser way to do it, feel free to point it out...!
This will be in my next commit, I think... Along with other things, hmm... Can't tell, it's top secret.[1]
| 1. | No, not really... I'm re-doing the Ajax box, but I'm not 100% happy with it; actually, I'm tempted to remove it entirely, and replace it with a page-wide 'progress' cursor during the call... I did a test, and it worked. |
2845
Archived fixes / Re: Plugin CSS isn't cached into its own subdir
« on June 13th, 2013, 10:49 AM »
Bug fix or new feature..?
Also -- since my recent suffix rewrites, the plugin code is awfully in need of some love.
Also -- since my recent suffix rewrites, the plugin code is awfully in need of some love.
2846
Archived fixes / Re: Language cache doesn't turn off
« on June 13th, 2013, 10:45 AM »
That would imply typing my pw to access the admin area, because only Opera supports this in its wand.
Maybe, if we rewrote the admin login to ask for the user name as well..? Then it'd be supported by Chrome's auto-fill... :^^;:
Maybe, if we rewrote the admin login to ask for the user name as well..? Then it'd be supported by Chrome's auto-fill... :^^;:
2847
Archived fixes / Re: Language cache doesn't turn off
« on June 12th, 2013, 07:00 PM »
Yeah, the only drawback is that Wedge doesn't automatically updates files when needed, so each time I update the website, I have to manually remove the files from the cache folder, which is pretty boring to do...
2848
Features / Re: New revs - Public comments
« on June 12th, 2013, 06:40 PM »
I only changed some colors, added title params everywhere (really!), and decided that the gzipped difference is too trivial to care about.
2849
Features / Re: New revs - Public comments
« on June 12th, 2013, 04:25 PM »
BTW Pete, are you fine with the tweaks I made to the permissions page..?
I only tried to improve their efficiency, at least for me it's working better that way, I guess...
I only tried to improve their efficiency, at least for me it's working better that way, I guess...
2850