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
2236
Features / Re: Changes to banning
« on December 15th, 2012, 11:16 PM »
Huh, no-one had anything to say. Well, I have something that might prompt a few comments :D

Yes, this is the way the new look banning system is coming together.
2237
Features / Re: Purging users pending approval, and some other stuff
« on December 15th, 2012, 10:05 PM »
I figured but wanted to be sure :)
2238
Features / Re: New revs
« on December 15th, 2012, 10:02 PM »
(1 file, 1KB)

Revision: 1794
Author: arantor
Date: 15 December 2012 21:02:02
Message:
! Bah, forgot this one last time. (Subs-List.php)
----
Modified : /trunk/Sources/Subs-List.php
2239
Features / Re: New revs
« on December 15th, 2012, 10:01 PM »
(1 file, 1KB)

Revision: 1793
Author: arantor
Date: 15 December 2012 21:00:24
Message:
! Fixed generic list not being able to handle timeformat or comma format properly, though I did actually harmonise them entirely with the other types, and fixed the only instance I could actually find of using that. Suggested ages ago by Live but at the time I never understood the benefits or practicalities of it. (Groups.php, Subs-List.php)
----
Modified : /trunk/Sources/Groups.php
2240
Features / Re: Purging users pending approval, and some other stuff
« on December 15th, 2012, 08:44 PM »
It would have to be visible only if *email* approval is selected, since admin approval is totally up to the admin and I don't think it's fair to purge that on a schedule.
2241
Plugins / Re: Extending the moderation filter actions when posting
« on December 15th, 2012, 08:43 PM »
* Triggering the popup is easy. Create a rule that has moderate or prevent as its action, and you'll get an extra option at the bottom to put in a message for the different languages. Put something in there. This is so when a rule triggers, the admin can explain to users what they did wrong. The popup is just a convenience in the admin area to show the admin what all the different languages are. (I can add screenshots of the whole process if that would help)
Quote
My problem comes from the fact that it only shows the Add button once you focus out of the box.
It was written that way, by me, deliberately back in February and it has *always* been that way since day 1. It's simply to not allow the user to actually add anything until there's something valid to add.
Quote
Also, the 'Informing the user' part shows up after you select the second dropdown. It should either show up before the condition list, or be shown only when the 'Save this rule' button appears.
No, it shouldn't, given that it only applies in two of the six possible things you can actually do in moderation filters. Locking/unlocking, pinning/unpinning do not trigger this message. Again, entirely by design.

As I see it, none of this is a bug. It's working exactly as I designed it to. Whether that means the design is wrong is a matter of debate, but if it changed, a lot more stuff has to be written to explain to the user what they're doing wrong. This way, they can't actually add a rule without conditions to it, they have to come up with a valid condition for a rule to add it to the rule and there must be a valid condition attached to be able to add the rule.
Quote
And, by the way, what prevents us from renaming the Help template to 'Popup' and 'help_text' to 'popup_text'? I actually did this internally last night, before my network problems started... Because I'm feeling that the help popup is just one of many.
It's still primarily used for the help text as far as I know (though the new say/ask might use it, haven't checked), and the only other uses are this popup and the who-liked-this popup, both of which are somewhat misappropriation of the help template by keeping the display logic inside the action itself rather than delegating it to some kind of template.
2242
The Pub / Re: Logo Madness
« on December 15th, 2012, 08:37 PM »
I don't think it's about the size or the colours, it's simply that it is just too reminiscent of the Nike swish and there's not a lot you can do about that without changing the fundamental idea.
2243
Off-topic / Re: Programming styles, and does it really matter?
« on December 15th, 2012, 08:33 PM »
What I'm worried about is more people writing off Wedge (and other of the free platforms) because it doesn't match up to some theoretical ideal of how code should look. Enough people write off the free platforms as being 'toys' and not 'real' software as it is.
2244
Features / Re: Purging users pending approval, and some other stuff
« on December 15th, 2012, 05:58 PM »
1) Yes, admins would be able to set the number of days. I have no idea where this would be configured, though. I'm thinking 3 days would be the default.

2) I've already added the new column into my local copy ready for later use.

3) There is one downside to doing that, and that's the fact that the 'location' would not be translated into other languages. With profile fields normally this is not a big deal because most of the time the profile fields are set names that won't translate, e.g. Facebook. And for single-language communities of course it's no big deal. But multi-language communities might find it slightly jarring... but all in all that seems like a minor compromise.
2245
Off-topic / Programming styles, and does it really matter?
« on December 15th, 2012, 04:55 AM »
So, I've been reading up on vB 5, mostly out of the trainwreck mentality, and a bit of curiosity about how it's shaping up[1] and one of the things I've seen is commentary from developers doing a sort of peer review.

It also brings to mind a conversation I've had in the last couple of days, about coding style, where I said that a fair chunk of Wedge's code is written 'SMF style', which is a completely fair assessment from my perspective; Nao and I spent so long writing for/with SMF that it's not really surprising that it has shaped how we do things. There are some more modern things - there are more classes and things like exceptions in the newer code, but it doesn't change the fact that it's still carrying a lot of SMF structure and mentality to it.

