The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Avatar in Header Details »» | |||||||||||||||||||||||||||||||||||
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 . Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
mohammadxxx, Winter Sonata |
Comments |
#82
|
||||
|
||||
Installed perfectly. Thanks a bunch.
|
#83
|
||||
|
||||
I change my template to make it this way:
I want is to display the user avatar after registering your account |
#84
|
|||
|
|||
In IE 8 with vBulletin 4.0.5 I get this error. It works perfectly fine with Firefox logged in as the same user and also with the admin account. See the code below the images.
IE 8 Regular view: IE 8 Compatibility view: What it looks like in Firefox: Code:
<table border="0"> <tr> <td width="66" valign="top" style="padding-top: 1px;">{vb:raw header_avatar}</td> <td valign="top" align="left"><vb:if condition="$notifications_total"> <dl class="th-dropdown"> <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)"><img src="http://www.viralarchive.com/images/buttons/sortasc.png" border="0" /> {vb:raw bbuserinfo.username} - ({vb:raw notifications_total})</dt> <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)"> <ul> {vb:raw notifications_menubits} <vb:else /> <dl class="th-dropdown"> <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)"><img src="images/buttons/sortasc.png" border="0" /> {vb:raw bbuserinfo.username}</dt> <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)"> <ul> </vb:if> <li><a href="{vb:link member, {vb:raw bbuserinfo}}" class="th-underline">My Profile</a></li> <li><a href="profile.php?do=editprofile{vb:raw session.sessionurl_q}" class="th-underline">Edit Profile</a></li> <li><a href="usercp.php{vb:raw session.sessionurl_q}" class="th-underline">My Settings</a></li> <li><a href="profile.php?do=buddylist{vb:raw session.sessionurl_q}" class="th-underline">Friends & Contacts</a></li> <li><a href="private.php{vb:raw session.sessionurl_q}">Private Messages</a></li> </ul> </dd> </dl><div style="margin: 0px 0px 7px 0px; font-size: 11px;"><b>Last Login:</b> {vb:raw pmbox.lastvisitdate}</div> <div style="width: 194px; color: #FFF; padding: 4px 4px 4px 4px; background:#28437c; font-size: 11px;"> <vb:if condition="$show['admincplink']"><b><a href="http://www.viralarchive.com/admincp/index.php" class="th-underline">Admin</a></b> - </vb:if> <b><a rel="help" href="http://www.viralarchive.com/xperience.php">Statistics</a><b> - <b><a href="login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">Logout</a></b></div></td></tr> </table> |
#85
|
|||
|
|||
Does anyone know how to get the avatar to point to the users member.php page instead of their edit avatar page?
|
#86
|
|||
|
|||
Thank you, awesome work
|
#87
|
|||
|
|||
It doesn't work w/this skin here --> https://vborg.vbsupport.ru/showthread.php?t=242855 (CF1), b/c they don't have a "toplinks" pointer in the HEADER template.
Any ideas? Thanks :up: |
#88
|
|||
|
|||
Nice One...
|
#89
|
|||
|
|||
How do I use in a widget?
|
#90
|
|||
|
|||
Is this mod supported?
|
#91
|
||||
|
||||
It is ... if you use it in default skin and in the header not in a widget.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|