You need to set registerable usergroups at Admin -> Members -> Settings, not in the template. If just changing what the form submits could do it then people could use an off-site form to register as an admin and hack your site.
Paul wrote: You need to set registerable usergroups at Admin -> Members -> Settings, not in the template. If just changing what the form submits could do it then people could use an off-site form to register as an admin and hack your site.
I have an additional registration group - Breeder. Could you please explain how I applicants can choose whether they are a "member" or a "breeder.
I want to allow members to choose their membership type when first registering.
I would prefer it if they could select either "yes" and be put in usergroup 2 or "no" for usergroup 4, so would like the following to work, but it doesn't.
It is all correct on the register form, but if somebody selects Yes when registering it doesn't register as usergroup 4 but remains as the default (usergroup 2).
If I edit their profile I can change it no problem. The problem is when initially registering.
What does it show when you use the default template and let it decided what to show there? If it doesn't show anything then that means the group isn't selected as registerable.
Paul wrote: What does it show when you use the default template and let it decided what to show there? If it doesn't show anything then that means the group isn't selected as registerable.
It does not show.
Under Admin > Members > Settings it is listed in the box for Additional Registration Usergroups
I am using 4.0.23 and I uploaded the default template that came with it. I could not leave that up though, just uploaded, tested, saw it did NOT show the usergroup and had to put my custom one back up so as not to have to shut my site down.
The only different from my admin to your admin shot is that the new category (breeder) is not in the exempt section, only members is there.
Slightly on another topic - On this forum we used to be able to see the version people were running and their website concerned - is it possible to see that again as I found it helpful.
Paul wrote: The exempt list shows all registerable groups, so if it's not listed there it means the database says that group isn't registerable.
ok so HOW do I make it registrable??
To make this new group I went to Admin > Members > Manage UserGroups and created a new usergroup. Is there something else that I should've done? I can select it correctly on the editmembers.tpl with the field <select name="usergroup">{MEMBERUSERGROUPOPTIONS}</select>
I have tested this on other sites, making a new usergroup, and none of them put it into the exempt list
Thanks Paul. All working now. I had just assumed if it was listed there it would be registerable. May be handy to put that you have to select it in the manual?
Cheers
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Register - select usergroup
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I have the following in the register.tpl...
<select name="usergroup">
<option value="2">No</option>
<option value="4">Yes</option>
</select>
If they do not select the default is to put them into usergroup 2 (Member), if they select "yes" then it should put them into usergroup 4 (Breeder)
On testing I selected "yes" but it still puts them into group 2 (Member)
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You need to set registerable usergroups at Admin -> Members -> Settings, not in the template. If just changing what the form submits could do it then people could use an off-site form to register as an admin and hack your site.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
You need to set registerable usergroups at Admin -> Members -> Settings, not in the template. If just changing what the form submits could do it then people could use an off-site form to register as an admin and hack your site.
I have an additional registration group - Breeder. Could you please explain how I applicants can choose whether they are a "member" or a "breeder.
Thank you
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Thought it was automatic, but apparently it isn't. Fixing it for 4.0.20.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Still can't get this to work.
I want to allow members to choose their membership type when first registering.
I would prefer it if they could select either "yes" and be put in usergroup 2 or "no" for usergroup 4, so would like the following to work, but it doesn't.
<select name="usergroup">
<option value="2">No</option>
<option value="4">Yes</option>
</select>
Is there any way round this so visitors can select when first registering?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It's working for me. The default template generates in my page html source, and changing "Member" to "No" and "dsfds" to "Yes" can't affect anything.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Still not working for me Paul
In my register.tpl I have...
It is all correct on the register form, but if somebody selects Yes when registering it doesn't register as usergroup 4 but remains as the default (usergroup 2).
If I edit their profile I can change it no problem. The problem is when initially registering.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
What does it show when you use the default template and let it decided what to show there? If it doesn't show anything then that means the group isn't selected as registerable.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
What does it show when you use the default template and let it decided what to show there? If it doesn't show anything then that means the group isn't selected as registerable.
It does not show.
Under Admin > Members > Settings it is listed in the box for Additional Registration Usergroups
Is there something else that I have to do?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Are you using the 4.0.21+ template?
This selection gives me this result viewing the registration page as a guest.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Are you using the 4.0.21+ template?
This selection gives me this result viewing the registration page as a guest.
I am using 4.0.23 and I uploaded the default template that came with it. I could not leave that up though, just uploaded, tested, saw it did NOT show the usergroup and had to put my custom one back up so as not to have to shut my site down.
The only different from my admin to your admin shot is that the new category (breeder) is not in the exempt section, only members is there.
Slightly on another topic - On this forum we used to be able to see the version people were running and their website concerned - is it possible to see that again as I found it helpful.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The exempt list shows all registerable groups, so if it's not listed there it means the database says that group isn't registerable.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
The exempt list shows all registerable groups, so if it's not listed there it means the database says that group isn't registerable.
ok so HOW do I make it registrable??
To make this new group I went to Admin > Members > Manage UserGroups and created a new usergroup. Is there something else that I should've done? I can select it correctly on the editmembers.tpl with the field <select name="usergroup">{MEMBERUSERGROUPOPTIONS}</select>
I have tested this on other sites, making a new usergroup, and none of them put it into the exempt list
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Groups are made registerable by selecting them in the list:
Attached Files:
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks Paul. All working now. I had just assumed if it was listed there it would be registerable. May be handy to put that you have to select it in the manual?
Cheers