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)
-   -   Avatar On Navbar (https://vborg.vbsupport.ru/showthread.php?t=99498)

sabret00the 10-30-2005 09:12 AM

Quote:

Originally Posted by knertified
I had a problem with this plugin but it could be because I am running VB Advanced (not really sure)... In any case if someone didn't have an avatar I would see the red X. The URL is was pointing to was something like "http://www.myboard.com/http://www.myboard.com/images/misc/....". Anyways I modified code to fix it.

Maybe it will help something out.

I changed the 5 line up from the bottom

FROM:
PHP Code:

$navbaravatar "<img src=\"" $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"

TO:
PHP Code:

 $navbaravatar "<img src=\"" "$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"


yup that's a vBa issue, due to the fact it rewrites all of your stylevars, but
PHP Code:

 $navbaravatar "<img src=\"$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"

would've been fine :)

Boofo 10-30-2005 09:44 AM

Is there a way to have it not show anything if the user doesn't have an avatar? Like it looks BEFORE we add the hack.

TygerTyger 10-30-2005 09:53 AM

Quote:

Originally Posted by Boofo
Is there a way to have it not show anything if the user doesn't have an avatar? Like it looks BEFORE we add the hack.

Why not just point the noavatar URL in the XML to a 1x1 transparent pixel image instead?

sabret00the 10-30-2005 10:00 AM

Quote:

Originally Posted by Boofo
Is there a way to have it not show anything if the user doesn't have an avatar? Like it looks BEFORE we add the hack.

you could try changing
HTML Code:

<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
to
HTML Code:

<if condition="$navbaravatar"><td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td></if>

cbr929rrerion 10-30-2005 04:16 PM

the code for re-sizing works like a champ, thanks..

installed..

well.. istalled with a little editing to add a few things...

cbr929rrerion 10-30-2005 04:34 PM

Here is an image of it

Parture 10-30-2005 07:32 PM

When I log out there is a space of about a half an inch. in the Username password box.

Also, the same problem occurs on the cmps page at the top right corner if you are logged in.

Any ideas?

http://biblocality.com/forums/cmps_index.php

Sc0rian 10-31-2005 03:14 PM

i got the same problem as Parture.. but i was hoping it would go away once i get the xml in place. but hasnt

sabret00the 10-31-2005 05:47 PM

Quote:

Originally Posted by Parture
When I log out there is a space of about a half an inch. in the Username password box.

Also, the same problem occurs on the cmps page at the top right corner if you are logged in. Also notice, when logged in or not, the right column of vBulleting is all messed up. Any ideas?

http://biblocality.com/forums/cmps_index.php

i can't see the problem, can you take a screenshot?

sabret00the 10-31-2005 05:47 PM

Quote:

Originally Posted by Sc0rian
i got the same problem as Parture.. but i was hoping it would go away once i get the xml in place. but hasnt

can i see a screenshot?


All times are GMT. The time now is 03:37 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
  • Page Generation 0.01411 seconds
  • Memory Usage 1,749KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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