View Full Version : Avatar on left side navbar?
raiderlax
13 Aug 2007, 05:20
Hello I have asked this before and have not still not found the way to get the avatar to be put in the navbar, beside the welcome info, please see the attached pic.
I really need to do this and I know you guys know how, please some help :)
Dismounted
13 Aug 2007, 08:08
Did you use my avatar code I posted on the forums once? I would find it for you, but I'm a bit short of time.
raiderlax
14 Aug 2007, 05:23
Did you use my avatar code I posted on the forums once? I would find it for you, but I'm a bit short of time.
Sorry dismounted I have been looking through your posts and cannot find the avatar code that you have posted.
When you have time it would be very appreciated if you could help me with this.
Thank you.
Dismounted
14 Aug 2007, 12:51
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
raiderlax
14 Aug 2007, 16:44
Thank you so much Dismounted, now I'm sorry to ask this, but where do that code go?
raiderlax
16 Aug 2007, 08:07
Thank you so much Dismounted, now I'm sorry to ask this, but where do that code go?
bump, sorry i need to know where to put this :)
Dismounted
16 Aug 2007, 09:04
In a plugin. $avataurl will contain the URL, so just use a normal image tag.
raiderlax
16 Aug 2007, 18:56
Thanks Dismounted, so I put that code in as a plugin, than I put $avataurl in the navbar where I want to display the avatar???
Also with the plugin, what hook location do I put it?
Thanks so much?
Also how would I have like a default avatar their, just an image like I in vBadvanced, that says "No avatar" and when they click it it brings them to the avatar options?
Dismounted
17 Aug 2007, 13:06
Hook Location: global_start
As I said before, $avatarurl only contains the URL (as per the variable name). You will have to code the image tag.
Analogpoint
18 Aug 2007, 06:36
As dismounted says, put <a href="$avatarurl" alt="" /> in the navbar template.
Dismounted
18 Aug 2007, 06:53
You're wrong, that's a hyperlink, not an image...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.