Wonder Monkey - 06 May 2008 05:01 PM
First and most important: it would seem that I’m unable to add categories support to the user:register form. I have a hidden input name="category[]" but it doesn’t get added to the user until I edit it.
The User Categories function is incredibly complex, and is not quite fully robust yet, which is why it does not exist for the registration form yet.
I can promise you though, that it’s a major part of the User Module’s vision to have a fully robust Category system in place
Wonder Monkey - 06 May 2008 05:01 PM
Second: user:edit doesn’t support {category_id} or using anything else but a {selected} to get the user’s current category (I think!).
This is something that still fools me from time to time… you’ll need to build such like this:
<select name="category[]">
{categories}
{category_selected}selected="selected"{/category_selected}
{category_body}<option value="{category_id}" {selected}>{category_name}</option>{/category_body}
{/categories}
</select>
You’re also only allowed to use the Categories variable pair once on a template, currently… though Mitchell is working on getting it to work more than once.
So if you are using it somewhere else on the page, that could be the issue as well. Though you can manipulate this with Embeds to get it to work more than once.
Wonder Monkey - 06 May 2008 05:01 PM
Third thing while I’m here: adding a hidden mailinglist_subscribe input doesn’t seem to actually subscribe new members to a mailing list. I see it’s in mod.user.php, but clearly it’s not made for dummies yet.
Knowing Mitchell, it might not yet “exist”, though he might have done some dabbling…
I’m assuming you’ve tried:
<input type="hidden" name="mailinglist_subscribe" value="3">
Wonder Monkey - 06 May 2008 05:01 PM
Thanks guys! This category support is pretty awesome, just really complex.
Haha, I definately agree!!
I still think Mitchell is clinically insane… and you haven’t seen the Events Module he’s developing!
*drool*