1
martyboy
Displaying avatars in Userpage 1.21
  • 2007/2/11 22:12

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


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 ashttp://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

2
martyboy
Re: Displaying avatars in Userpage 1.21
  • 2007/2/12 17:08

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


Need to bump this, sorry.

Can anyone even give me a hint and I will try figure it out for myself? I've tried different smarty variables for getting avatars to show but I just cant get it to work, if someone could point me in the right direction it would be much appreciated.

Thanks.
Michael Jackson = King Of Pop

Xoops = King Of CMS

Login

Who's Online

215 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

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

Latest GitHub Commits