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

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


Members: 0


Guests: 189


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Apr 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 monitor all visitor activity through php-stats!

Random question

Whenever I try to add a new block, it always shows up for Webmasters only.
No matter what I try, there seems to be no way to make it display for any other group. Other blocks are fine, but not custom ones.
How can I make blocks that display for groups other than Webmasters?