SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

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}>" />


The comments are owned by the author. We aren't responsible for their content.
user

 Doesn' work with 2.2.3!!


Please! i need this hack corrected, so I can use it in XOOPS 2.2.3!!!

 
user

 Adding Smarty Template for Avatars -- Doesn't work in 2.3


Can this please be updated for 2.3? For someone like me who is unfamiliar with Smarty and PHP, this would be very much appreciated!

 


Login

Who's Online

157 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 2


Guests: 155


MekDrop, wishcraft

more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Did you know ?

You can use Google Analytics with your website!

Random question

In admin, uploaded module icons are missing, how do I proceed?