This topic has 8 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #170519
     dm25bell
    Participant

    Beyond frustrated with the membership aspect here.  I’ve got over 30,000 members and profiles to upload.  The paid membership pro plugin requires an outlay of $97 to use in order to mass update membership levels.

    1. Is there another way to bulk update “membership level”?
    2. Is there a way to upload via import full profile details or are members required to do it themselves?
    3. Next, I keep getting a 414 error when trying to “change forum role to” is there a way to mass upload Forum Role and Member Type so that I don’t have to go page by page (over 1,000)?  I’ve already tried doing via CSV.
    Attachments:
    You must be logged in to view attached files.
    #170553
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

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

    Laura 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 🙂

    #170729
     Radu
    Moderator

    Hi,

    1. Using this code you should be able to do that…when a user register but, if you need to apply to already users use the second snippet code

    COPY CODE
    
    
    //Disables the pmpro redirect to levels page when user tries to register
    add_filter("pmpro_login_redirect", "__return_false");
    function my_pmpro_default_registration_level($user_id) {
    	//Give all members who register membership level 1
    	pmpro_changeMembershipLevel(1, $user_id);
    }
    add_action('user_register', 'my_pmpro_default_registration_level');
    
    COPY CODE
    
    function my_pmpro_default_registration_level($user_id) {
    	//Give all members who register membership level 1
    	pmpro_changeMembershipLevel(1, $user_id);
    }
    add_action('wp_loaded', 'my_pmpro_default_registration_level');
    

    1 represents the level ID, for the second code, it may cause some errors while loading since it should update all your 30000 users maybe you will have to increase PHP execution time if you cannot handle with the server settings ask the hosting company about that.

    The second code should be removed to not be run all time.

    2. Personally, I haven’t done such as operation but there is a plugin that you can study and test it.

    https://wordpress.org/plugins/members-import/

    3. This is a server side issue, please look at this answer: https://stackoverflow.com/a/2891598/7974488 it contains the solution, I think you should ask about that on hosting support.

    Cheers
    R.

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

    Thanks, I will test this out. The second code is what I need. Fingers crossed! Will let you know if it did the trick.

    #171089
     Radu
    Moderator

    Hi,

    Ok let me know

    Please if are happy with our support service lease us a short review + 5* if you want on our ThemeForest page: https://themeforest.net/item/kleo-pro-community-focused-multipurpose-buddypress-theme/reviews/6776630

    Cheers
    R.

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

    ok, I must be doing something wrong, I’ve tried the code above:

    function my_pmpro_default_registration_level($user_id) {
    //Give all members who register membership level 1
    pmpro_changeMembershipLevel(1, $user_id);
    }
    add_action(‘wp_loaded’, ‘my_pmpro_default_registration_level’);

    and it didn’t work. Am I putting it in the wrong place? What file should it be place in?

    #171300
     Radu
    Moderator

    Hi,

    Try copy and paste the new snippet from pastebin : https://pastebin.com/raw/tpC24J2d

    Cheers
    R.

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

    Um, ok maybe my fault here. I asked “What file should it be place in?” As in what file or folder in WordPress do I copy and paste your code? Everything found online is from 2013-2014 and those folders do not exist anymore. So again please when I copy and paste the code you provided, I will place it in the file named ____________?

    #171432
     Radu
    Moderator

    The function needs to be pasted in wp-content/themes/kleo-child/functions.php

    NOTE : Child theme needs to be installed and activated.

    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 9 posts - 1 through 9 (of 9 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?