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

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Solved] Member Only Forums

7 Posts
3 Users
0 Reactions
6,506 Views
Travis
Posts: 4
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
(@tjohnston)
Active Member
Joined: 8 years ago
[#6199]

I am looking to restrict the forum entirely to non-registered users. This includes the ability to see user accounts. When an anonymous user visits the forum page, they should immediately see a login/register screen. 

I installed WP Approve User as well, haven't tested yet, to also require a site admin's approval to limit the audience.  


6 Replies
Robert
Posts: 10716
Admin
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
(@robert)
Support Team
Joined: 2 months ago

First of all your Forum menu URL should look like this:

 https://example.com/community/?wpforo=signin 

This URL automatically opens forum is user is logged-in, if user is not logged-in it'll show login form.

 

Second you should edit the Read only forum access and disable (uncheck) "Can view Forum" and "Can view Topic" permissions. The doc: https://wpforo.com/docs/root/wpforo-settings/forum-accesses/

 

Third, you should edit the Guest usergroup and disable (uncheck) "Can view members" and "Can view Profiles" permissions. The doc: https://wpforo.com/docs/root/members/usergroups-and-permissions/

 


Travis
Posts: 4
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
(@tjohnston)
Active Member
Joined: 8 years ago

Thanks Robert, 

I checked the "Solved" box on the question yesterday shortly after posting. I changed the permissions of the No Access, Read Only, Guest, and Customer - removing all checkboxes. 

Also the URL is /community by default... It doesn't redirect the user to a login page. It just shows the forum page with some stats but since I disabled access to the Main Topic/Forum, they don't show. 

If it's supposed to be /community/?wpforo=signin then it should not allow someone to just access /community. 


Robert
Posts: 10716
Admin
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
(@robert)
Support Team
Joined: 2 months ago

If it's supposed to be /community/?wpforo=signin then it should not allow someone to just access /community.

As I already mentioned this is a smart URL, it'll redirect to forum home for logged in users who have access to the forum. For non logged-in users this will show the login form.


Travis
Posts: 4
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
(@tjohnston)
Active Member
Joined: 8 years ago

I don't doubt it operates as a normal login URL redirect would. My point is that using the following URL while logged out, /community, doesn't redirect the anon user to a login page. If that is an expected action - it's not working. Or there are some settings that i need to further set in order for it to. 


1 Reply
(@anonymous3542)
Joined: 9 years ago

Honorable Member
Posts: 392
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

@tjohnston there is a WordPress function for this

https://wordpress.stackexchange.com/questions/131879/how-to-redirect-non-logged-in-users-to-a-specific-page


Page 1 / 2
Share: