Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Popular Features › Members Directory › How can i hide Member Pages for Non Registred Users
- This topic has 3 replies, 2 voices, and was last updated 10 months ago by Manathan.
-
AuthorPosts
-
GiovanniParticipant@giovannispazzoli
- 7 Topics
- 10 Posts
Hello,
I followed instructions and dowloaded CODE SNIPPETS Plugin, activated it then pasted the code:
/**
* Redirect buddypress pages to registration page
*/
function gwangi_restrict_buddypress() {
// If not logged in and on a bp page except registration or activation
if ( ! is_user_logged_in() && is_buddypress() && ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) {
wp_redirect( home_url( ‘/register/’ ) );
exit();
}
}
add_action( ‘template_redirect’, ‘gwangi_restrict_buddypress’ );Now non registered members by cliccking on pages are correctly redirected to REGISTER page, that’s ok but….in menu primary SWIPE MEMBERS button if clikking still shows the members profile photo. Then by clikking on the member photo ok redirect to REGISTER page. The point is that not logged members can see clikking on SWIPE MEMBERS at least the photo of members and I want to hide this. By clikking on SWIPE MEMBERS for not logged in members must redirect directly to REGISTER page. How can I do it?
Another issue: in the home page by cliccking on FINDO YOUR LIFE PARTNER – you are looking for – submit I want that not logged in members are redirected to REGISTER PAGE, now it’s not. How can I do it?
Thank you,
Giovanni
October 30, 2023 at 10:32 #46307@themodactyl- 0 Topics
- 6587 Posts
Hi Giovanni,
Our theme is compatible with Paid Memberships Pro, which allow you to restrict content or areas of your website that will only be displayed to premium members. Plenty of PMPro add-ons are available on the author website to go further if necessary, including one for BuddyPress restrictions.
To know precisely which features will be restricted from your BuddyPress website, it’s best if you ask directly to the plugin authors. They will be more informed and better suited to answer you:
paidmembershipspro.com/contactPlease note that no premium plugin or add-on has been included in our theme package. Our theme is compatible with different premium plugins but they have to be purchased separately.
In case you wanna use this snippet, this feature requires custom development work. Please be aware that custom work is not part of the support we provide. In consequence, our recommendation is to hire a developer to do this job for you. We got an amazing discount for our users with our partner Zipline, which can handle installation, customization, and mobile apps with your theme :
Disclaimer : This is an affiliated link to our partner Zipline, by using this link you will get an amazing discount!
Best,
October 31, 2023 at 09:41 #46316GiovanniParticipant@giovannispazzoli- 7 Topics
- 10 Posts
You should provide this CSS to hide SWIPE MEMBERS button on home page to not registred users. I tried with ChatGPT to create a CSS to put in Snippets but it’s not working. Plaease provide the CSS as you provided the previous one about redirect to registration page not logged in members.
I don’t want to use Free Membership PRO, I just need a CSS from you. Can you provide?
October 31, 2023 at 09:56 #46318@themodactyl- 0 Topics
- 6587 Posts
This is standard design with our theme and BuddyPress, I’m afraid.
As this is not breaking the page, changing this is considered customization work. Unfortunately, this is a service that we do not provide. We provided this snippet generously, as we only share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.
If you want to go further with the customization of your website, we advise that you hire a developer to do it for you.
Thank you for your understanding.
October 31, 2023 at 10:00 #46319 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘How can i hide Member Pages for Non Registred Users’ is closed to new replies.