Viewing 7 replies - 1 through 7 (of 7 total)
  • I mr, do any know any better user profile plugin I culd use on my blog» the register and Login/ profile look sort of old fashioned, wish I could afford, wpDev premium user plugin

    Plugin Author myCred

    (@designbymerovingi)

    Hey CHakelan.

    Right now the Badge add-on is soley based on a users points history. So unless you have a custom hook that award points for users changing roles in WP, this can not be done with any built-in method.

    The tricky thing is what type of role changes are you looking to reward with a badge? Can a user go from Subscriber to Editor? Or are we more going one role at a time i.e. Subscriber to Contributor, Contributor to Author, Author to Editor?

    If you can provide me with some more information I can help you further.

    Thread Starter Chakelan

    (@chakelan)

    Thanks for the reply.

    I have two custom user roles: Basic and Premium. Users can switch between these roles by upgrading/downgrading their membership. I want to display a badge only if they are Premium-members.

    Thank you very much, Gabriel!

    Plugin Author myCred

    (@designbymerovingi)

    How do users switch between these two roles? Is it via a membership plugin or you switch them manually in the admin area?

    Thread Starter Chakelan

    (@chakelan)

    Yes, it’s via Paid Memberships Pro.

    Plugin Author myCred

    (@designbymerovingi)

    Ok so there are two ways you can do this:

    A. Create a custom hook that awards users points when they becomes Premium members. In this case the badge add-on would take care of most of the awarding process for you since the badge would be awarded immediately when they receive the points. It also allows you to award badges for example users buying premium membership 6 times or more etc.

    B. Hook into the Badge add-on and Paid Memberships Pro individually and connect the two via some custom code. This option would not support awarding badges for multiple payments like in option A.

    The tricky thing in both options is to “detect” when a user gets the premium membership. I have never used Paid Membership Pro so I am unsure if you can do this. I will have to investigate.

    Thread Starter Chakelan

    (@chakelan)

    Thank you, Gabriel.

    I would love to hear it if you discover a solution!

    Best wishes,
    Chakelan

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Badges based on user roles?’ is closed to new replies.