This topic has 8 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #85397
     francois
    Participant

    Hi,

    I create this topic in relation with this one : https://archived.seventhqueen.com/forums/topic/bugs-with-member-page

    So i add the PMPro message if user hasen’t paid for an adhesion. What i need to do now is break the redirection to homepage that Kleo dev has made for the buddypress page or, in case you can’t, tell me i can change the location where the user is redirect

    Can you help with this ?

    Thanks a lot for your great support.

    #85416
     sharmstr
    Moderator

    The way the code works is if you have it set to “Restrict All Members” it will redirect to the homepage. If you have it set up to “Restrict Certain Levels”, it will redirect to the PMPro Levels page if one is set up, or to the buddypress registration page if it cant find a PMPro levels page.

    You can override the redirect location by putting this in your child theme’s functions.php file

    COPY CODE
    
    add_filter( 'kleo_pmpro_url_redirect', 'custom_member_redirect' );
    function custom_member_redirect() {
    	wp_redirect('http://www.google.com');
    	exit;
    }
    

    Obviously change google to wherever you want.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #85452
     francois
    Participant

    Thanks a lot for all your support.

    You’re amazing !

    #85480
     francois
    Participant

    Hi again,

    i just found a bug with you tip. I change the redirect page with this : http://dev.outils.lk-interactive.fr/capture/145905.png

    Since there, user can’t create message on their profile, or simply view other user profile. In fact, all the user fonctionality does not work. If i delete these line, all is work fine.

    Have an idea ?

    Thanks again.

    #85482
     sharmstr
    Moderator

    Hmmm. Looks like it only works on some of the options in Theme Options > Memberships.

    It looks like all you are doing is redirecting them to sign up. So why not set it up the way I explained in the first place?

    If you have it set up to “Restrict Certain Levels”, it will redirect to the PMPro Levels page if one is set up, or to the buddypress registration page if it cant find a PMPro levels page.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #85491
     francois
    Participant

    Because i need to restrict only this buddypress page on the website.

    By the way, i don’t know what option you are talking about for restrict this page : http://dev.outils.lk-interactive.fr/capture/155254.png

    #85492
     sharmstr
    Moderator

    Yes, that’s the settings page I mean. Respond privately with admin credentials and a test member account credentials. I’ll have a look.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #85498
     francois
    Participant
    This reply has been set as private.
    #85512
     sharmstr
    Moderator

    You dont have any buddypress restrictions set up. You need to restrict members using Theme Options > Memberships. Since you only have 1 PMPro Membership, I’m guessing you want to give those members access to all buddypress stuff and restrict non members and guest. I’ve set up the Members directory restriction that way. Have a look. If you try to access the members directory without being a member, it will redirect you to the levels page

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 9 posts - 1 through 9 (of 9 total)

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

Log in with your credentials

Forgot your details?