-
Author
-
July 31, 2018 at 15:47 #205066tulipworkParticipant
Hi,
Currently, the user who clicks on “register” BuddyPress/WordPress native link is redirect to the classical BuddyPress registration form. But if the user clicks on a page that is restricted by the PMPro plugin, he’s redirect to the PMPro register form.
The 1st problem is that there are two different register forms. The second pb is that the PMPro register form do not provide the BuddyPress additionnal fields, so the user creates a minimalist profile without any information about him.
The solution is to insert the BuddPress register form inside the PMPro register form, mayby with different steps : Choose membership level > BuddyPress native form > Additionnal BuddyPress fields > Payment.
How to do it?
Thank you very much,
August 1, 2018 at 15:12 #205142LauraModeratorHello, buddypress fields cant be at pmpro, you could use buddypress members only plugin to redirect users to buddypress register page when accessing those pages
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
August 1, 2018 at 15:24 #205144tulipworkParticipantHi, in fact you’re right, if I’m using Buddypress Members Only, it’s redirecting logged out users to BuddyPress registration page. This fix my problem. However, it’s redirecting french users to the English registration form. How to have a WPML friendly redirect?
Thanks.August 2, 2018 at 00:35 #205203LauraModeratorHello, 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 solutionLaura 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 🙂
August 2, 2018 at 11:36 #205215tulipworkParticipantHi, thank you very much, I’m waiting.
It’s the last problem to fix before launching my website, except that, everything is working.August 3, 2018 at 14:53 #205314tulipworkParticipantAnything new about this issue? Thanks in advance.
August 3, 2018 at 16:23 #205324RaduModeratorHi,
I see the redirection it’s handled by that plugin “Buddypress Members Only” and this redirect english to french version.
A workaround my be to de-activate that plugin and to use two snippets that handles the redirection for every language from example, so that plugin should be compat with wpml.
Homepage french : domain.com/fr/ -> will redirect guests to domain.com/fr/register
Homepage english : domain.com/en/ -> will redirect guests to domain.com/en/registerThis snippet should handle both of them cuz it’s using relative urls
COPY CODEfunction sqr_prevent_search_guest_user() { if ( class_exists( 'BuddyPress' ) ) { if (!is_user_logged_in() && bp_is_directory() && is_front_page()) { wp_redirect(home_url() . '/register/'); exit; } } } add_action('template_redirect', 'sqr_prevent_search_guest_user');
The snippet may be added to wp-content/themes/sweetdate-child/functions.php
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 3, 2018 at 19:43 #205356tulipworkParticipantIt’s absolutely perfect !
If someone needs this snippet, I changed yours to that in order to be more efficient:
COPY CODEfunction sqr_prevent_search_guest_user() { if ( class_exists( 'BuddyPress' ) ) { if (!is_user_logged_in() && (bp_is_directory() || bp_is_user())) { wp_redirect(home_url() . '/register/'); exit; } } } add_action('template_redirect', 'sqr_prevent_search_guest_user');
August 6, 2018 at 14:37 #205546RaduModeratorGreat
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.