PDA

View Full Version : update username using datamanager


khan3332
04-12-2006, 03:45 PM
i have the username update code below

$userdm =& datamanager_init('User', $vbulletin);

$userdm->set_existing(fetch_userinfo( $vbulletin->userinfo['userid']));

$userdm->set('username', unhtmlspecialchars(trim($vbulletin->GPC['uname'])));

$userdm->save();


can someone show me how to print out a message saying

your username has been successfully changed and redirects

to the main forum page after this code, thanks

rogersnm
05-28-2006, 09:21 AM
is that in the admin cp or user cp?