We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace User, allowed_groups, only shows one group, that isn't even in the allowed_groups

Development and Programming

Brad Morse's avatar
Brad Morse
428 posts
16 years ago
Brad Morse's avatar Brad Morse

I have three groups that I set for allowed_groups, 22, 23, 24, which are the groups: 1995, 2002, 2005

Here is the code:

{!-- Solspace User Module: Registration Form --}

{exp:user:register}

  Username: <input type="text" name="username" size="25" /></p>
  Screen Name: <input type="text" name="screen_name" size="25" /></p>
  Email Address: <input type="text" name="email" size="40" /></p>

  Password: <input type="password" name="password"  size="25" /></p>
  Confirm Password: <input type="password" name="password_confirm" size="25" /></p>
  
  <label for="graduation_year">Graduation Year</label> 
    <select name="group_id"> 
    {select_member_groups allowed_groups="22|23|24"}
    <option value="{group_id}">{group_title}</option> 
    {/select_member_groups} 
    </select>
  

  {if captcha}
  Please enter in the word you see below: <input type="text" name="captcha" size="40" /></p>
  {captcha}
  {/if}

  <input type="checkbox" name="accept_terms" value="y"  /> Accept Terms?

  <input type="submit" value="Submit" /></p>

{/exp:user:register}

When I display the form, it only displays one item in the drop-down, and that being “Guest”, which isn’t even one of the allowed_groups

I am not logged into any account when viewing this page.

This is using the Solspace User module, what may be the problem with it not showing the allowed_groups I set, and instead showing the “Guest” group?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.