Registation form for new User group

GreyHead 28 Sep, 2010
Hi XenEffect,

I think you can do this in the Extra After Registration Code box for the Joomla! Registration plug-in
<?php
$user =& JFactory::getUser();
$user->usertype = 'Editor';
$user->save();
?>
You need to check carefully that this works correctly. There are some Access Control settings that are required for correct User Group functioning. I think that save() does these automatically but I'm not 100% certain.

Bob
GreyHead 28 Sep, 2010
Hi XenEffect,

in the Extra After Registration Code box

on the Plug-in Extra Code tab.

Bob
This topic is locked and no more replies can be posted.