Yeah, I took a look at that. You didn't utilize onBeforeUserUpdate (or any event for that matter), you altered the user's data in saveEditTab(). I took a look at that but it looks to me like it'll be overkill. The code you used looks a lot like that found in userSave().
I noticed the $row and $rowExtras variables used by the onBeforeUserUpdate event. My assumption is that I can use these variables in the function I attach to the event in order to help change my custom data. Thing is, I can't seem to get my attached function to fire off. I can't even get saveEditTab() to fire off either. Here is my code:
[code:1]
$_PLUGINS->registerFunction( 'onBeforeUserUpdate' , 'beforeUpdateUser' );
function beforeUpdateUser(&$user, &$cbUser)
{
echo "<p>".$user->email."</p>";
header("Location:
www.google.com/"«»);
return true;
}[/code:1]
[code:1]
class getExampleTab extends cbTabHandler
{
function getExampleTab()
{
$this->cbTabHandler();
}
function saveEditTab($tab, $user, $ui, $postdata)
{
if(intval($user->id) < 1)
{
mosNotAuth();
return false;
}
if ( $ui == 1)
{
return "";
}
elseif ( $ui == 2)
{
echo "<p>".$user->id."</p>";
header("Location: http://www.google.com"«»);
return "working?";
}
}
}[/code:1]
I just can't seem to get this rolling. Any help?
Post edited by: spacebass5000, at: 2006/02/15 17:40
Post edited by: spacebass5000, at: 2006/02/15 17:45