| Re: userpage |
| by iHackCode on 2009/6/8 4:38:24 Quote:
nope. don't know how. |
| Re: userpage |
| by Anonymous on 2009/6/2 22:09:36 Has this been shared with the Instant Zero guys?
|
| Re: userpage |
| by gray on 2009/6/2 19:32:01 thank you Bandit-x, its working :) now its seems cooler than before |
| Re: userpage |
| by iHackCode on 2009/6/1 16:22:48 edit the toArray function in userpage\class\userpage.php so it looks like this le="color: #000000"><?php 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'] = '<img src="'.XOOPS_URL.'/uploads/'.$thisUser->getVar('user_avatar').'" alt="'.$ret['user_name'].'"/>'; //## ADDED ## return $ret; } then you can use <{$page.user_avatar}> in that template. |
| Re: userpage |
| by gray on 2009/5/14 17:26:19 any idea_? |