ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Automatically move member to a new member group

October 15, 2009 6:49am

Subscribe [2]
  • #1 / Oct 15, 2009 6:49am

    bluecherry74

    17 posts

    Moderator’s note: Moved to Howto.

    I’m building a website for a musician who would like to offer extra content to fans who have purchased his music.

    As far as I can tell, this won’t be a problem for members who purchase a product on his site using the simple commerce module - they can automatically be assigned to a new member group which will have access to certain pages. Is this correct?

    The problem is that many fans will purchase his music on iTunes, Amazon etc and he wants a way to give them access to the extra content on his site. Is there any way for members to be automatically added to a new member group by entering a special code?

    Any thoughts or ideas would be appreciated!

  • #2 / Oct 15, 2009 4:16pm

    Ingmar

    29245 posts

    I presume the special code would be the same for everyone? It would require a custom query, if you want to do it automatically. You’d have to build a form, check against the “secret” word and then move the logged_in member_id to a different group. Makes sense? Not too difficult, but would require a bit of custom coding, an SQL query perhaps.

  • #3 / Oct 16, 2009 3:45am

    bluecherry74

    17 posts

    Thanks for the reply, Ingmar. Yes, the code will be the same for everyone and your suggestion sounds like it will do what I need. I know virtually nothing about php and/or queries, but I’ll study the documentation and see if I can figure it out. 😊

  • #4 / Oct 16, 2009 10:22am

    Ingmar

    29245 posts

    Let us know how you get on with it. When you come up with some code, feel free to run it by the forums to help with the details 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases