member group variable
Posted: 30 April 2008 01:45 PM   [ Ignore ]
Administrator
Rank
Total Posts:  16
Joined  2005-12-12

Hey Kelsey,

Can I put a hidden field in a registration form to override the default member group?  Or do I have to use an invite key to do this?

-C

Profile
 
 
Posted: 30 April 2008 01:53 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

Hey Christy! LOL

Well, as you can imagine, this is a security risk for a Member Group to be specified via a form field, so this is currently not available. wink
Although, after some consideration we’ve queued up this option, but will include a special parameter along with it that will specify which Member Groups are allowed to be selected through a user-selectable form field, or in your case, a hidden field.

Will probably look something like this: wink

{exp:user:register allowed_member_groups="members|pies|pants"}
content
<select name="member_group">
{user_member_groups}
<option value="{value}">{value}</option>
{/user_member_groups}
</select>
{/exp:user:register}

We just need to crack the whip on Mitchell for this, haha LOL

Otherwise, yes, only the Invite Key will do this smile

 Signature 
Profile
 
 
Posted: 30 April 2008 02:45 PM   [ Ignore ]   [ # 2 ]
Administrator
Rank
Total Posts:  16
Joined  2005-12-12

As I suspected and totally understandable.  I just had to verify.  It’s not critical - at all. Thanks!

Profile