-
Author
-
November 2, 2015 at 11:43 #85397francoisParticipant
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.
November 2, 2015 at 15:49 #85416sharmstrModeratorThe 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 CODEadd_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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 3, 2015 at 11:08 #85452francoisParticipantThanks a lot for all your support.
You’re amazing !
November 3, 2015 at 15:54 #85480francoisParticipantHi again,
i just found a bug with you tip. I change the redirect page with this :
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.
November 3, 2015 at 16:14 #85482sharmstrModeratorHmmm. 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 3, 2015 at 16:46 #85491francoisParticipantBecause 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 :
November 3, 2015 at 16:55 #85492sharmstrModeratorYes, 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 3, 2015 at 17:48 #85512sharmstrModeratorYou 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.