This topic has 10 replies, 2 voices, and was last updated 9 years by Radu.

  • Author
  • #129000
     Andreas Karlsson
    Participant

    Hi!

    I have installed the Cleo theme and set up a lot of the plugins you recommended.

    Now I want them working so that you can pay for creating your profile, add listings and search for members/listings.

    How do I do this?

    #129078
     Radu
    Moderator

    Hi,

    The onliest available options for membership restricting we have it in wp-admin -> theme options -> memberships.

    And with the snippet below you can force users after signup to buy a package to can view the community otherwise the users will be locked in the membership levels page.

    COPY CODE
    
    
    add_action( 'template_redirect', 'my_membersip_restrict' );
     
    function my_membersip_restrict() {
        global $pmpro_pages, $post;
     
        if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) {
            if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) {
                wp_redirect( pmpro_url() );
            }
        }
    }
    

    The snippet will be pasted in wp-content/themes/kleo-child/functions.php

    NOTE : The Kleo Child Theme needs to be installed and activated.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #129150
     Andreas Karlsson
    Participant

    Hi, thank you for your feedback.

    I want the listing ability to be restricted and paying for the member that can do the listing. How do I do this?

    #129197
     Radu
    Moderator

    Hi,

    Our theme doesn’t’ have this type of restriction, in similar cases you will have to create a custom function that can do that or to modify your templates to can restrict this, in actual moment i don’t have any code to provide to you for that, but i have an idea that can work.

    Geodirectory has a shortcode for add listing page [gd_add_listing] you can add this shortcode into a page where you will restrict that page for paying members, i don’t know if this will work properly maybe it will need some advance restriction logic

    https://archived.seventhqueen.com/kleo/article/restrict-content-for-certain-membership-level

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #129664
     Andreas Karlsson
    Participant

    Thank you Radu, I finally wrapped my head around the solution.

    The things left now are:

    Map is not showing: http://hometutor.us/gd-home/

    Payment not working: http://hometutor.us/membership-account/membership-levels/

    Search fields not sure if working: http://hometutor.us/

    #129669
     Andreas Karlsson
    Participant

    Hi Radu, I managed to fix the mapp.

    I am not able to see the listings on the listing page (I renamed it): http://hometutor.us/add-listing/

    Also, how do I manage the listing layout? I would like the same design as you are using on http://seventhqueen.com/themes/kleo/business-directory/

    #129848
     Andreas Karlsson
    Participant

    Hi Radu, I tried your fix with only allowing paid members to access the link but it is not working. Everyone is able to click the link and add listings?

    Thanks,

    Andreas

    #129967
     Andreas Karlsson
    Participant

    The payment system to upgrade your account does not seem to work. I get the error text:
    “You do not have permission to make this API call”

    Could you please tell me why this is so I can get the site up and running by Monday?

    Best,

    Andreas

    #130088
     Radu
    Moderator

    Hi,

    Regarding the restriction of add listings it means that my suggestion not works…

    You can try this method also, but if this not works you will have to implement something custom that allows you to to what you need.

    Go to : https://archived.seventhqueen.com/kleo/article/restrict-content-for-certain-membership-level and look at the Control portions of content with shortcodes and place your add listing shortcode between [membership] and [/membership] also you can try this method to : https://archived.seventhqueen.com/kleo/article/restrict-content-logged-users

    The API error it’s not related to our theme, try this solution : https://wordpress.org/support/topic/10002-you-do-not-have-permissions-to-make-this-api-call

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #130375
     Andreas Karlsson
    Participant

    Hi man, thank you so much. There is one more issue left with the site now.

    BuddyPress has now 2 different profiles but you can not choose which profile you want when you sign up? When you upgrade your profile(with payed memberships pro) you do not get a seperat profile from your buddyPress profile. This means that you can never choose a “Tutor” or “Parent” profile.

    How do I combine the two or atleast enable the ability to choose a BuddyPress profile that I have set up?

    Thanks Radu

    #130411
     Radu
    Moderator

    Hi again,

    You’re welcome 🙂

    Please tell me “Tutor” and “Parent” those are member types ? or what ,how do you have created these ?

    If yes, read this : https://buddypress.org/support/topic/2-2-member-types-setting-user-member-types-during-registration-xprofile/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?