Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Permissions Questions
Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2013 - 5:01 pm

Is there a combination of permissions that would let users only see forum topics they start?  When I give the permission "Can view only own posts and admin/mod posts", they can still see the TITLES of posts others start, and they can even see the admin responses, they just can't see the contents of the posts others make.

 

What I want is the ability to have a private feedback forum where people can go in and start threads, and I can respond to them, and no one can see anyone else's posts.

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2013 - 6:48 pm

There is really not a way to do that right now. It has been discussed but hasn't gained a lot of traction. In most cases people are just using Private messaging for that.

Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2013 - 7:05 pm

how hard would it be to add custom functionality to make the existing option "Can view only own posts and admin/mod posts" work that way?  Any examples of vaguely similar modifications to point me to?

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2013 - 11:17 pm

I have not seen anyone, including myself and I have done hundreds of custom themes, that have made a similar modification.

I would suggest you look into having a custom plug in created. Here's a link to info on that. https://simple-press.com/custo.....-services/

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 27, 2013 - 5:07 am

I think you could almost achieve this with filters but it would need several of them and some nifty SQL clauses...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 27, 2013 - 7:33 am

Though it would be inefficient - could you not just jump into the loop where the topics are shown and just throw an if statement around the display logic? 

Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 27, 2013 - 7:34 am

 

Yellow Swordfish said
I think you could almost achieve this with filters but it would need several of them and some nifty SQL clauses...

Can you point me in the right direction for one of the filters and I'll see what I can put together.

 

Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 27, 2013 - 7:56 am

ok - last question for now :-)

What is the intended use for the option "Can view only own posts and admin/mod posts"?  What I'm requesting is what I expected, I'm just wondering why the option exists in it's current form.  Perhaps I can re-structure the problem in my head!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 27, 2013 - 9:05 am

#6: That would give you some nasty display issues. Like pages with nothing to show if no topics matched your criteria.

#8: Many permissions started life due to user request and I believe this may have been one of them. To be fair, as far as I am aware it does do what it says - surely it just doesn't do it in a way you expected or prefer?

#7: Let's take an example. In the /forum/content/classes folder you will find the files that control the different forum views and that populate the data objects used to display these views. Take the file sp-topic-view-class.php. This, as it's name suggests, is used to populate the data in the fiorum's topic view - the list of topic for a specific forum.

Around line 250 you will find the main SQL query being constructed that is going to get the topics needed for the page. This uses our own database query class. Just before the select is invoked you will see the filter 'sph_topicview_query' defined which is available for any user or plugin to manipulate the query as they wish. In this case such a filter could modify, replace or add to the query WHERE clause for example so that only topics whose first post was made by the current user were returned.

Note- however - that this would only satisfy the one view. Each view would require it's own crafting.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sarah Fernandezlopez
Member
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2013 - 10:27 pm

Thank you!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625