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
4366
Features / Re: New revs
« on March 14th, 2012, 04:52 PM »
(17 files, 3KB)

Revision: 1464
Author: arantor
Date: 14 March 2012 15:52:13
Message:
! Removed "Show open report count in forum header" from moderation center preferences, seeing how we don't use it and it's driven by the menu instead. Important: if you previously had moderation settings set, it's going to be broken, so make sure to either clean out mod_prefs in the members table, or at least strip the leading value from something like 1|npgrw|1 to npgrw|1. (ModerationCenter.php, Profile-Modify.php, Report.php, ScheduledTasks.php, Subs.php, ModerationCenter.template.php, ModerationCenter language file)

! Removed some duplicate settings pertaining to drafts and added a note to another area to indicate that there were related settings available. (ManagePosts.php, ManageSettings.php, ManageSettings language file)

! Language string clean up (ManagePosts.php, ManageSettings.php, ManageSmileys.php, Admin+ManageSettings+ManageSmileys language files)
----
Modified : /trunk/Sources/ManagePosts.php
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Sources/ManageSmileys.php
Modified : /trunk/Sources/ModerationCenter.php
Modified : /trunk/Sources/Profile-Modify.php
Modified : /trunk/Sources/Report.php
Modified : /trunk/Sources/ScheduledTasks.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/Themes/default/ModerationCenter.template.php
Modified : /trunk/Themes/default/languages/Admin.english.php
Modified : /trunk/Themes/default/languages/Admin.french.php
Modified : /trunk/Themes/default/languages/ManageSettings.english.php
Modified : /trunk/Themes/default/languages/ManageSettings.french.php
Modified : /trunk/Themes/default/languages/ManageSmileys.english.php
Modified : /trunk/Themes/default/languages/ManageSmileys.french.php
Modified : /trunk/Themes/default/languages/ModerationCenter.english.php
Modified : /trunk/Themes/default/languages/ModerationCenter.french.php
4367
Features / Re: Image resizing for non-uploads
« on March 14th, 2012, 04:25 PM »
Oh, yes, yes it is. That's why I asked what it would take to make it work because I'll sit and do it for you ;) I just don't know enough (anything?) about Zoomedia's internals and figured you'd be able to point me in the right direction.
4368
Features / Re: Privacy options
« on March 14th, 2012, 04:12 PM »
Quote
But, because membergroups are not usually exclusive, if you don't apply any setting to a membergroup, Wedge won't even bother with it... Basically, if id_owner > 0, then Wedge should reject them from the admin area when it comes to applying special settings to them.
Cool, that works for me. As long as the manage membergroups area doesn't allow access to contact lists, and contact lists don't allow for editing regular membergroups, I'm happy with that.
Quote
I'm more interested in determining whether you think that performance-wise, having a separate membership table would be better for membergroups overall (not only for contact lists.)
It's a tough one to call, because there's more to it than topic privacy.

Namely, the way permissions are generally loaded would have to be rethought, as also whether we store the user's primary group in their user record too. What we'd end up doing is pushing the permissions check out of the loading the member's main record, and pushing it off to loadPermissions where we'd end up querying for user's groups LEFT JOIN permissions table for the permissions for those groups (since that's the only way to identify users in group 1, who don't have any entries in the permissions tables otherwise)

And of course you have to be careful not to join the contact lists for the purposes of permissions.

That part is mostly not a *huge* deal in performance, but where it will make a difference is topic privacy as you suspect. The problem though is that I don't know *how* it's going to make a difference. Honestly I don't think there's any better way than to benchmark it and see what happens.

What I do know is that it will have a beneficial impact on handling users who want to implement shared forums (multiple forums with a single members table) to not have the groups tied explicitly to users in the members table.
Quote
Hmm... About that, I have a feeling it could be complicated to implement. And if it doesn't help with performance but only with UIs, I would recommend against it.
While the UI aspect is the primary aspect, there is a slight performance gain to be had, because you don't have to go through and update folks' post count groups if you change them, which is an ugly query. It also means you don't have the same management issues in other respects... people that don't want post count groups have a habit of deleting them.

That might not sound like a problem but I've seen WAY too many cases where people delete all the post count groups. That wouldn't be so bad if it weren't for the problem that results where it fucks groups up leading to any user anywhere having full admin access because of the way the post count assignation query works.

