Hi Bunk58,
I’ve been trying out a couple of things with regards the end user controlling what groups they join. I’ve had some success, now not sure if it’s the correct way of doing it but seems to do the trick.
First i set up a TV called setgroup with a defualt value of:
@EVAL return $_POST["setgroupnum"];
Then i set up a register template with the normal fields but also added a drop down for the different groups the user can join:
<select name="setgroupnum">
<option selected="selected">Group to join</option>
<option value="group1">join group 1</option>
<option value="group2">join group 2</option>
</select>
At first i had this within it’s it’s own form tag as thought may need to submit this first to assign the groups value before trying to register the user. This didn’t seem to work so I placed all the register fields and the group dropdown within the single form tag.
Finally i had a weblogin call on the register page:
[!WebLoginPE? &type=`register` ®isterTpl=`regtpl2` &groups=`[*setgroup*]` ®SuccessId=`14` !]
Let me know what you think, this seems to work. I’ve tested in FF and safari both on mac.
I’ve also managed to applied a similar technique to allow the user list to be filter.
Thanks
Ben