View Full Version : how to add avatar in navbar
Annapurna
05-24-2006, 03:19 PM
Hi,
I've tried to add the avatar into the navbar right to the 'Welcome Username'.
I've added this code:<if condition="$show['avatar']"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></if>
But it didn't work.
Any suggestions?
Andreas
Try the "Welcome Panel (https://vborg.vbsupport.ru/showthread.php?t=105958&highlight=avatar+in+navbar)" modification. It includes the avatar. I found that by the way by typing "avatar in navbar" in the search box at the top of the page. ;)
Annapurna
05-24-2006, 07:11 PM
Thanks but that's not exactly waht I have been looking for.
No stats, just a simple line of code showing the avatar!
Andreas
Take that modification, install it, and then edit it to your needs. I suggested that because you need to put the avatar in the scope of the navbar and that modification does that for you. ;)
Annapurna
05-24-2006, 07:16 PM
I've done it, installed it, but it was too much!
Unistalled again.
And unfortunately I'm not good enough in coding to scratch out the needed code...
Andreas
Try this out: https://vborg.vbsupport.ru/showthread.php?t=83053&page=3&highlight=avatar
Annapurna
05-25-2006, 03:10 PM
Just right! Thanks a lot!
Andreas
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.