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
2761
Features / Re: More sidebar complications...
« on June 30th, 2013, 06:33 PM »
Even when not at the edge..?
Great... Means they're gonna break a lot of web apps... ::)

Oh well, I suppose I could change it to a right-to-left swipe. If it doesn't also take over this..???!!!
2762
Features / Re: More sidebar complications...
« on June 30th, 2013, 06:00 PM »
I don't know anything about iOS 7...
All I know is that Chrome has this, but for the swipe to be taken into account, you'd have to start it on the edge of the page, while Wedge takes any swipe into account, and for what it's worth, my iOS 5 tests were satisfying, although I'm still not happy with the jerkiness of the animation, hmm...
2763
The Pub / Re: Infinite Scroll
« on June 30th, 2013, 05:58 PM »
Quote from Arantor on June 30th, 2013, 05:22 PM
If there are posts in the meantime, we can check that when saving the draft and offer to fetch them then and fetch them AJAXively. It works extremely well for XenForo...
Yes, but you may not 'notice' the new posts, though... In general, you'd want to be informed that there have been more posts.
Also, don't forget that if you have 15 posts on a page, and you post a quick reply, you'll get the post on the same page, so if you're copying the URL of the page to show a friend, they may not see the post you were pointing to, because it's really on the next page, etc...

Short summary about infinite scrolling: I thought I had the 'perfect' UX for this, and implemented it. I was quite happy with it. Then I did some further research, and noticed that another forum software (Discourse) bragged about having infinite scrolling, but it seems like it only does it for topic lists, not for topic pages, so they took the easy way out, I'd say... Unfortunately, from my countless experiences, and observation of other non-forum implementations, I can only say one thing: infinite scrolling is only possible if you have one of these two implementations: either an app setup using a customized JS framework like Backbone.js (which would force a forum system to rewrite its JS entirely), or a setup where you know *beforehand* what the contents of the post will be, and you can control it... Because if you can control it, then you can easily get away with incremental rewrites of your JS to apply to the new posts, and you're good. It is doable for Wedge, *even* for video embeds, but this is where the limitation is: we have no way to know what plugins will do to posts, and while it's unrealistic to expect many plugins to apply JS to a post (and if they do, the author might be aware of things to do to update for the infinite scroll's new posts), and thus it might break at any point, which is not good... :-/

So, two possible solutions, I'd say...

- Rewrite the current JS more thoroughly, to 'ensure' everything will work fine, and expect plugin authors to be aware of this.
- Give up on Ajax loading of new posts, and instead turn my infinite scroller into a generic helper function. This is my fallback idea, and it makes sense: detect 'Previous' and 'Next' links, and if the mouse wheel shows intent to go to Prev/Next, automatically follow these links, which would be applicable to *any* page with a pageindex, such as the topic lists, topic pages, member lists, etc...

I don't really see myself do *both*, but it's also doable, I guess...
To begin with -- what do you think of this fallback solution, is it any good to you..?
Quote
The thing is, using iframes and whatnot is really not the best way when you're dealing with individual posts.
I tried iframes as content holders... And I gave up. It sucks, in so many ways. Then I tried iframes as temporary content holders, until I can move their contents to the main page, and destroy the iframe. Problem is: while the events get copied properly, the event's targets stay in the iframe. e.g., if you click 'Delete' on a post, the confirm box shows up in the iframe, not in the main page...
That was a real bummer, for me...

Still, I'm counting on your insights, maybe you're less lost than I am, eh.. ;)
2764
Features / Re: More sidebar complications...
« on June 30th, 2013, 03:54 PM »
Better now..?
Posted: June 30th, 2013, 03:53 PM
Quote from live627 on June 30th, 2013, 12:55 AM
I use it to open links in new tabs all the time. So much easier than Ctrl+Click...
Yes, which is why my code accounts for that and allows you to do that.. ;)
2765
The Pub / Re: Infinite Scroll
« on June 30th, 2013, 10:31 AM »
Ajax quick reply is easy. I can write it if you want.
Problem is the same when it comes to adding plugin data though... other than that, it's just the same as doing infinite scrolling with one post.

One major issue is if someone else posted in the meantime. But then you can always do a hard redirect to the post page then...
2766
The Pub / Re: Infinite Scroll
« on June 30th, 2013, 07:53 AM »
Bumpies..?
2767
Features / Re: More useless nonsense
« on June 30th, 2013, 12:24 AM »
What if we rename views to something else like reach or popularity, then we can get away with counting only members..? Also, maybe count only one visit per member?
2768
Features / Re: More sidebar complications...
« on June 30th, 2013, 12:19 AM »
Ah, it's too big on iPad 3 too..? Then it means I have to change my media query, indeed...

And the menu position is tied to the screen resolution, too (CSS resolution, i.e. pixel density), so I'm not surprised the menu disappears on a Retina screen, of course...

I guess I'll have to do some new media query that checks for a resolution below 500px, or something...! It should catch pretty much all of the mobile devices while leaving tablets in peace, right..? :-/

As for the middle button click, I'm guessing no one is bothered by it, since I got no complaints..?
2769
The Pub / Re: Infinite Scroll
« on June 30th, 2013, 12:18 AM »
I can't believe I've spent so much time on this feature...
Even though I haven't posted here in two weeks, I regularly tweaked my code, to try and get it to run without issues.

