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

  • Author
  • #175829
     andreasnordengen
    Participant

    If people are not logged in and click on a members name, they get directed to a 404 page.

    How can I relink them to the frontpage instead?

    Thank you!

    #175873
     Laura
    Moderator

    Hello, please try this plugin https://wordpress.org/plugins/buddypress-members-only/ it should redirect them to the register page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #176064
     andreasnordengen
    Participant

    Dear Laura,

    Sorry, it did not work as it restricted visitors to get access to certain pages other than homepage (which should be available for everybody).
    I only need the visitors to get redirected to the homepage if they try to get access to a registered profile.

    Thank you!

    #176110
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #176223
     Radu
    Moderator

    Hi,

    How did you have restricted the members profile ?

    TRy this snippet

    COPY CODE
    
    function sq7r_no_members_redirect_home() {
        if( !is_user_logged_in() && bp_is_user() ) {
            wp_redirect(site_url('/'), 301);
            exit;
        }
    }
    add_action('template_redirect', 'sq7r_no_members_redirect_home');
    

    The snipept works but depend how you have restricted the members profile and to redirect to this link https://www.vicinity.no/hjem__trashed/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #176270
     andreasnordengen
    Participant

    Thank you, the code did not work, but I found out the membership levels to was set to “nothing”.
    Changed this to “home” and it is ok now…

    Thank you again for great support, and love your theme!

    #176344
     Radu
    Moderator

    Hi,

    You’re welcome

    Leave us a review on themeforest if you have time

    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 7 posts - 1 through 7 (of 7 total)

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

Log in with your credentials

Forgot your details?