1
I know this has been asked before, I searched for a good bit but still cant find(or I cant understand) a solution to get the users avatar to display on the userpage module.
I have tried several different smarty variables and i couldnt get it to work, I did manage to edit the index page to show 'Hello, <$xoops_uname}> welcome to your page but the avatar thing still eludes me.
I searched the index.php file and found this code (line 105)
$xoopsTpl->assign('user_avatar', XOOPS_UPLOAD_URL.'/'.$page_user->getVar('user_avatar'));
Si i figured (not sure if my smarty code is correct here) if i put this code on the template file:
<img src="<{$XOOPS_UPLOAD_URL}>/<{$user_avatar}>" />
but it still does not work, just shows the red X when i look at the properties of the red X it shows the path as
http://mysite.com/uploadshttp://mysite.com/uploads which is obviously wrong.
In the modules changelog it says:
Quote:
In the module's index page you can now use the folowing Smarty variables (the name should be explicit) :
I'm not sure what 'name shoudl be explicit' means though
Im not sure if im doing the smarty wrong or maybe the code in the php file is wrong, has anyone got avatars to show on the latest version of userpage?
Im using zoops 2.0.13.2
Cheers.
Michael Jackson = King Of Pop
Xoops = King Of CMS