How do I make a smarty-template for user-avatars?

Requested and Answered by Anonymous on 2005/4/26 9:24:11

How do I make a smarty-template for user-avatars?

Easy! Open file xoopsroot/header.php in an editor and look for this code (2 occurences):

'xoops_isadmin' => $xoopsUserIsAdmin
Paste directly after this code (for both occurences):
'xoops_avatar' => $xoopsUser->getVar('user_avatar')
The user-avatar would be called like this in a template or in one of the theme-files:
<img src="<{$xoops_upload_url}>/<{$xoops_avatar}>" />

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=468