-
Author
-
October 24, 2014 at 17:59 #32929Sim2KParticipant
I would like to protect a link on my site for example …
http://www.Site.com/info/GoldMembersOnly
I need to check that they are a certain membership level before it shows the page, or takes them to the registration page/alternative link if they dont match the required level.
Do I need to hardcode it, or is it a .htaccess file edit or is there an option for this?
October 24, 2014 at 21:41 #32939sharmstrModeratorIsn’t that the whole point of PMPro? http://www.paidmembershipspro.com/features/members-only-settings-for-all-content-types/
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 4, 2014 at 20:58 #34031Sim2KParticipantI know how to do that, thats easy ..
OK let me be more specific, how so I protect this pages link …
http://jamrockpeeps.com/simeon2k/profile/edit/group/2/
… ?? As you will see, its not a standard page created by me, but its a page automatically created by Buddypress, not me. So how do I protect that link so only members with a certain level can update that part of their profile??
Thats what I am asking about protecting a link, not a page created by me, so how do I protect that page link???
November 5, 2014 at 15:01 #34179sharmstrModeratorSorry, I dont use PMPro so I dont know anything about it.
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 5, 2014 at 15:05 #34180sharmstrModerator… with that said, if there’s no way to do it directly with PMPro, you could probably do it in the buddypress code by comparing the logged in user membership level to the level that can access.
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 5, 2014 at 18:10 #34206AbeKeymasterHi, please look at the settings added by the theme in Theme options – Memberships that allows you to restrict Buddypress pages
Cheers
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 6, 2014 at 19:05 #34375Sim2KParticipantHello Abe
Thats not it either. I know about that and have that setup.
I want to protect a link that is created by a plugin/any plugin. The example I gave is …
http://jamrockpeeps.com/simeon2k/profile/edit/group/2/
… and that link is created automatically by Buddypress. That links to the 2nd tab when a user updates their profile. Now the base/1st tab for updating their profile is ok for all to access, but I want to protect the link to the 2nd tab. This way, only people from a specific member level can load the link to that tab to edit their details on the 2nd tab. If you don’t have access to that level, you can’t access that link to that tab.
Hope this makes more sense, this is why I am asking, how can I protect any link using PMPro as there are some plugin generated pages that I want to allow for only members of a certain level.
I used to use s2members and that could do it and I have heard that PMPro can do it too.
November 7, 2014 at 15:28 #34529sharmstrModeratorI’ve thought a bit about this. The /group/2 part points to a specific x-profile group which is a slug to the second profile group you created in user profile fields. (it has nothing to do with the position of the group in the profile menu).
So, in your functions.php file, you might be able to do something like
COPY CODEif (bp_the_profile_group() == "2" && pmpro_getMembershipLevelForUser($user_id) == member_has_access) { show the info }
I dont use pmPro so I’m not sure what membership levels there but hopefully you get the point.
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 ‘KLEO’ is closed to new topics and replies.