-
Author
-
January 23, 2016 at 17:15 #100148infusioncenterParticipant
Hello, I think I have the same question many have already asked. I am using Paid Member Pro and the shortcode ‘[pmpro_levels]’ is creating levels that I cannot find a way to edit on my own.
This link is referred to many times but i get a 404 error whenever it is clicked on:
https://archived.seventhqueen.com/forums/topic/membership-levels-price-page
Thank you,
January 24, 2016 at 21:20 #100231LauraModeratorHello, to edit levels go to Memberships > Levels
And check that you have all pages selected at Memberships > Page settingsHi 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 🙂
January 25, 2016 at 16:42 #100359infusioncenterParticipantHello Laura,
I think my original question might have been taken wrong. What I am trying to do is to change the way the [PMPro_levels] short code automatically grabs the pricing tables built into my Kleo theme. I want to be able to customize the look and list items that are being pulled into this pricing table. I have seen many others on these forums get there answer at the following link:
https://archived.seventhqueen.com/forums/topic/membership-levels-price-page
But this link is no longer working and is giving me a 404 error. I believe the answers I need are there and wanted to let you know that the link is broken. Can you help me out with the link or the answer to my issue?
Thanks!
January 26, 2016 at 19:26 #100634LauraModeratorHello, here is the content of the post:
See my example below where I add a new MESSAGES RESTRICTION and SHOP. The following codes goes to kleo-child/functions.php
This manipulates the text that shows in the memberhips page:
COPY CODE/* These restrictions will appear to be configured in Sweetdate - Memberships */ add_filter('kleo_pmpro_level_restrictions', 'kleo_my_levels_checkmarks'); function kleo_my_levels_checkmarks($settings) { $settings = array ( //NEW RESTRICTION MESSAGES page with name: message array( 'title' => __('Restrict Messages page','kleo_framework'), 'front' => __('Access messages page','kleo_framework'), 'name' => 'message' ), //NEW RESTRICTION SHOP page with name: shop array( 'title' => __('Restrict Shop page','kleo_framework'), 'front' => __('Access Shop page','kleo_framework'), 'name' => 'shop' ), array( 'title' => __('Restrict members directory','kleo_framework'), 'front' => __('View members directory','kleo_framework'), 'name' => 'members_dir' ), array( 'title' => __('Restrict viewing other profiles','kleo_framework'), 'front' => __('View members profile','kleo_framework'), 'name' => 'view_profiles' ), array( 'title' => __('Restrict access to groups directory','kleo_framework'), 'front' => __('Access group directory','kleo_framework'), 'name' => 'groups_dir' ), array( 'title' => __('Restrict access to single group page','kleo_framework'), 'front' => __('Access to groups','kleo_framework'), 'name' => 'view_groups' ), array( 'title' => __('Restrict users from viewing site activity','kleo_framework'), 'front' => __('View site activity','kleo_framework'), 'name' => 'show_activity' ), array( 'title' => __('Restrict users from sending private messages','kleo_framework'), 'front' => __('Send Private messages','kleo_framework'), 'name' => 'pm' ), array( 'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'), 'front' => __('Add media to your profile','kleo_framework'), 'name' => 'add_media' ) ); return $settings; }
If you need also to apply restrictions to some links and not just show some text in the levels page, this makes the page restrictions to happen:
COPY CODE// restrict profile area - Messages page add_action('kleo_pmro_extra_restriction_before_my_profile','kleo_my_custom_restrict1'); function kleo_my_custom_restrict1() { //full current url $actual_link = kleo_full_url(); //our request uri $uri = str_replace(untrailingslashit(home_url()),"",$actual_link); //restrict messaging page url if(preg_match("/^\/".bp_get_members_root_slug()."\/". bp_get_loggedin_user_username()."\/messages\/?/", $uri)) { $my_restrictions = array('message' => array( //2 - restrict certain levels. 0 -restrict none; 1 - restrict all 'type' => 2, //levels that you apply the restrictions to 'levels' => array(2,3), //'not_member' => 1, //restrict users without a membership level //'guest' => 1 // restrict not logged in users ) ); //We use the name "message" from the new restriction added above kleo_check_access('message',$my_restrictions); } } //Restrict Shop page add_filter('kleo_pmpro_match_rules', 'kleo_my_custom_restrict2'); function kleo_my_custom_restrict2($restrictions) { //regular expression for shop page $restrictions["/^\/shop\/?$/"] = array('name' => 'shop'); return $restrictions; }
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 🙂
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.