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
4231
Plugins / Re: Yet another: PM flash
« on March 20th, 2012, 11:38 AM »
Quote from Dragooon on March 20th, 2012, 08:30 AM
Nice! Can you make it jump in 3D?
All I'm doing here is altering its opacity, knowing full well that the relevant icon does have other layout stuff (notably enforcing padding) that it handles. But dropping opacity to nil and then adding a new element that can be altered, maybe I guess. Not something that interests me personally though.
4232
Plugins / Re: Another little plugin: topic buttons
« on March 20th, 2012, 11:36 AM »
Oh, I'll probably make banners too, so that people have the choice, plus those would demonstrate how to add new items to the template skeleton.
4233
Features / "Username does not exist" warning
« on March 20th, 2012, 02:42 AM »
I'm not sure how I feel about this one.

Here's the deal: when you present a username/password box, you're expecting a username and password. Either being absent is fair game to report to the user, and if the password is wrong, again, fair game to admit it.

But what should happen if the username is invalid?

SMF, and currently Wedge, report that the username does not exist. Note that this will be the same for email addresses, which means it's possible to brute force email addresses out of the system with work.[1]

If it isn't obvious what I'm getting at, let me explain. If you type in a username and password, but the username doesn't exist, it will tell you so, regardless of what the password is. If you type in a valid username (or email address), but a useless password, you get told the password is wrong. Given that information it is possible to use the login feature to validate email addresses against your forum's userbase to a degree.[2] All because you're telling them something about the data they have.

Here's the catch: it is better user experience to tell them what's wrong with their information, but by doing so you give away something in security that it might be better not to do.

So I'm on the fence about what I should do; the current approach is not wrong but neither is right. It's certainly a better experience than it blandly stating 'The username or password is wrong', but it is less secure. How important is this security, especially in light of privacy laws?
 1. Oh, and did I mention, this isn't recorded anywhere either?
 2. The session level brute force detector will still catch it, but it's not like that's too hard to sidestep.
4234
Features / Re: New revs
« on March 20th, 2012, 02:33 AM »
(3 files, 1KB)

Revision: 1487
Author: arantor
Date: 20 March 2012 01:33:18
Message:
! Normally 'wrong password' errors are filed under 'user' but there's a bunch of other stuff that's also user errors which is really separate, so move 'failed password' errors to their own filter. (Errors.php, Login2.php, ManageMaintenance language file)
----
Modified : /trunk/Sources/Errors.php
Modified : /trunk/Sources/Login2.php
Modified : /trunk/Themes/default/languages/ManageMaintenance.english.php
4235
Plugins / Yet another: PM flash
« on March 20th, 2012, 02:17 AM »
Really simple idea, and I was bored. All it does is gently flash the PM envelope icon when there are unread messages.
4236
Plugins / Another little plugin: topic buttons
« on March 20th, 2012, 01:44 AM »
Eh, I wanted to do a quick plugin that could be used to demonstrate menu manipulation in the message and display areas.

Really simple to perform, it's taken me about 20 minutes start to finish, including changing how I did it part way through because I found it cleaner in the end :P

The screenshots should speak for themselves: for guests, they get a nice little 'register to post' link in the normal navigation menu, for normal members, they get a 'new topic' button next to the reply button.

Simple tweaks, but it's a nice enough little demonstration.


Naturally when Wedge is available for download, this little one will be as well, but there's not a lot of point my offering it now, you can't do a lot with it.
4237
Features / Re: Number of posts per page
« on March 19th, 2012, 10:59 PM »
Quote
Maybe simply indicate that allowing users to override the count will prevent caching and thus make the forum more CPU intensive..?
Well, what I might do is implement caching and just not pull from cache for those users. The default case will save enough queries that way, I'd say.
Quote
Just had a look and out of a thousand, 6 people have set this option.
0.6% is the sort of figure I had envisaged would use this.
Posted: March 19th, 2012, 10:50 PM

Eh, I've just realised that the caching code is even more complex than I thought when handling per-page caching because of the nature of moderated posts >_<

