RSMembership (a component for Joomla developed by RSJoomla) provides the ability to execute custom PHP code per subscription (in their 'Advanced Customisation' section of each membership type).
I need two small pieces of PHP code that will change a Joomla user's default group.
This code will be inserted into RSMembership so that when a user selects a subscription, their group access will be set automatically.
For example: I set up two subscription types in RSMembership - paid and free. I want the free user to be a Registered user and the paid user to be an Author. By inserting some php code into the 'advanced customisation' field of each subscription I am hoping to have that execute and change the user's group automatically.
More detail on RSMembership: [url removed, login to view]