Customizing SMF > SMF Coding Discussion
Topics only seen by starters?
(1/1)
improv:
Hello!
I was wondering if it is possible to have a board in which users can post a topic while their post stays hidden from the public and not for themselves or moderators/administrators.
In this way you'll have a private topic to do a conversation in.
I've been searching for something for a while but couldn't find out right settings.
Any help is appreciated ;)
Suki:
I made a mod that may suit your needs: https://github.com/MissAllSunday/PrivateTopics
Basically the topic starter can decide which users will be able to see the topic via the auto suggest feature.
It also provides a set of permissions so the admin can decide which member groups would be able to see all the topics by default. The admin can specify in which boards the mod will be enable.
improv:
That, Suki, is really awesome!
I tested it and it looks really good.
I have one question though. People have to "Type the user ID".
Can this be skipped and simply only show the post to all users which have permission to view it?
Thanks!
Suki:
I made it a long time ago and I can't remember exactly what happens if that field is left empty.
Now that I'm looking at the code, it needs quite a lot of changes to do what you ask since the main intention is to let unique users be able to see the topic, the permission system was something added as a secondary feature. As a work-around, you can just type your own name or your own ID just to fool the script and create the needed DB entry.
A somehow hackish solution will be to edit the post.template file to insert the User ID directly on the file so users doesn' have to type their own id.
May be a good feature to just separate the permissions and the unique users, unfortunately I have so many things in my to-do list already :(
The code is open source though, so anyone can modify it at will :)
improv:
Alright, I will check for a solution.
You should bring this to the mod section, its useful ;)!
Navigation
[0] Message Index
Go to full version