• Resolved NixXxon23

    (@nixxxon23)


    Hi,

    first of all: GREAT Plugin!

    But one really important thing is missing for me. Thats why i created an own plugin (according to a guide on your page) to solve my issue.

    Here’s “my” code:

    // Assign a Paid Memberships Pro level based on user role when user roles are updated. --> von mir!!!
    
    add_action('user_register','assign_pmpro_level_to_role', 1);
    
    function assign_pmpro_level_to_role($user_id, $role, $old_roles)
    {
    	//we found a role related to pmpro level
    	if($role == "Free")
    	{
    		pmpro_changeMembershipLevel(2, $user_id);
    	}
    	elseif($role == "administrator")
    	{
    		pmpro_changeMembershipLevel(1, $user_id);	//setup level 1 as an all access role or just give them level 2
    	}
    	else
    	{
    		//default to no level
    		pmpro_changeMembershipLevel(2, $user_id);
    	}
    }

    Actually it works fine and does what i wanted it to do. It creates new users and automatically assign the “Free”-Level. BUT the register button keeps spinning an spinning (endless) and doesnt forward to the newly created account.

    Here’s a link to my site. Just try to register and you’ll see the problem: https://kufifi.at/mp2/register

    Any ideas what i did wrong? Where i have a loop? How else can i implement it?

    If needed i can post my login-code aswell.

    I really hope you can help me?!

    All the best,
    NixXxon

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    The register page took a while for me to load. Perhaps the checkout is timing out and you may need to upgrade your hosting/server.

    We try our best to make the software as light as possible, but it is a complicated piece of software and typically requires VPS level hosting or higher.

    Plugin Author Jason Coleman

    (@strangerstudios)

    Also that is not our default register page. Not sure if those AJAX effects are something you did custom or part of a theme you bought. In any case, I tried to register and was redirected appropriately. I’m thinking it might sometimes time out for you.

    Thread Starter NixXxon23

    (@nixxxon23)

    Thank you for your answer.

    I already disabled the custom plugin when you tested it – sorry. I managed it by creating an “level”-page where users have to choose their level before accessing anything.

    Not the most user-friendly way but it works.

    I know about the loading-issues – going to move to a VPS before i go live. But it was defenatly not a time-out issue.

    But thanks anyway i can live with the solution i got now.

    Thumbs up for your plugin!! One thing would be REALLY great: MORE Payment-Gateways! The only gateway wich supports debit-cards in austria is 2checkout but they dont want sites like mine as customers :/

    All the best,
    NixXxon

    Thread Starter NixXxon23

    (@nixxxon23)

    p.S.: That doesnt really fit to the topic but there are some translations missing at the profile page:

    “change” – ?ndern
    “My Memberships” – Meine Mitgliedschaften
    “Billing” – Abrechnung
    “View all Membership Options” – Alle Optionen anzeigen
    “Amount” – Betrag

    When i want to cancel:
    “Are you sure you want to cancel your … membership?” – Sind Sie sicher, dass Sie ihre … membership canceln wollen?

    and the back to profile is missing here.

    In the *.de_DE.po-File everything is there so i guess those terms are note translation-ready implemented?!

    best regards,
    NixXxon

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed to assign new users a Level automatically’ is closed to new replies.