Now, there are some interesting debates about OOP and procedural coding out there (and we are more OOP than the past) but my real point is... does it actually matter?

The only people who are going to see the code are the people who are going to modify the code, either directly or through a plugin - and of course us, in development and bug fixing. Whether something uses OOP or not should not be a concern for most people - and even for the people who do have a concern because they use the code, I'm not entirely sure most of them understand all the ramifications - heck, I'm not entirely sure I do some of the time.

Having classes to bundle functionality can be important. But it doesn't have to be as important as some of the pundits and reviewers say it is.

What I do know, and believe in, is using the right tool for the job. OOP is a tool, nothing more, but a lot of the 'but it isn't OOP' stuff seems to drift into the realms of 'when all you have is a hammer, every problem looks like a nail'. There's good OOP, there's bad OOP, just as there's good and bad procedural code, and we have a strange mish-mash, some of which we've inherited and some of which we've fixed.

But how many people care? As long as it works, does it actually matter that much?

/discuss
 1. The answer is badly. Even fresh installs are taking 60+ queries to do simple pages.
2246
Features / Re: New revs
« on December 15th, 2012, 12:49 AM »
(1 file, 1KB, one line!)

Revision: 1792
Author: arantor
Date: 14 December 2012 23:49:16
Message:
! modfilter_msg_popup was not properly used. This isn't pretty but it's OK for now, we can make it prettier later when people who aren't us use the feature. (ManageModeration.php)
----
Modified : /trunk/Sources/ManageModeration.php
2247
Features / Purging users pending approval, and some other stuff
« on December 14th, 2012, 10:07 PM »
So, working on the whole nature of is_activated spawns a few ideas.

1) Purging users pending approval
One of the things that I hear regularly from other forum software is that users tend to delete users who haven't approved their email in a couple of days. To me, this makes a fair amount of sense, if a user hasn't activated their account within a day or so of signup, odds are they're not going to. So, it also makes sense to me, then, that after a day or so, we could automatically purge that for admins.

I don't see this causing significant extra load anywhere, nor do I see it causing any other problems at this time, but I'm opening the floor to discussions and thoughts on the subject.


2) User re-agreeing to agreement (required re-agreement)
This is something I've wanted to add for a while, and I mentioned it in my other topic. Mechanically all you'd do is take any user that already got approved (is_activated state 1) and update it to a new state (provisionally state 6) when the details change to force them to agree to it again, and since it's wired in at account level, they'd *have* to do it to continue.

The problem with this is the case of users who are not currently state 1, all the little fringe cases where their account is somewhere else:
* state 0 - user has signed up and in the time between signing up and approving their account, the terms changed
* state 2 - user is a current member but has changed their email address
* state 3 - user is waiting for admin approval, much like state 0, it's possible the terms changed between their registration and admin approval
* state 4 - user is waiting for account deletion, probably not a problem!
* state 5 - user is waiting for COPPA approval, this is probably the most likely problematic, a user subject to this is very likely going to have to wait some time to actually get their account approved as they would have to send the form through the post, and that makes it more likely to have changed

Actually now that I really think about it, all we really need to do is track their registration time against the time the agreement was last edited, and if they registered before the agreement changes, move their state to 6 rather than to 1. In fact, if we do it as a 'last change to status' column in general, that problem goes away in its entirety. Talking it through really does work!


3) We could drop the Location profile field and make it a custom profile field.
It's not a thing I've seen that much, dropping from the core and making it a CPF means it's not cluttering up the members table, and it's only in use if someone actually wants it on their forum, rather than being on by default and only able to softly disable it.
2248
Features / Changes to banning
« on December 14th, 2012, 06:20 PM »
This is more of a FYI and note in case it spawns bugs (it might introduce issues from the converter, I guess, as well as any place I didn't already catch)

I originally planned to overhaul is_activated in a different way, a long time ago, but I realised that it's sort of unnecessary (and not as performant as I'd hoped), so here's the plan for what is_activated means going forward. (There are so many fringe cases in SMF/Wedge around this >_<)

0 - user has registered, waiting for email activation
1 - user has registered and is active
2 - user has previously registered and is active but has changed their email address
3 - awaiting admin approval
4 - user is pending deletion
5 - awaiting COPPA approval

10 -> 19 - as 0 - 9 but with 'discourage' (i.e. Annoy User)
20 -> 29 - as 0 - 9 but banned on top

In other words, all I've done is move what was previously 10+ being banned to being 20+, with 10-19 being the new annoy facility. I also believe this is the only complete list of what all the states in SMF do for is_activated, I don't believe anyone previously actually figured it out (not even me, my original topic mentioning the changes I had originally planned didn't note states 2, 3 or 5, and until today I wasn't actually sure what state 2 did)

It is also possible additional statuses will be added, I'm likely going to add status 6 to mean 'user has to re-agree to the user agreement' but not just yet ;)
2249
The Pub / Re: Looking for volunteers to test the Wedge private alpha!
« on December 14th, 2012, 04:56 PM »
And you'd be quite happy running a public forum that has no working ban facilities at this time?
2250
The Pub / Re: Current status of the beta?
« on December 14th, 2012, 04:55 PM »
Note that we have quite high standards, which is why we're not just giving it out to everyone ;)