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 - Arantor
286
The Pub / Re: Infinite Scroll
« on June 14th, 2013, 05:22 PM »
Well, on my todo list is the ability to do true AJAXive quick reply, as in submit the post, get the post in full display mode back and inject it into the page itself.

Problem 1: deferred events
Answer: for code requested via AJAX, don't defer the events. It uses slightly more bandwidth but since everything on the page will already be available, it's not like we're waiting for dependencies like jQuery.

Problem 2: menu items
Answer: When the post is retrieved, drop all existing mini-menus, splice the new post's items into the existing menu definition and re-call it. The returning fragment should deal with this rather than having it already in every page load (since not everyone is going to do this)

Problem 3: payload
Answer: It actually doesn't really matter whether it's JSON, XML or HTML in a light wrapper. As long as it comes through and can run scripts or whatever, it's fine.
287
Off-topic / Re: Rename 'Notify'?
« on June 14th, 2013, 05:16 PM »
If it's troublesome to translate, it suggests that the wrong convention is being used anyway ;)

I actually like how other software calls it 'Watched Topics' which is probably the fairest thing it could be called.
288
Archived fixes / Re: Language cache doesn't turn off
« on June 14th, 2013, 05:00 PM »
You mean like this? (10 minutes work)

OK, it isn't pretty, it doesn't have a magic language string or anything for the menu item but that's probably for the best...
289
Features / Re: Miscellaneous/WIP screenshots
« on June 14th, 2013, 04:32 PM »
Well, I'm using a third party module for the actual nested-sortable behaviour and making that play nice has been interesting.

Making categories into physical boards has some interesting consequences. Firstly it means you'd be able to toggle visibility of an entire category quite easily (though of course, view/enter per board still applies), secondly it would mean ensuring we have proper capabilities for handling multiple board types.

But it would also complicate the matters around {query_see_board} which we're still using and it is still partly a bottleneck in things.
290
Off-topic / Re: Rename 'Notify'?
« on June 14th, 2013, 04:29 PM »
The logic behind 'notify' is that it (currently) enables an email to go to you when there are updates. It's a passive thing. Following implies something more active.

If we had some interface for showing you just the topics you're following (separate to 'unread topics' and 'unread replies' as we currently have) it would make even more sense to rename it.
291
Archived fixes / Re: Database error -- search for members
« on June 14th, 2013, 03:10 AM »
Fixed in r2165.
292
Archived fixes / Re: Moved to a board I cannot access?
« on June 14th, 2013, 03:10 AM »
This should now be correct for any move-topic notifications generated with r2165.
293
Features / Re: New revs
« on June 14th, 2013, 03:09 AM »
(2 files, 1KB)

Revision: 2165
Author: arantor
Date: 14 June 2013 02:09:11
Message:
! When saving a topic-move, the wrong variable was used to generate the notification leading to an incorrect message for non admins. (MoveTopic.php)

! Memberlist search wasn't updated to use the profile fields privacy changes, leading to a database error because of a field that isn't there any more. (Memberlist.php)
----
Modified : /trunk/Sources/Memberlist.php
Modified : /trunk/Sources/MoveTopic.php
294
Off-topic / Re: The "Print" function
« on June 14th, 2013, 02:14 AM »
Nah, there's no real need to delete it :)

Gotta remember also the longevity involved in this stuff; SMF 1.0 had print page - back in 2003-4. I kind of want to speculate that even YaBBSE had it (which puts it back to 2001-2) but since YaBBSE's own site is actually running SMF on the sly[1] back when the intarwebs were a very, very different place.

For example the notion of a 'print friendly CSS layout' as suggested in that thread just didn't exist.[2] So it was needed in the application rather than some kind of catch-all.

I don't even think the code has significantly changed in SMF in that time, thinking about it. Other than the necessities (db_query -> $smcFunc) it is probably the same or almost the same. I might if I get bored do a comparison.

So yeah. I think this is another vote for 'getting out the bone saw'.
 1. Yes, it's actually running SMF these days though SM LLC allowed SleePy to modify the footer to not say SMF... this is back in the pre-BSD days where altering the copyright was a no-no. But since Lewis Media handed the rights to the LLC, it was allowed.
 2. CSS 3 didn't exist. Neither did HTML 5. Hell, Firefox was only just emerging back then. I still remember Netscape Navigator upon which Firefox was originally based. Those were the days.
295
Off-topic / Re: The "Print" function
« on June 14th, 2013, 01:52 AM »
I draw your attention to http://wedge.org/pub/7541/print-page/ and the conclusions drawn therein. I still think it should be a plugin though I just haven't gotten around to actually doing anything about it.
Posted: June 14th, 2013, 01:50 AM

Mind you I would note that my comment about parse_bbc's insanity (reply #7 in that thread) is no longer applicable; Nao and I since rewrote how parse_bbc is called so that's not an issue.
296
Features / Re: New revs - Public comments
« on June 14th, 2013, 01:28 AM »
Quote
How about, we change the permission page, at load time, to replace the radio buttons with a pseudo-select box?
I dunno. I did it with SimpleDesk and while I liked it (especially since I folded own/any into it), I don't think it would work for us. Partly because deny wasn't actually an option in the UI. Partly because we can't actually fold own/any into the dropdowns (since there are situations you'd need to give permissions separately and because there are some fubar moments in terms of any overriding own but the UI doesn't cover that aspect)

Though I don't know why we wouldn't just use a standard selectbox and be done with it if we're going to do it. The | option to add text after an item would cover that well enough.

Ultimately I don't think it's the solution to this problem.
297
The Pub / Re: Infinite Scroll
« on June 14th, 2013, 01:15 AM »
Well, Facebook does it, though I've never studied the methodology of how - but I think it's doing it by sending back new content as JSON to be included into page flow and appending events on demand.
298
Archived fixes / Re: Language cache doesn't turn off
« on June 14th, 2013, 01:08 AM »
I don't let my browser save passwords in the first place, so no idea, sorry.

I guess I could write a plugin that you can use here to trigger it that only requires a GET session check rather than a POST session check and let you put it in the main admin menu?
299
Archived fixes / Re: Language cache doesn't turn off
« on June 13th, 2013, 05:20 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

But no, I'm still not changing the language caching to adhere to the other caching settings.
300
Archived fixes / Re: Database error -- search for members
« on June 13th, 2013, 05:10 PM »
Oh crap, I know why that is. It's one more thing that needs to be fixed up after I gave custom fields their own set of access rules.

I'm off out in a minute but I'll fix it when I'm back.