AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] How to make private posts default and restrict access to public posts?

6 Posts
4 Users
0 Reactions
1,895 Views
Posts: 22
 msr
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@msr)
Eminent Member
Joined: 6 years ago
[#13008]

How to make private posts default and restrict access to public posts?


5 Replies
Alvina
Posts: 1857
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@alvina)
Member
Joined: 7 years ago

Hi @msr,

Please follow this topic, it helps you better understand about the wpForo Usergroups, Forum Accesses, and User Roles:

https://wpforo.com/community/faq/wordpress-user-roles-wpforo-usergroups-and-forum-accesses/


Posts: 22
 msr
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@msr)
Eminent Member
Joined: 6 years ago

Thanks, I have read that articles, and the articles linked within it.

However, the problem is that I cannot find a "Can set topic public" in Forum Accesses. I can only find a "Can set topic private". It assumes that I want as default that everyone can create public posts, and that I want to restrict private posting. However I have the opposite need also. I want as default that everyone can create private posts, and I want to restrict public posting. So I would like to see a "Can set topic public" in the Forum Accesses. Also I would like somehow to make all posts private by default. So I am looking for the opposite situation. Hope this was understandable.


1 Reply
Moderator
(@martin)
Joined: 10 years ago

Support Team
Posts: 1008
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@msr,

I'm sorry but there is no option for that. The "Can set own topic private" permission is designed for both. So all who can set own topic private, he/she also able to set it back public, there is no separate options for those.


Posts: 22
 msr
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@msr)
Eminent Member
Joined: 6 years ago

Okay.

Modifying layout: When reading a topic/post, there is a button (link) for switching between private & public. I'd like to hide that "eye image" and Public/Private link. Do you know where I can find that template? And is it possible to override it from my child theme, so that I can make changes without making changes in your files (which will get overriden when wpForo updates)?

Modifying function: I found the wpf_private hook/function. I was able to prevent users from switching private/public by exiting 0 in the function. I wasn't able to override it from my child theme's functions.php. Do you know how to do that, so that I won't need to make changes in your files (which will get overriden wehn wpForo updates)?


1 Reply
Robert
Admin
(@robert)
Joined: 3 months ago

Support Team
Posts: 10749
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@msr,

Please remove all customizations if those are not in the theme functions.php

You can disable "Private/Public" button for your users disabling the "Can set own topic private" permission in the "Standard Access" of forum accesses. I hope all your default users Usergroup are attached to the "Standard Access".

I'd recommend read the documentation of wpForo Usergroup - Forum Access combo in forum permission settings here: https://wpforo.com/community/faq/wordpress-user-roles-wpforo-usergroups-and-forum-accesses/


Share: