Version: 1.1, by fraghappy
Developer Last Online: Mar 2006
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.
I'm rather liberal with my avatar sizes (150 X 150 and 150KB), and it left a HUGE blank space between my two navbars that just didn't look right. Is there a way of making the script resize the avatar to a smaller size? I would still like to use this product
I'm rather liberal with my avatar sizes (150 X 150 and 150KB), and it left a HUGE blank space between my two navbars that just didn't look right. Is there a way of making the script resize the avatar to a smaller size? I would still like to use this product
One question, when using vBadvanced, the homepage uses navbar, but the avatar will not show. I'm assuming because there's a variable that's not set when using the vBa based page.
Throughout the vB pages it works fine, though.
Any way you can let me know how to define the variable for vBa or hack it to work? I'll start playing with things in the mean time.
I'm in the same boat - would love to get this working on VBA as well.
I'm in the same boat - would love to get this working on VBA as well.
I'm stuck with the same issue. I can't get the avatar to show on non-vb pages. Everything else works fine. This is an awesome hack. I've played around with these variables and I get DB errors if I change the fetch_avatar_url.
Quote:
if ($vbulletin->userinfo['userid'])
{
require_once('./includes/functions_user.php'); //make sure we have the function we need
$navbar_ava = fetch_avatar_url($vbulletin->userinfo['userid']);
if (!is_array($navbar_ava))
{
$navbar_ava[] = $vbulletin->options['bburl'] . "/images/misc/noavatar.gif";
}
}