Monday 30 May 2011 10:15:31 am
Well, it's done! With or without reply, this forum turns to be always lucky to me! First of all the right file wasn't activate.php (which is instead related to email activation, I suppose) but setting.php under kernel/user/. In setting.tpl I also added an hidden field through which pass over the user node id needing to be moved.
<input type="hidden" name="user_node" value="{$user[contentobject][main_node_id]}" /> And in the setting.php file, the rest of the game..
if ( $http->hasPostVariable( "UpdateSettingButton" ) )
{
...
if ( $http->hasPostVariable( 'user_node' ) )
{
$userNode = $http->postVariable( 'user_node' );
}
if ( $http->hasPostVariable( 'users_groups' ) )
{
$usersGroup = $http->postVariable( 'users_groups' );
}
... ... within the eZOperationHandler else statement..
else
{
eZUserOperationCollection:: ...
eZContentObjectTreeNodeOperations::move( $userNode, $usersGroup );
}
loredanaebook.it
|