I want to be able to assign a primary membergroup at the time of registration. So far I am able to assignin an additional membergroup at the time of registration (with some help from some folks from this forum.)
Here's the code in Register.php
Quote// This is the code to put them in the appropriate gender membergroup change the values accordingly
if ($row['gender'] == 1)
{
updateMemberData($row['ID_MEMBER'], array('additionalGroups' => "26"));
}
else
{
updateMemberData($row['ID_MEMBER'], array('additionalGroups' => "25"));
}
How can I make the last one assign to Primary Member group 25 and not additionalGroups 25?
Thanks!
True Knight
Im not sure of this, but it would make sense that the prefix would be something like "primaryGroups"... Backup your file before you try it though.
Will
Tried that...no good.
Any other suggestions?
TK
Can anyone help me?
Please...anyone?
I resolved this issue after a lot of trial and error... Here's the solution!
// This is the code to put them in the appropriate gender membergroup change the values accordingly
if ($row['gender'] == 1)
{
updateMemberData($row['ID_MEMBER'], array('additionalGroups' => "26"));
}
else
{
updateMemberData($row['ID_MEMBER'], array('ID_GROUP' => "25"));
}