![]() |
Avatar in Header
1 Attachment(s)
Avatar in Header
This will add user avatar in header. User without avatar will be show blank avatar. Unregistered user will not be shown any avatar. Installation: -Import the XML file via ... AdminCP > Plugin & Products > Manage Products > Add/Import Product. Find in header template: HTML Code:
<div id="toplinks" class="toplinks"> HTML Code:
<div style="float:right; margin: 5px -12px 5px 10px;">{vb:raw ss_avatar}</div> You can edit the margins to suit your needs Live demo Login to see the avatar. PHP Code:
PS. Minimum height for the logo you are using must be 65 pixels, or else the avatar will be hidden behind the navbar. Click Install if using this mod. Thanks Updated: 18 Dec 09: Changed template edits to correct problems with adverts in the header. 21 Dec 09: Add url to profile.php so avatar can be edited. 22 Dec 09: Working with vBulletin 4.0.0 (Gold) 14 Jan 10: Updated for vBulletin 4.0.1 . |
Thanks! Will be using this once VB 4 goes Gold!
|
LOL That's Kinda Nice ! I can Imagine the members response :eek: tagged
|
Excelente Tnks Man
|
I can see my members enjoying this. =) Tagged.
|
Nice work
Can you make it as widget ? |
Looks good thanks, installed.
|
My 3.8.x version: https://vborg.vbsupport.ru/showthread.php?t=227666
:( |
I love this idea, but with the use of advertisements it made my header look sloppy, so had to remove it.
:( |
nice mod, it looks good :)
|
Quote:
See Screenshot: https://vborg.vbsupport.ru/attachmen...1&d=1261164876 . |
Nice one, thank you and tagged.
Probably will get more users uploading an avatar. :) |
|
great, thanks :D
|
Great, Nice one thanks
|
It not works in VB4 beta 5 with another skin ...
In applying this supplement will not let me enter the forum ... |
Have they released RC5 ... I dont think they have yet.
You just do the template edits according to your skin. . |
I have: Powered by vBulletin™ Version 4.0.0 Beta 5 Copyright ? 2009 vBulletin Solutions, Inc. All rights
Just apply and try to enter the forum: Quote:
|
Edit the plugin Header Avatar ... find this "./includes/functions_user.php" and edit it to "./includes/functions_user.php5"
. |
Thanks!
|
any way to link the avatar to the change avatar page? tried coding it myself, thought it might be easy, but couldn't figure it out.
|
Quote:
. |
Thank you all very well prefect
|
Tried with VB4 Gold and it's failing to show the avatar anything missing off the steps? or does this not work with VB4?
|
I liked the idea and installed it, however what about a piece of code to add maybe a table border or something similar around the Avatar when it is displayed ? Reason I ask is because most avatars are pictures and it kinda looks like a pic is just slapped up there, nothing fancy. (I haven't dug around in the code at all to try an accomplish this myself, but just suggesting.)
Thanks again for the mod ! *edit* Forgot to mention, I have it working in vB4.0 Gold, I just followed the steps outlined and it works. Another thing I was thinking.. what about calling it directly as it would in say postbit, so the Avatar populates the in exact size that it is through the rest of the board ? I am no coder by far, but just an idea. |
Excellent.. Nice one mate.. Installed
|
Installed and 2nd the Gold Conformation. :) Thanks for another cool product. looks nice in combination with Alternative Header User Info
|
Any chance you created a mod that places an avatar in the thread list next to the thread creator's user name?
|
Quote:
For anyone else... you import the xml without filling in the other product details... p.s Excellant plugin although would like to see a border around the pictures. |
^^ In the Header Avatar plugin find:
Code:
$ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"60\" height=\"60\" border=\"0\" alt=\"Your Avatar\" /></a>"; Replace it with: Code:
$ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"60\" height=\"60\" style=\"border: 1px solid #FF0000;\" alt=\"Your Avatar\" /></a>"; . |
I tried that just now.. no worky for me... tried solid, groove, etc.. even tried 10px to make sure it wasn't being weird on me...
|
Try again please, I have edited my post above.
. |
Great, Nice one thanks !
|
Bingo.. thanks !
|
Thanks for this mod.
The issue that I am having is not with this mod, but I can't figure out how to make a minimum width of the header.. so I can change the header graphic and when someone resizes the avatar won't throw off the header graphic. I only found the 10 ways tutorial at vBulletin.com on how to change hte header graphic, but I can't find any place that has info on how to make a minimum width... =/ Thanks again! |
hi. it is not showing in my ie8
|
I like it. Thanks.
|
nice one m8 good work :-)
|
Super. Thank you!
|
i would like to know if its possible to get it to float instead, i have already modified my own header
www.tutorials4you.co.uk |
All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|