Modifying Free User Levels

Forums General Modifying Free User Levels

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #466
    Tim
    Participant

    I am building a site that will have three levels of members (i.e. 0, 1, and 2), all of which will be free. There’s no problem with creating the necessary registration forms, but how can I set up modification forms?

    In other words, when logged in, level 0 will need the option to select levels 1 or 2; level 1 will need to be able to select 0 or 2; and level 2 will need to be able to select 0 or 1.

    The problem is that the modification forms want a payment processor to be set up, even if the new levels will be free, while the free registration form just won’t work for modifications.

    So what do you suggest?

    #469

    I see what your problem is in that situation.

    I’d suggest a bit of PHP that’ll change the user’s role. See: https://s2member.com/kb-article/rolescapabilities-via-php/

    You’ll need a PHP execution plugin for PHP to work in a post/page’s body.

    You can add the role-changing code to a page where the user lands when he clicks on a link to modify his account’s level.

    I hope that helps. 🙂

    #470
    Tim
    Participant

    Thanks, Cristian. I had seen that code, but I don’t see how it helps if I want to give the member two options, and not just one. It’s also not as neat and pretty (and, therefore, probably not as easily understood by the member) as using a proper form.

    #471

    Yes, I see what you mean.

    I don’t have a problem with the hack, but being able to use the pro-form for those modifications would be nice.

    I’d suggest that you open a feature request for it over at GitHub. https://github.com/websharks/s2member/issues

    #473
    Tim
    Participant

    Done! Thanks, Cristian!

    #476

    🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.