While loading a 'regular' page works fine, if the page has any video embeds, all hell breaks loose.
And, I just can't be happy with that...

I've done countless rewrites, and I always come back to the same thing... "Give up, Nao. Give the fuck up, and do it another way."
The "other" way being, call me a chicken, simply loading the previous/next page when using the wheel, rather than ajaxively loading it and adding it to the page. Basically, simply tie the "mouse wheel movement past the end of the page" action to the "go to next page" link.

Well, at least, it would work flawlessly... :-/
Or should I just be super-happy with an infinite scroller that will work on 'basic' code, but not on anything complex added by plugins in posts...?
That is the question, I'm afraid.
2770
Features / Re: More sidebar complications...
« on June 29th, 2013, 04:27 PM »
Swipe manual:

- Swipe from left to right
  - Opens sidebar
    - Swipe from right to left
      - Closes sidebar
    - Swipe in any other direction
      - Does nothing, except the default (scrolls sidebar or screen)
- Swipe in any other direction
  - Does nothing, except the default (scrolls screen)

There are limitations, though... Scrolling the sidebar will work, and when you reach the end, it'll start scrolling the rest of the screen, instead. It's the default behavior, and also occurs in select boxes, for instance. I tried to 'block' that, but it didn't work, and to ensure it'd work, I'd probably have to add more code, which I'm reluctant to do at this point, as it's already heavy enough, and melikes short code better, as it's easier to maintain, of course...
2771
Features / Re: More useless nonsense
« on June 29th, 2013, 04:12 PM »
This consideration might have been important years ago, but nowadays web hosting is generally done on powerful CPUs with lots of RAM etc, and an extra SQL query (or not) is usually not so important... Just look at the Wedge codebase, literally for every page it runs dozens of preg calls, many queries, does thousands of tests, and yet you're aware that our software is extremely fast, because most of the work is done over the network and the client, more than the server, so is it that big a deal, anyway..?

In any case, I'd at least like to keep the topic views enabled for members, and drop guests altogether, I wouldn't mind that too much really, but that's really the best I can do right now, I reckon...
2772
Features / Re: More sidebar complications...
« on June 29th, 2013, 04:09 PM »
Quote from Dragooon on June 29th, 2013, 11:56 AM
Why not add a physical button as well instead of solely relying on a swipe gesture (I'm thinking jQuery mobile's panels here, they can help you with this)?
This was in my plans before uploading, actually, but I never could seem to find a proper place to put that button in, so I decided to go for a drop shadow on the left side, that would 'hint' at the ability to swipe... But if you have a (visually) good solution, please share...!
Quote
Otherwise the menu's font is too big but the idea is pretty cool!
Also, I tested the setup on my iPod earlier, and was stunned by the awful menu size, eh... It's actually, like, twice bigger than what I have on my regular test setup, i.e. my Android-based S3 device, meaning I'll have to fix this, of course.
I take it you tested on iOS, right..?

Also, the iOS version is WAY too eager to open the panel, as a very, very small swipe (even an accidental slow swipe) triggers it, while on my S3, you have to do a conscious swipe, hmm... This, I guess, also needs a quick fix...

Oh, and I finally found a nice way to make it work on desktops...! I can't believe it!

- The problem was that the drop zone for the mouse was too small (about 30 pixels wide, 100% height), and I couldn't decide between a 100ms or 200ms delay before triggering the popup.
- All of this means, you need to make a proper effort to take your mouse to the extreme left of the window (which, at this point, is almost guaranteed NOT to be stuck to the left side of the screen, meaning you need to correctly position it), and then wait for a tenth of a second, then move the mouse... Really, really painful, compared to moving the wheel to the bottom of the page, and then reading there...

Then I thought... Wheel..? Mouse wheel....? Can't I hook something into that..?!
And it occurred to me, clear as ever: even though I never did it, I can certainly hook into the friggin' wheel *button*...!
So, I did JUST THAT. I added a mousedown event, and if e.which is 2, trigger the panel, to open it or close it.
You can try it now... :)

What do you think..? Is it good material, or is there any good reason why I shouldn't cancel the usual wheel button, which in 99% of all cases would simply trigger a mode that allows you to scroll the window with a mouse move, something I'm pretty sure most people would never do consciously, thus meaning a waste of time, having to re-click the button to untrigger this mode..?
Posted: June 29th, 2013, 04:06 PM

Note I also ensured that a middle-click on a link wouldn't trigger the panel, because usually you'd do that to open the link in a new tab, of course...
2773
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 29th, 2013, 11:47 AM »
I'm more suspicious of adding an 's' than removing it, actually... ;)
"It's a move", "it's a like", etc...
2774
Features / Re: More sidebar complications...
« on June 29th, 2013, 11:45 AM »
Okay, good to know!
Anyone else..?
2775
Features / Re: More useless nonsense
« on June 28th, 2013, 09:19 PM »
Another thing with topic views, is that without them, you lose an entry in the stats page, which is not always the same as topic replies, although we could rework this to only request topics that aren't in both stat columns, etc... :^^;:

Nope, WP has never supported this. They expect you to rely exclusively on external statistics tools. It wasn't pleasant.