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

Reply
 
Thread Tools
Show User's Avatar in Navbar v1.1 Details »»
Show User's Avatar in Navbar v1.1
Version: 1.1, by fraghappy fraghappy is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-13-2005 Last Update: 06-14-2005 Installs: 71
Uses Plugins Template Edits
 
No support by the author.

This is my first plugin for vB. It took me awhile to figure things out, but, once I polished it down, it was a piece of cake. If you encounter any problems or have any suggestions, please let me know, thanks!

IF YOU HAVE VERSION 1.0 INSTALLED, please update to the most recent version (1.1). This is because of a necessary bugfix needed to prevent users who do not have avatars from having image problems!

-------------------

[3.5.x] Show User's Avatar in Navbar

Designed and Coded by: Thorne N. Melcher ("Frag")
Version: 1.1 (released 6/14/05)
Screenshots: 1; included in the .zip file.
Description: This hack will display the user's avatar next to the "Welcome, {username}" message in the navbar at the top of every page. If there is no user presently logged in, the plugin will not bother to query the database, and the avatar will not display.
Plugin ?2005 The Whispering Realms Studios.

Performance and Installation Specs
Supports vB versions: 3.5.x
New Queries: 1 per pageload, IF the user is logged in.
New Hook Calls: 1 (global_start)
New Files: 1 (/images/misc/noavatar.gif)
Template Modifications: 1 ('navbar')
File Edits: none

Included Files
avatar_on_navbar.xml - Plugin file
README.html - Installation instructions.
screenshot.jpg - Screenshot of the plugin in action.
/UPLOAD/images/misc/noavatar.gif - Default "No Avatar" image.
Version History
v1.1 (6.14.05) - A bug was indentified where, if the user viewing the page did not have an avatar uploaded/selected, it would try to display his or her avatar anyway.
New files: /images/misc/newavatar.gif
Changed files: /avatar_on_navbar.xml

v1.0 (6.14.05) - The first public release, complete with all necessary features.

Please click "Install" if you decide to use this plugin! Thank you!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-14-2005, 03:40 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! Have been wanting something to make the navbar look a little less boring for some time. Will surely install when I make the leap to 3.5.
Reply With Quote
  #3  
Old 06-14-2005, 03:57 PM
dreck's Avatar
dreck dreck is offline
 
Join Date: Nov 2004
Location: Pickens SC
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, very nice! This will come in handy when i upgrade to 3.5.

Also would be nice to have new & subscribed posts below the private messages.
Just a thought!

Thanks!
Reply With Quote
  #4  
Old 06-14-2005, 05:09 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice
Reply With Quote
  #5  
Old 06-14-2005, 05:11 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could get rid of that one query per page by simply adding:

PHP Code:
define('AVATAR_ON_NAVBAR'1); 
to the /includes/config.php file
Reply With Quote
  #6  
Old 06-14-2005, 05:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would take away the point of this being a "plugin" though

Satan
Reply With Quote
  #7  
Old 06-14-2005, 05:31 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellsatan
That would take away the point of this being a "plugin" though

Satan
Exactly, but you its always better to avoid adding unneeded queries.

I would release my version of this hack in the coding section if fraghappy doesnt mind.
Reply With Quote
  #8  
Old 06-14-2005, 07:52 PM
fraghappy fraghappy is offline
 
Join Date: Feb 2004
Location: Hell, TN, USA.
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dreck
Yes, very nice! This will come in handy when i upgrade to 3.5.

Also would be nice to have new & subscribed posts below the private messages.
Just a thought!

Thanks!
I'll create a plugin based off of this called "Navbar Plus" or something. Look for it later tonight/early tomorrow.

Quote:
Originally Posted by M1th
Exactly, but you its always better to avoid adding unneeded queries.

I would release my version of this hack in the coding section if fraghappy doesnt mind.
I'm really uptight about people stealing my work and not giving me credit. Thank you for asking, that really makes the difference to me. Please, in your post on vB.org and in the hack, please give mention of both me and this hack. I really don't mind people editing what I do, that's what's nice about open-source language. I'm just glad that you aren't going to steal me work and take the credit. Go for it!
Reply With Quote
  #9  
Old 06-14-2005, 09:04 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When the user logged in doesn't have an avatar set, it shows that lovely red x box, would there be anyway to set it to go to a certain say, No Avatar Selected Image, if the user doesn't have an avatar set?
Reply With Quote
  #10  
Old 06-14-2005, 09:17 PM
fraghappy fraghappy is offline
 
Join Date: Feb 2004
Location: Hell, TN, USA.
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acidburn0520
When the user logged in doesn't have an avatar set, it shows that lovely red x box, would there be anyway to set it to go to a certain say, No Avatar Selected Image, if the user doesn't have an avatar set?
I'll update it for you later tonight. Thanks for letting me know about that.
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 03:32 AM.


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.05082 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete