3
edit the toArray function in userpage\class\userpage.php
so it looks like this
function toArray($format = 's')
{
$ret = array();
foreach ($this->vars as $k => $v) {
$ret[$k] = $this->getVar($k, $format);
}
$ret['up_url_rewrited'] = $this->getURL();
$ret['up_href_title'] = $this->getHrefTitle();
$ret['up_created_formated'] = formatTimestamp($this->getVar('up_created'), userpage_utils::getModuleOption('dateformat'));
$ret['user_name'] = $this->uname();
//## ADDED ##
$user_handler =& xoops_gethandler('user');
$thisUser = $user_handler->get($this->getVar('up_uid'));
$ret['user_avatar'] = '.XOOPS_URL.'/uploads/'.$thisUser->getVar('user_avatar').'" alt="'.$ret['user_name'].'"/>';
//## ADDED ##
return $ret;
}
then you can use <{$page.user_avatar}> in that template.
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