Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Avatar in Header Details »»
Avatar in Header
Version: 1.1.0, by Seven Skins Seven Skins is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.1 Rating:
Released: 12-16-2009 Last Update: 12-20-2009 Installs: 407
Uses Plugins Template Edits
 
No support by the author.

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">
Add Below:
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:
UserMike
Pass
vborg 

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

File Type: xml product-sevenskins_header_avatar_1.1.0.xml (1.4 KB, 2456 views)

Screenshots

File Type: png 1313a.png (28.4 KB, 0 views)
File Type: png 1313b.png (22.6 KB, 0 views)
File Type: png 1313c.png (20.3 KB, 0 views)
File Type: png 1320.png (35.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
mohammadxxx, Winter Sonata

Comments
  #22  
Old 12-21-2009, 02:45 AM
WNYorker WNYorker is offline
 
Join Date: Nov 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 12-21-2009, 01:23 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WNYorker View Post
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.
Updated, download and overwrite the exisitng installation.

.
Reply With Quote
  #24  
Old 12-21-2009, 07:51 PM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you all very well prefect
Reply With Quote
  #25  
Old 12-21-2009, 09:08 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried with VB4 Gold and it's failing to show the avatar anything missing off the steps? or does this not work with VB4?
Reply With Quote
  #26  
Old 12-21-2009, 10:19 PM
Glenshadow Glenshadow is offline
 
Join Date: Oct 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 12-22-2009, 02:22 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent.. Nice one mate.. Installed
Reply With Quote
  #28  
Old 12-22-2009, 04:45 AM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and 2nd the Gold Conformation. Thanks for another cool product. looks nice in combination with Alternative Header User Info
Reply With Quote
  #29  
Old 12-22-2009, 04:49 AM
bacemail bacemail is offline
 
Join Date: Dec 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance you created a mod that places an avatar in the thread list next to the thread creator's user name?
Reply With Quote
  #30  
Old 12-22-2009, 04:29 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nitra1000 View Post
Tried with VB4 Gold and it's failing to show the avatar anything missing off the steps? or does this not work with VB4?
NVM was me being a nonce and not installing the plugin correctly.

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.
Reply With Quote
  #31  
Old 12-22-2009, 08:00 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ 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>";
And edit "border: 1px solid #FF0000" to suit your needs.


.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04898 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete