This topic has 13 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #178923
     Swappty
    Participant

    Why is my Forum still visible for non-logged in members/users on my site? How can I change this?

    #178924
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #178927
     Swappty
    Participant

    Hi,
    Im allready using pmpro and this possibility is checked but still the page is accesissible for non-members.

    #178958
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #179091
     Radu
    Moderator

    Hi,

    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 solution
    #179151
     Swappty
    Participant

    Hello,

    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.

    #179194
     Radu
    Moderator

    Copy 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 solution
    #179211
     Swappty
    Participant

    Hi there.

    Thanks, now it’s working oke.

    Greets

    #179246
     Swappty
    Participant

    Hi,
    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.

    #179271
     Radu
    Moderator

    Hi,

    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 page

    You 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 solution
    #179339
     Swappty
    Participant

    That 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.

    #179371
     Radu
    Moderator

    I’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 solution
    #179434
     Swappty
    Participant

    You are right. I had to clear cache for it to show oke.

    Thanks.

    Greets

    #179459
     Radu
    Moderator

    Great
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?