-
Author
-
November 4, 2017 at 22:07 #178923SwapptyParticipant
Why is my Forum still visible for non-logged in members/users on my site? How can I change this?
November 4, 2017 at 22:18 #178924Kieran_SQModeratorHi,
Please try installing this intermediate plugin developed by Paid Memberships Pro’s Jason Coleman that will enable a ‘Require Membership’ checkbox for each forum.
https://wordpress.org/plugins/pmpro-bbpress/
Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
November 5, 2017 at 00:27 #178927SwapptyParticipantHi,
Im allready using pmpro and this possibility is checked but still the page is accesissible for non-members.November 5, 2017 at 15:51 #178958Kieran_SQModeratorHi,
In that case I am going to ask one of our developers to look into this for you, you will need to update this ticket with admin credentials in a private reply to better assist you.
In the meantime please also contact Paid Memberships Pro support for a solution as they may already know of an issue.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
November 6, 2017 at 19:34 #179091RaduModeratorHi,
Here’s the solution for that
COPY CODE/* Prevent guest users to see bbpress forums */ function redirect_non_members_bbpress() { if (class_exists('bbpress')) { if (is_bbpress()) { wp_redirect(home_url(). '/register/', 301); exit; } } } add_action('template_redirect','redirect_non_members_bbpress',22);
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionNovember 7, 2017 at 16:08 #179151SwapptyParticipantHello,
I’ve copied the code exactly the way you said, but its not working.
I only see the text of the code on top of my pages.November 7, 2017 at 19:47 #179194RaduModeratorCopy the code from here : https://pastebin.com/raw/AX85dJ4i
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 8, 2017 at 11:42 #179246SwapptyParticipantHi,
I had to delete the code back again.
I started getting an error about too many redirects.
Also when i typed the url http://www.swappty.com, it was redirecting me to swappty.com/register and showing the error about too many redirects.November 8, 2017 at 17:32 #179271RaduModeratorHi,
There seems to be a mistake… sorry
Just replace with this code
https://pastebin.com/raw/JaVGeuc2
with the new code only guest users will be redirected to the register pageYou can replace the code via FTP by going to wp-content/themes/kleo-child/functions.php
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 9, 2017 at 11:03 #179339SwapptyParticipantThat is solved but now when I am logged in and i click on Forum link, i’m beeing redirected to members homepage (Activity). So i cannot see the Forum page.
November 9, 2017 at 17:08 #179371RaduModeratorI’ve tested the snippet before providing it, and when i’m guest and i access
GUEST:
http://mydomain.com/forums/ -> I’m redirected to http://mydomain.com/register/Logged in user
http://mydomain.com/forums/ -> I’m not redirected, it remains on forums page.
Make sure your issue to not be caused by some cookis or cache or third party plugin
So using the snippet that i have provided to you cannot reproduced the issuee that you describe
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 10, 2017 at 10:46 #179434SwapptyParticipantYou are right. I had to clear cache for it to show oke.
Thanks.
Greets
November 10, 2017 at 17:03 #179459RaduModeratorGreat
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.