I'd almost argue that the UI simplification it would bring for setting permissions would actually be enough.
4369
Features / Re: Image resizing for non-uploads
« on March 14th, 2012, 03:28 PM »
I suppose that provided we perform the injection of zoomedia.js in place of the current code (i.e. doing the inclusion once we hit such an image) we would retain that benefit...
4370
Features / Re: Privacy options
« on March 14th, 2012, 03:27 PM »
Quote
My idea is just that contact lists and membergroups are one and the same thing. They're groups of members. One member can be in multiple groups, and a group can hold multiple members, so it's a many-to-many relationship, and I don't really see why SMF's membergroup memberships are never kept anywhere but in the members table.
OK, last point first, that's mostly historical. MySQL until later on didn't have subselects at all, and we even removed the block on subselects in the code. Not only that, but there's also a performance consideration - going back, the belief was fewer queries = better, and if you can't do subselects, the best method is to denormalise the data somewhat and do what was done.

As far as membergroups vs contact lists go, yes, they're fundamentally the same thing - lists of users - but membergroups have a lot more to them. There's multiple types of membergroups, they have badges, they have PM limits and permissions and *stuff* attached to them. They also get the distinction of having three separate elements of the members table (primary group, post count group, other groups)

I have no real objections to making contact lists and membergroups basically the same thing, provided that proper protections are taken to ensure that the two are not permitted to overlap (e.g. you can't edit or view a contact list anywhere you're not supposed to be able to and vice versa)

In fact, that reminds me of something I considered... I considered the possibility of ditching post count groups as they are currently implemented and reimplementing it separately so that they're not physical groups, but instead a separate entity (that has badges etc.) and rearranging permissions so that they're set up based on being granted at different post counts rather than by groups. Needs more thought to explain what I have in mind but it would simplify this setup and move it closer to what you're looking at doing.
4371
Features / Re: Privacy options
« on March 14th, 2012, 02:58 PM »
I guess 1MB[1] is a big enough container for most sites, but it's really not that useful when it's scaled up because you just can't index that field in any fashion forcing a table scan to query it.
 1. Yes, I know mediumtext is defined as 16MB, it's not a typo. In the real world, there is a cap on the query packet size, which on most hosts is set to 1MB. There are also other limits that may come into play too.
4372
Features / Re: Privacy options
« on March 14th, 2012, 02:53 PM »
Which is why it can't really be done that way :(
4373
Features / Re: Privacy options
« on March 14th, 2012, 02:49 PM »
Yes, and that's the point.

If a user wants to restrict who can see a topic themselves, they want control over it, i.e. setting the list of people who can see it. If they don't have control over that list, why would they want to use it?
4374
Off-topic / Re: Another WIP
« on March 14th, 2012, 02:29 PM »
I have thought about doing a Pirate language pack, actually. There's just an awful lot of translation to do...

And, incidentally, a Pig Latin one.
4375
Features / Re: New revs
« on March 14th, 2012, 02:03 PM »
(7 modified, 4KB)

Revision: 1462
Author: arantor
Date: 14 March 2012 13:01:57
Message:
! OK, so my original plan of killing off Features and Options has been rethought to form General Options. The site's title is there now along with the site link (and a new magical option). (ManageServer.php, ManageSettings.php, index.english.php, Admin+index+ManageSettings language files)
----
Modified : /trunk/Sources/ManageServer.php
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Themes/default/index.template.php
Modified : /trunk/Themes/default/languages/Admin.english.php
Modified : /trunk/Themes/default/languages/Admin.french.php
Modified : /trunk/Themes/default/languages/ManageSettings.english.php
Modified : /trunk/Themes/default/languages/index.english.php

@ The 'magical' option isn't anything exciting, it just means that the forum title can now also be linked to the site URL given, should you want to do so. Another very common request foiled by 5 minutes of work in the core.
4376
Off-topic / Re: Introduction
« on March 14th, 2012, 01:49 PM »
So, let's say that something happens and the date of tomorrow is missed, what will be your next snide comment about things?

That's the thing that irritates me: it seems like the only things you say on here are comments about how you can't have Wedge yet, I don't see any other comments about any of the things we've done, nor suggestions for things we could do, only about how you 'lose hope' and so on.

Consider how much time *we've* invested, is it really too much to ask that you contribute something more than whining considering what you're going to get at the end of it?
4377
I must have had a weird teenage life, I didn't have any movie star aspirations...
4378
Features / Re: Image resizing for non-uploads
« on March 14th, 2012, 01:17 PM »
Well, if it were expected to be used generally, it might be a candidate for inclusion into script.js, then it's just a matter of calling it?
4379
Off-topic / Re: Introduction
« on March 14th, 2012, 01:12 PM »
And now if for *any* reason that date is missed, because of life or anything else, you'll complain, because I know what you're like.

Never mind that, for example, I'm currently in the process of moving house in a very short space of time due to personal matters. No, shit like that doesn't matter as long as you get what you think you're entitled to.
4380
Features / Re: Privacy options
« on March 14th, 2012, 12:54 PM »
That's the thing, it's about control, and who has what control.

The admin can set up who's in what groups, not the user. So it seems a bit odd to expect the user to use that setup, whereas if they're using buddy lists, they have control over who sees their topic.