vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show User's Avatar in Navbar v1.1 (https://vborg.vbsupport.ru/showthread.php?t=83053)

Gripemaster 02-03-2006 12:41 PM

I'm afraid I had to uninstall this one :(

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 :)

t3aseFP 02-04-2006 01:54 AM

Quote:

Originally Posted by Gripemaster
I'm afraid I had to uninstall this one :(

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 :)

Code:

<td style="vertical-align: bottom; width: 80px; height: 60px; margin: 0px; padding: 0px;">
  <a href="profile.php?$session[sessionurl]do=editavatar"><img src="$navbar_ava[0]" alt="Your avatar" style="width: 100%; height: 100%;" border="0"/></a>

Just add the td and img style attributes and edit as desired.

Gripemaster 02-04-2006 03:17 AM

Quote:

Originally Posted by t3aseFP
Code:

<td style="vertical-align: bottom; width: 80px; height: 60px; margin: 0px; padding: 0px;">
  <a href="profile.php?$session[sessionurl]do=editavatar"><img src="$navbar_ava[0]" alt="Your avatar" style="width: 100%; height: 100%;" border="0"/></a>

Just add the td and img style attributes and edit as desired.

Excellent!!! Thank you! :)

mploetner 03-07-2006 05:04 PM

Quote:

Originally Posted by hitmanuk2k
OK I can't display an image, all that comes up is "Your Avatar" - which is the image alt.

same to me... any suggestions

gravesend46 04-24-2006 08:39 PM

Thanks, seems to work for me on 3.5.4!

Aken 05-05-2006 08:34 AM

Quote:

Originally Posted by t3aseFP
Cool plugin, works nice.

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.

Annapurna 05-25-2006 03:20 PM

Nice hack, installed, but then realized, that is does not work with Firefox (see screenshot)
Attachment 48215

Andreas

Benj 05-29-2006 03:32 PM

is there an easy way to make this the profile picture instead

carmichael1973 06-08-2008 12:22 PM

Quote:

Originally Posted by Aken (Post 967343)
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";
}
}

If anyone figures this out, PLEASE post it!
:up:

edgeyveggie 06-13-2008 12:50 AM

How can I do this with 3.6.8? I'd love to know!!


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete