Thanks Nick, that did the trick. I think. lol Now the last part.
Code:
$cbUser->cb_myfieldname = "test";//this doesn't update the database, apparently and
$cbUser->store();//returns a Call to undefined method CBuser::store() error
So how do I update that field once I've ascertained the value for it?
just looked at your tuts again, and you have an edit user function there
Code:
function editUser( $user, $name ) {
global $_CB_framework, $_CB_database;
$row = new moscomprofilerUser( $_CB_database );
if ( $user->id ) {
$row->load( $user->id );
}
$row->name = $name;
if ( $row->store() ) {
return true;
}
return false;
}
This looks like what I want to do, I am assuming. However it seems to be missing the input to the function that passes the data you want edited?
$user in my case is $cbUser and $name would be cb_fieldtoedit. So do I do a
Code:
$cbUser->cb_myfieldname = "test";
editUser($cbUser, cb_myfieldname)
?
Thanks!