
this is part of something i have done to correct the avatar location issue with newer versions of xoops
I added your var in there so you could try it out of the box. Hopefully.
Quote:
include_once $GLOBALS['xoops']->path('kernel/user.php');
class myUser extends XoopsUser
{
private $db;
private $id;
function __construct($id=null)
{
parent::__construct($id);
$this->initVar('user_viewtel', XOBJ_DTYPE_INT, 1, false);
if($id>0)
{
$this->id = $id;
if(file_exists(XOOPS_ROOT_PATH."/uploads/".$this->getVar('user_avatar')))
$avatar="/uploads/".$this->getVar("user_avatar");
else
$avatar="/uploads/avatars/".$this->getVar("user_avatar");
$this->setVar('user_avatar',$avatar);
$this->db = Database::getInstance();
}
}
}
If you need new fields I would suggest creating a new table and store them in there seperatelly from xoops core db tables.
Then extend the class to store the extra values with a new method in it.
Make that a small module (just for the sake of neatness) or implement it in your module, and you dont have to worry about messing with the core :) hope it helps