![]() |
Show User's Avatar in Navbar v1.1
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! |
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. :)
|
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! |
nice
|
You could get rid of that one query per page by simply adding:
PHP Code:
|
That would take away the point of this being a "plugin" though ;)
Satan |
Quote:
I would release my version of this hack in the coding section if fraghappy doesnt mind. :) |
Quote:
Quote:
|
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?
|
Quote:
|
All times are GMT. The time now is 08:40 AM. |
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:
|