Hello,
I'm trying to do this:
So when the user is logged in, he will see his avatar, when the user is not logged, it will show a default one.
This is the code I made:
However is not showing the avatar of the user, what is the avatar url variable for header? Is possible to do the size change without deforming the avatar too much? I saw something similar on user profiles.
Thank you all in advance.
I'm trying to do this:
So when the user is logged in, he will see his avatar, when the user is not logged, it will show a default one.
This is the code I made:
Code:
<if condition="!is_member_of($bbuserinfo, 1, 3)"> <a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]"><img src="$prepared[avatarurl]" alt="<phrase 1="$bbuserinfo[username]">$bbuserinfo[username]</phrase>" width="48" height="48" border="0" /></a> <else /> <img src="$stylevar[imgdir_misc]/defaultavatar.gif" alt="Avatar" width="48" height="48" border="0" /> </if>
Thank you all in advance.
Comment