PDA

View Full Version : Avatar forum home quick fix


ibuddy
07-10-2008, 06:45 AM
http://www.domain.com/customavatars/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif

The link above after researching will show a members avatar. How do I have it show that avatar but also detect if there is no avatar to display like no-avatar.gif?

Has to be some <if><else></if> statement I could quickly make?

Opserty
07-10-2008, 08:09 AM
Why don't you say:

<if condition="$bbuserinfo['avatarrevision']">
http://www.domain.com/customavatars/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif
<else />
no-avatar.gif
</if>