Hello everyone,
i have created a new panel above the navbar, that include the username and the avatar. I have set the link to the user avatar, but if it is not present, it will show another default img (i used the background propriety, but you can also use "onError..").
Now the question,
i have uploaded some avatar, that can be selected by the user from the user control panel, but if a user select an avatar (predefined generic avatars), it will not shown the avatar.
The code i am using to show an avatar is
Code:
<img style="background: url(images/misc/unknown.gif) center; height: 40px; width: 40px;" src="{vb:raw vboptions.bburl}/image.php?u={vb:raw bbuserinfo.userid}">
so if the avatar is not present it will show the backgrund
Any help is much appreciated