By not working I mean that it is still accessible to non-members.
Please see the note above in your post – you need to use a pastebin for posting that much code.
Thanks by the way, Mr. WPyogi.
What specifically is still available? Do you understand how the pasted code works? Did you tweak it to work with your membership levels and URLs?
This is something we typically help people with in our paid support forums:
http://www.paidmembershipspro.com/pricing/
For example, if someone tries to sign up but fails to pay, they still have a user account. For the most part, they’re blocked from locked posts and pages, but the buddypress activity is still accessible to them. As users, they can also send messages and add friends to other users. This is something I don’t want to be accessible to anyone who has an account, but paid members.
I tweaked it a little bit. And I felt like I understood what I was doing, but it wasn’t still working. I uncommented the function calls and added the specific membership ids. I also took out the function to block forums because I don’t actually have a forum with my BuddyPress.
Here’s the link to the tweaked version: http://pastebin.com/ZnxcVywG
Line 8 there is what determines which pages (URLs really) aren’t accessible. Make sure that your URL structure matches those lines and that you add anything in there you need.
$not_allowed = array("/^\/members\/$/", "/^\/activity\/$/", "/^\/groups\/$/", "/\/groups\/create\//", "/\/members\/[^\/]*\/groups\//", "/\/members\/[^\/]*\/settings\//");
We can help you work this out if you sign up for support on our site.
Hi Uchenna101,
I’m going to resolve this ticket. As Jason said, if you’d like to sign up for support, you may do so here: http://paidmembershipspro.com/support
Thank You
Can I ask, what file did you put this code in to hide buddypress features and pages from non-memberships?
I would like to restrict users who do not have memberships from accessing the groups, activity and other pages. But allow the forums to membership levels ID=1 to ID=infinity
Is it also possible to link the wordpress and buddypress profile fields to PMPro?
hello,
you can use paid membership pro with buddypress using this simple plug in
http://wordpress.org/plugins/private-bp-pages/
Hi akent64,
did you manage to paste the correct code?
If yes, may I ask to send me a copy of this code?
Thank you very much in advance!!!
regards
Mad
Hi:
You might want to try something called BP Registration Options. I haven’t had to use it for people who haven’t paid (yet), and I use another membership plugin at the moment, but the whole idea is that someone who signs up as a free user has to be moderated by the administrator. So, when you see that they have registered as free members, and thus have failed to pay, they still won’t be able to gain access to the Buddypress area. This plugin prevents them from doing so, and you can choose not to accept them, AND deny them instead. That deletes their profile. I don’t know about its compatibility with Paid Memberships Pro, but it’s worth a try!
Hope this helps.