Wedge

Public area => The Pub => Features => Topic started by: Arantor on February 27th, 2012, 01:41 AM

Title: Board access
Post by: Arantor on February 27th, 2012, 01:41 AM
OK, so this has been driving me nuts for months.

Some of you may know that we integrated the ability to split board viewing (on the board index) from access a while back, much as View Only Boards mod lets you do (or, the mod I wrote for any of you who remember that, haha[nb]Those of you who don't, it turns view/enter into physical board permissions)

On top of that, I actually made it so you could deny access to boards as opposed to just not allowing (e.g. if you wanted to have a banned group who could only access one board to plead their case)

But I couldn't figure out the interface to make it work, and I'm still not 100% about this but it's the nearest I've got to anything workable.

The first picture is the default that you'll see on making a new board - keeping in simple (where view = access, and no deny). The second picture turns on view != access, the third turns on deny as well (but of course you can turn on deny separately to view != access)

Thoughts?
Posted: February 27th, 2012, 01:40 AM

Sorry that it's a bit confusing with the attachments, I probably should have used the gallery >_<
Title: Re: Board access
Post by: Arantor on February 27th, 2012, 03:01 AM
I made it a bit prettier, too.
Title: Re: Board access
Post by: spoogs on February 27th, 2012, 04:07 AM
I do like this approach better than the View/Enter mod. If I'm understanding correctly this will be controlled by board access rather than "permission profiles"?
Title: Re: Board access
Post by: Arantor on February 27th, 2012, 04:10 AM
Yes. The view/enter mod was an ugly hack to be able to support denying without hacking up too much of SMF's code.

This allows for everything that View/Enter mod does - but without doing it as a permission, plus it's configured from the board directly, and it's much cleaner in the process. So you can do arbitrary view/enter settings per board without having to mess around with profiles.
Title: Re: Board access
Post by: spoogs on February 27th, 2012, 04:14 AM
Very cool... I'm all for it, less profiles to create.
Title: Re: Board access
Post by: Arantor on February 27th, 2012, 04:18 AM
Yup :)

The way it's set up is that it's intentionally closest to how you'd do it in SMF - simplest case (either a group can see/enter a board or they can't), but that it's easy to make it more complex if you need to. (SMF does get some things right :P)
Title: Re: Board access
Post by: Dismal Shadow on February 27th, 2012, 07:53 AM
So we are seeing a Private board but cannot enter if you set it so?
Title: Re: Board access
Post by: Nao on February 27th, 2012, 10:52 AM
Amusingly (or not!), I always thought this was already implemented by you, Pete... :P
Title: Re: Board access
Post by: Arantor on February 27th, 2012, 01:05 PM
Quote from Nathan Sparrow on February 27th, 2012, 07:53 AM
So we are seeing a Private board but cannot enter if you set it so?
If you want to, yes. Or you can have boards that are invisible but accessible. And you can have groups that are prevented from seeing/entering regardless of any other groups a user might be in.
Quote from Nao on February 27th, 2012, 10:52 AM
Amusingly (or not!), I always thought this was already implemented by you, Pete... :P
It's been on my todo list for ages, only last night I finally figured out how to make a reasonably sane UI for it.
Title: Re: Board access
Post by: Nao on February 28th, 2012, 12:05 AM
With that kind of granularity, I'm surprised you could even consider not allowing topic privacy for multiple specific membergroups and contact lists... I'm sure that's something you'd have brought up less than a few months after the feature was implemented :P
Title: Re: Board access
Post by: Arantor on February 28th, 2012, 12:08 AM
Quote
With that kind of granularity, I'm surprised you could even consider not allowing topic privacy for multiple specific membergroups and contact lists... I'm sure that's something you'd have brought up less than a few months after the feature was implemented
The thing is, it's not really that granular, not compared to topic privacy - this is quite coarse in the scheme of things. But like most things, a certain amount of this is scratching my own itch, I have need of some of these things ;)
Title: Re: Board access
Post by: Nao on February 28th, 2012, 12:10 AM
Hey, feel free to scratch :) We're natural born scratchers!
Title: Re: Board access
Post by: Arantor on February 28th, 2012, 12:11 AM
:D

That's why I'm currently working on the chess mod, it's something I've wanted for a while (and while there is an SMF mod, it's a shade buggy in places and I don't like how certain things were done in it)
Title: Re: Board access
Post by: Nao on February 28th, 2012, 12:31 AM
Yep, I remember that...

Okay, time for bed. I'm gonna get killed otherwise :P
Title: Re: Board access
Post by: Arantor on March 4th, 2012, 03:17 AM
Argh, I just remembered there's another interface for group->board access - the edit-membergroup screen. I suspect I'm basically going to reimplement the same code, except instead of using group names, it'll be board names, but it's too late and I'm feeling too ill to tackle this properly tonight.
Title: Re: Board access
Post by: Nao on March 4th, 2012, 11:48 AM
Ah yes. No fun!
Title: Re: Board access
Post by: Arantor on March 4th, 2012, 06:25 PM
Oh, crap, I also need to fix Detailed Reports > Boards.