-
Author
Tagged: membership level, Registration Page
-
November 14, 2014 at 10:19 #35412
MTG
ParticipantHi,
I would like that customers who do not have access to a directory to be redirected to the registration page and if they are registered but have not taken any subscription fee be returned to the page of membership levels for subscribe.
How can i do this please ?
Thank’s a lot.
Bye
November 14, 2014 at 21:15 #35506Laura
ModeratorHello, you can set up who can access to each page in the page editor “Required Membership” Then check what level the user need to be to access to this page, any user without a subscription or not members will see a link to memberships levels page 🙂
Hope it helps.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 🙂
November 17, 2014 at 10:45 #35741MTG
ParticipantHi Laura, thank’s.
The problem is that The problem is that I can not redirect users not registered on the registration page, they are automatically redirected to the memberships levels page.
However, I would like that customers who are not registered to be redirected to the registration page, and then either redirected to the memberships levels page. I don’t know how to configure it.
thank you
November 17, 2014 at 16:46 #35760Laura
ModeratorHello, users will be auto redirected to registration page of buddypress, but be sure you have Register page selected in Tools > Buddypress > Registration Page
You can also give me access to your admin panel so i can check it out 🙂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 🙂
November 17, 2014 at 19:05 #35782Laura
ModeratorHello, when an user registers, goes to this page, this is registration page (see attachments) So it is working fine, am i lost or i didnt understand your question? 🙂
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 🙂
Attachments:
You must be logged in to view attached files.November 18, 2014 at 19:59 #35899Laura
ModeratorHello, try to use this in your child theme functions.php
COPY CODEadd_action( 'template_redirect', function() { if ( is_user_logged_in() || ! is_page() ) return; $restricted = array( 250, 253 ); // all your restricted pages id if ( in_array( get_queried_object_id(), $restricted ) ) { wp_redirect( site_url( '/register' ) ); exit(); } });
Change 250,253 to your restricted page ids, you can add as much as you want, to get the id of a page go to edit that page and check your browser link. Also change /register for your registration page.
Users that are not subscribers will see a message ad a link to memberships levels if the page minimun level required is set, you can set in in edit page 🙂 This comes with pmpro so just restrict access with that.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 🙂
November 19, 2014 at 13:35 #35964MTG
ParticipantHi Laura, sorry but it doesn’t work, i’m still going to the memberships page levels if i’m not registered and not the register page 🙁
November 19, 2014 at 18:12 #35977Laura
ModeratorHello, give me your ftp access so i can do it for you 🙂
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 🙂
November 19, 2014 at 18:20 #35978MTG
ParticipantCan you give me your ip address to allow it for the FTP. And can you tell me which files you will have modified.
Thank’s.
November 21, 2014 at 17:02 #36263Laura
ModeratorHello, there is some kind of conflict with your plugins, one or some of them is blocking stuff from working, you should deactivate all an test it, one of them is also blocking sweetdate menu from saving changes.
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 🙂
November 21, 2014 at 17:17 #36268MTG
ParticipantI will try, you used this code or You made changes above?
add_action( ‘template_redirect’, function() {
if ( is_user_logged_in() || ! is_page() ) return;
$restricted = array( 250, 253 ); // all your restricted pages id
if ( in_array( get_queried_object_id(), $restricted ) ) {
wp_redirect( site_url( ‘/register’ ) );
exit();
}Thank’s
});
November 21, 2014 at 17:27 #36270Laura
ModeratorHello, yes that code should work, chaning /register for your page but first is resolve the conflicts.
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 🙂
November 21, 2014 at 17:51 #36276MTG
ParticipantI tried te desactivate all plugins but it doesn’t work, the plugins still activated are :
BBpress
BuddyPress
Paid Memberships Pro
Revolution Slider
WooCommerceHow can I do ?
November 24, 2014 at 15:47 #36460MTG
ParticipantHi Laura, I tried what you told me to do with a new install of the theme, but it doesn’t work, see the file attached.
Is there any solution to resolve my problem ?
Thank’s.
Attachments:
You must be logged in to view attached files.November 24, 2014 at 16:29 #36464Abe
KeymasterHi,
COPY CODE// redirect to registration page or membership levels page add_action('template_redirect', 'my_custom_redirect'); function my_custom_redirect() { $restricted = array( 334 ); // all your restricted pages id $levels_to_check = array(1, 2, 3); if ( in_array( get_queried_object_id(), $restricted )) { if (is_user_logged_in()) { if (!pmpro_hasMembershipLevel($levels_to_check)) { wp_redirect(pmpro_url("levels")); exit; } } else { wp_redirect(bp_get_signup_page()); exit; } } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.November 24, 2014 at 16:39 #36466MTG
ParticipantHi Abe, it doesn’t work and you broke my website !!!! The custom css in the admin panel has disappeared !!!!
November 24, 2014 at 16:53 #36468Abe
Keymasterjust updated it. the code goes in kleo-child/functions.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.November 24, 2014 at 17:05 #36470Abe
Keymasteryou should install it from the package downloaded
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.November 24, 2014 at 17:11 #36471MTG
ParticipantSorry but in the sweetdate package downloaded, i don’t have kleo-child
November 24, 2014 at 19:51 #36479Abe
Keymastersorry I meant sweetdate child
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.November 25, 2014 at 10:22 #36518MTG
ParticipantHi Abe,
It doesn’t work. When I put this code in functions.php, in sweetdate child, I have a white screen in the site.
November 27, 2014 at 01:07 #36825Abe
KeymasterWell you need basic php knowledge. Add it before the ending ?> tag. Try hiring a programmer to help with customizations
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.