hallo everybody
i need the php code to show the user avatar in the Modul "userpage" ... a new row (the first) by the template userpage_list.html is ready ... i write something like this but not work
-----------------------------------
<{$smarty.const._USERPAGE_AVATAR}> |
<{$smarty.const._USERPAGE_USER}> |
<{$smarty.const._USERPAGE_TITLE}> |
<{$smarty.const._USERPAGE_DATE}> |
<{$smarty.const._USERPAGE_HITS}> |
---|
<{foreach item=page from=$pages}>
" onclick="window.location='<{$xoops_url}>/modules/userpage/index.php?page_id=<{$page.up_pageid}>'">
<{$page.user_avatar}> |
|
|
<{$page.up_created}> |
<{$page.up_hits}> |
<{/foreach}>
------------------------------------
thanks all
ps
in the index.php is something about this:
$xoopsTpl->assign('up_pageid',$page->getVar('up_pageid'));
$xoopsTpl->assign('up_title',$page->getVar('up_title'));
$xoopsTpl->assign('up_text',$page->getVar('up_text'));
$xoopsTpl->assign('up_created',$page->getVar('up_created'));
$xoopsTpl->assign('up_uid', $page->getVar('up_uid'));
$page_user = null;
$page_user = new XoopsUser($page->getVar('up_uid'));
if(is_object($page_user)) {
$xoopsTpl->assign('user_avatar', XOOPS_UPLOAD_URL.'/'.$page_user->getVar('user_avatar'));
$xoopsTpl->assign('user_name', $page_user->getVar('name'));
$xoopsTpl->assign('user_uname', $page_user->getVar('uname'));
$xoopsTpl->assign('user_email', $page_user->getVar('email'));
$xoopsTpl->assign('user_url', $page_user->getVar('url'));
$xoopsTpl->assign('user_from', $page_user->getVar('user_from'));
$xoopsTpl->assign('user_sig', $page_user->getVar('user_sig'));
}