Skip to content
bman46 edited this page Jul 24, 2016 · 5 revisions

This will show you how to display a logged in user's avatar!

This assumes you have installed the library correctly

1. To get a user's avatar URL use one of the following:

$steamprofile['avatar'] //Displays the avatar with the dimensions: 32x32px      

$steamprofile['avatarmedium'] //Displays the avatar with the dimensions: 64x64px   
     
$steamprofile['avatarfull'] //Displays the avatar with the dimensions: 184x184px

2. Now to display it as an image you can use something like the following:

<img src="<?php echo $steamprofile['avatar'];?>" title="" alt="" />

<img src="<?php echo $steamprofile['avatarmedium'];?>" title="" alt="" />

<img src="<?php echo $steamprofile['avatarfull'];?>" title="" alt="" />