Webmastersite.net
Register Log In

Register - select usergroup

Comments on Register - select usergroup

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 14, 2007 - 5:23 AM:

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)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 14, 2007 - 1:28 PM:

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.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 16, 2007 - 2:52 AM:

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.



Thank you
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 16, 2007 - 12:18 PM:

Thought it was automatic, but apparently it isn't. Fixing it for 4.0.20.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 30, 2007 - 5:40 AM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 01, 2007 - 11:24 AM:

It's working for me. The default template generates
<tr>
<td class="labelscolumn"><span class="labels">Usergroup:</span></td>
<td class="optionscolumn"><select name="usergroup"><option value="2" selected>Member</option><option value="4">dsfds</option></select></td>
</tr>
in my page html source, and changing "Member" to "No" and "dsfds" to "Yes" can't affect anything.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 03, 2007 - 12:18 AM:

Still not working for me Paul

In my register.tpl I have...

<select name="usergroup">
<option value="2" selected>No</option>
<option value="4">Yes</option></select>


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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 04, 2007 - 8:08 PM:

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.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 05, 2007 - 1:15 AM:

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

Is there something else that I have to do?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Apr 05, 2007 - 11:55 AM:

Are you using the 4.0.21+ template?

This selection gives me this result viewing the registration page as a guest.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#11 - Quote - Permalink
Posted Apr 06, 2007 - 12:28 AM:

Paul wrote:
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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Apr 06, 2007 - 6:23 PM:

The exempt list shows all registerable groups, so if it's not listed there it means the database says that group isn't registerable.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#13 - Quote - Permalink
Posted Apr 07, 2007 - 12:13 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Apr 08, 2007 - 1:19 AM:

Groups are made registerable by selecting them in the list:

Attached Files:
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#15 - Quote - Permalink
Posted Apr 09, 2007 - 8:50 AM:

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
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.