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

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


Members: 0


Guests: 88


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

The basic structure of a XOOPS theme is similar to that of any other static website template. The primary difference is the addition of Smarty variables that interact with XOOPS to output your dynamic content.

Random question

How do I identify classes and selectors?