View Topic Permissions

spoogs

  • Posts: 417
View Topic Permissions
« on July 2nd, 2011, 03:28 AM »
Is this something that is/could be considered for Wegde?

I would argue that these permissions were missing in SMF while rather vital to some forums (I argue this of course because it was something I needed). There are cases where you want a user to see that a board exists but not allow them to enter said board (maybe until they reach a certain post count or subscribe), also there are times usually when collecting sensitive information that you would want a user to view only the topics they started in a particular board while allowing the appropriate members (more than likely your staff) to be able to view all the topics.

If there is or could be any consideration for this what I would lean towards is View Own/Any/None
Own = user can only see the topics they created in that board along with the sticky topics
Any = user can view all topics in that board
None = users cannot see any topics in that board including stickies (this would take care of what the look but no read, view/enter board permission mods attempt to do)

@Arantor I know you and I spoke a bit about this a while back by PM I think where you pointed out that these kind of permissions could trip up certain mods such as portals. I would argue that if these permissions existed in the core it would be up to mod authors to respect them when coding and up at admins that use the Own/None permission to avoid mods that trip over them.

While I understand that there might not be a vast amount of admins that need such permissions the few that do are usually left in the cold. I've had to do some rather creative mod handling to achieve the desired effect in SMF. I can happily say however that SD2.0 has helped me mitigate much of that creativity.

Now I'm not saying this must be or should be included in Wedge, I'm only curious as to whether it has come up for discussion and what was the outcome if any. If it hasn't been discussed, does it seem like something worth considering?
Stick a fork in it SMF

chilly

  • cookies?
  • Posts: 31
Re: View Topic Permissions
« Reply #1, on July 2nd, 2011, 08:37 AM »
sounds interesting ;)
looking forward to read from nao / arantor

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: View Topic Permissions
« Reply #2, on July 2nd, 2011, 09:48 AM »
Well, it is something we've discussed. Noisen's code base has it, for example.

Implementing it into SMF as a mod raises issues with mods not being aware of it, making it core means mods not being aware of it isn't really an issue - core features, mods can work with, with realistic expectations of what is available, etc.

Incidentally, Nao's implementation is more thorough than simple permissions, it can be set per topic.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,667
Re: View Topic Permissions
« Reply #3, on July 2nd, 2011, 09:52 AM »
Quote from Arantor on July 2nd, 2011, 09:48 AM
Incidentally, Nao's implementation is more thorough than simple permissions, it can be set per topic.
That's the same {query_see_topic} you mentioned?
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: View Topic Permissions
« Reply #4, on July 2nd, 2011, 09:54 AM »
I'd implement it as that, Noisen is done slightly differently.

spoogs

  • Posts: 417
Re: View Topic Permissions
« Reply #5, on July 2nd, 2011, 10:00 AM »
Thanks, that's good to know.

I take it, that's the little dropdown box while creating a topic with options in French that translates to something 'my friends, only me...etc' if my poor memory of the little french I know is correct.

Rather interesting to be set a topic level rather than board level, at least that should cover all the bases then.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: View Topic Permissions
« Reply #7, on July 2nd, 2011, 12:09 PM »
Quote from Arantor on July 2nd, 2011, 09:54 AM
I'd implement it as that, Noisen is done slightly differently.
I don't get that answer... Noisen style or not Noisen style in Wedge?

query_see_topic is one of these things I'm very happy with, regarding my work on Noisen. The goal of Noisen was really to build a blog+forum platform where anyone would be able to create their own blogs or forums, own them, do with them as they wish.

Which reminds me, OMG! I completely bypassed this in the last few months... I originally implemented hundreds of kilobytes of custom code from Noisen into Wedge, and then I stopped at around 480KB left to implement, and sent the file to Pete so he could look into it and continue my work (if only because at the time I needed a serious break). He implemented a few more of the features and then stopped.

Pete, I just checked and my file was lost during my hard drive apocalypse. I seem to have a backup though, in another place, dated November 22, 2010 and 467KB in size. Can you confirm this is it?