I think I'll leave that part for now and see how big a deal it really is in practice...
4238
Archived fixes / Re: Boards don't get their PURLs created properly
« on March 19th, 2012, 10:48 PM »
Quote
Yes. I worked on it this morning but was only able to fix a few bugs. The issue is that createBoard generates a dummy URL and then transmits it to modifyBoard. Untouched.
*nods* In our case, though, the generated URL should include domains and the ones I was seeing didn't include that...
Quote
To be complete, there is an identical issue with membergroups. It sets -1,0 by default and never the request into account.
The membergroups UI hasn't been updated to cope with the new boards stuff, so it's still using the old UI and logic. I suspect I'm going to end up mirroring the board->groups logic in group->boards (but using the boards instead of groups if that makes sense)
Quote
Tomorrow I hope I'll fix it. So many bugs left to look into... But I'll have much more time available.
So many bugs, but we'll get there. I'd link the appropriate strip I have in mind but it's not online at present and I don't know if I have an image copy on my HD anywhere.
4239
Archived fixes / DNS lookup can sometimes throw errors
« on March 19th, 2012, 09:06 PM »
2: dns_get_record() [<a href='function.dns-get-record'>function.dns-get-record</a>]: res_nsend() failed
Subs.php
Line: 1744

This is related to my custom lookup code, but need to check why it might throw this.
4240
Features / Re: Number of posts per page
« on March 19th, 2012, 08:37 PM »
Endless scroll brings its own problems, like being a PITA for search engines. I must find that rant I saw about the problems of endless scroll and why for content like ours, it's sorely out of place.

The problem for me is that I don't like cutting features that people do actually use, even if they're very occasional.
4241
Features / Re: Number of posts per page
« on March 19th, 2012, 06:59 PM »
Well, if I'm honest, I did plan to remove it anyway because it's an option that I really didn't think people knew about, let alone used, and I figured it would be better simply to have the admin-only setting which does have use, especially considering the ability to tweak performance with it.

I'm just trying to find ways to save on database queries is all, and this is certainly a big one: right now Likes will take at least one, often two, queries on thread view to make it work. The latter query is sometimes avoidable, sometimes not, but the first one is only avoidable if Likes is turned off. I was planning on caching by page (so caching likes for topic 1, page 1; topic 1, page 2 etc.) - but that's only viable if the caching can be cleared when a new like is added.

That's the thing: if I didn't do that, you could like a post, refresh it and you wouldn't see your own like for ~2 minutes because it would still be using the old cache.
4242
Features / Re: Number of posts per page
« on March 19th, 2012, 06:30 PM »
Quote
it could be better to people have more option to customize their look & feel stuff... But i don't think its %5 of the whole forum users. So i think it can became a ACP option. (even that most of forum admins will not edit it.)
It already IS an ACP option. Just as it already IS an option for users. I'm asking, essentially, whether it's safe to remove the user choice part or not, as it gives more control to admins and allows for optimisations that can't be done if the user has a choice.
4243
Features / Number of posts per page
« on March 19th, 2012, 02:49 PM »
How many of you realised you could configure the number of posts you see in a single page?

How many of you realised that you could set one thing as an admin and users can set their own separately? And that you can even turn off the user's ability to do so?

There's two reasons I'm asking this, firstly because I think it's a setting that can safely be ditched[1] and secondly, because I don't think I can make likes be cachable without this change.

(That's probably not a big deal for most of you, but it is for me, OK? :P Specifically, when you like something, you need to be able to expire that cache, and the only viable way to do that is based on the page you're on, e.g. topic 1, page 1, which only works if it's the same size for everyone, of course)

Thoughts?
 1. If anything, I'd suggest it *should* be ditched not only because of the user interface stuff but also the fact that you can performance tune it better doing it one-setting-fits-all and upping it from the default of 15 to more like 20-25 per page, it's more posts per page but fewer pages if that makes sense.
4244
Archived fixes / [Bug?] Re: Layout problem with long titles
« on March 19th, 2012, 02:28 PM »
I think it's already mentioned that this is exactly what is already done, and why that currently doesn't work perfectly...
Quote from Arantor on March 19th, 2012, 11:23 AM
Out of interest, what browser are you using?

The title itself is defined as using text-overflow, so that on browsers which support it (like Chrome), it will be auto-truncated and have ... added at the end automatically.
Posted: March 19th, 2012, 11:14 AM

Hmm, I have a feeling that it will require .postheader h5 to also gain a max-width declaration
The max-width will fix the other issues outlined, and make it work in some browsers that currently don't accept it.
4245
Archived fixes / Boards don't get their PURLs created properly
« on March 19th, 2012, 12:58 PM »
I believe Nao's already aware of this one, but when creating a board, its pretty URL isn't generated properly, causing all sorts of odd breakage when creating new boards.