1
AndiSmith
Adding a user's avatar
  • 2008/6/12 23:39

  • AndiSmith

  • Just popping in

  • Posts: 3

  • Since: 2008/6/12


Hi everyone,

I'm trying to add the user who's logged in's avatar to the webpage, but I can't seem to find the tag I need.

I've managed to find <{$xoops_uname}> makes the username appear by downlaoding another theme...

Is there a list of what all the available tags are somewhere? I've had a search around but can't find it.

2
Anonymous
Re: Adding a user's avatar
  • 2008/6/17 0:22

  • Anonymous

  • Posts: 0

  • Since:


Try to add these lines to your theme.html:

<{php}>
GLOBAL 
$xoopsUser;
$avatar =  $xoopsUser->getVar('user_avatar');
$GLOBALS['xoopsTpl']->assign('avatar'$avatar);
<{/
php}>
<
div align="center"><img src="<{$xoops_url}>/uploads/<{$avatar}>">div>
Hello <a href="<{$xoops_url}>/user.php"><{$xoops_uname}>a>



3
AndiSmith
Re: Adding a user's avatar
  • 2008/6/27 18:44

  • AndiSmith

  • Just popping in

  • Posts: 3

  • Since: 2008/6/12


Brilliant. Thanks for your help! :)

Login

Who's Online

248 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

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

Latest GitHub Commits