I think I *really* should finish the implementation ASAP. I want it to be in Wedge 1.0. After all, the code is already written -- it just needs to be severely refactored for Wedge... But it's written, it works and I view it as solid because it's been in use for the last 3 years over at Noisen without any issues. (e.g. I actually made a "me-only" topic that if anyone could find, they should report to me and I'd have a present for them. No one ever contacted me about it.)

It's interesting how, in retrospect, much of the features I originally wanted to put into Wedge (i.e. the stuff that gave me the strength to start work on Wedge), were finally put aside in favor of things I'd never have considered originally... It's not even lack of interest. It's just that a whole world suddenly opened in front of me and I had to get a taste of it ;)

But Wedge without its intricate blog system is no Wedge to me. It loses its purpose.
Per-topic permissions should be in the Feature list board. That they're not over there shows I kinda lost my way in the process! It's my thing, I should be doing it!

Well, as soon as I'm done with the Wine redesign, of course!

PS: comment from Milady yesterday night when I asked her which Wine design she preferred: "the new one". Then I asked her, "be more specific, this one or that one?" - "that one." - "but... That's the old one." - "Oh, stop fucking around with your stupid Wedge and go to bed already." :^^;:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: View Topic Permissions
« Reply #8, on July 2nd, 2011, 12:18 PM »
I'd implement it as a variable, injected through {query_see_topic} rather than injecting a variable as Noisen does, by physically concatenating a regular variable into the string.

I do have the patch stuff, didn't you put that online originally? 467K sounds about right, named the_big_kahuna.rar. Not at my PC right now, can't check for sure.

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: View Topic Permissions
« Reply #9, on July 2nd, 2011, 03:54 PM »
Quote from Arantor on July 2nd, 2011, 12:18 PM
I'd implement it as a variable, injected through {query_see_topic} rather than injecting a variable as Noisen does,
No no, I do use {query_see_topic}...

As I was surprised by your post, I had a look into it, and indeed I use $user_info['query_see_topic'] in a suspiciously large number of places, but I also use {query_see_topic} 90% of the time really.
There's a possibility I originally used the $user_info version only and then went for the variable later and midway through my changes I thought of something else and then forgot to finish my conversion... I'm not exactly sure, I don't remember, it's been so many years already.
Quote
I do have the patch stuff, didn't you put that online originally? 467K sounds about right, named the_big_kahuna.rar. Not at my PC right now, can't check for sure.
I shall have a look.

Maybe it is time for me to resume my work on making this patch smaller...
And maybe even start with query_see_topic. I mean, it's an awful lot of these 467KB!

Dramber

  • Meh
  • Posts: 7
Re: View Topic Permissions
« Reply #10, on July 18th, 2011, 06:11 AM »
Quote from spoogs on July 2nd, 2011, 03:28 AM
While I understand that there might not be a vast amount of admins that need such permissions the few that do are usually left in the cold. I've had to do some rather creative mod handling to achieve the desired effect in SMF. I can happily say however that SD2.0 has helped me mitigate much of that creativity.
I am one of those that are left in the cold and I am very excited to see how Wedge will handle these kinds of situations.
In the short term though I am very curious on which mods you used in 2.0 to achieve the desired effect.

My situation is I manage a couple of gaming sites[1] and we have an application process for new members in each game. Currently I use the Custom Forms mod[2] to create a post from the prospect in a restricted forum. Then staff can go over the application to determine if they are a good fit for the guild. This set-up works but it would be much easier if the applicant could see their post and respond to questions or see the status of their app.

 1. newdawnguild.com and circleofthephoenix.com
 2. http://custom.simplemachines.org/mods/index.php?mod=1279

spoogs

  • Posts: 417
Re: View Topic Permissions
« Reply #11, on July 18th, 2011, 06:24 AM »
I had this mod updated but the agreement with the person that did the upgrade was that it cannot be shared or distributed in anyway, along with this one and custom form mod creates what I wanted.

The closest you'll get now is SimpleDesk as you can set the permissions so users can only see their tickets while staff can see all... or almost any variation of permissions you'd like.