PDA

View Full Version : Avatar On Navbar


Pages : [1] 2

sabret00the
10-27-2005, 10:00 PM
Erm, this add's a cool Avatar to your navbar but only for logged in users :D

something like that, i really need to think of ways to make this stuff more exciting.

fixed bug where pre-defined avatars wouldn't show.

TygerTyger
10-28-2005, 11:24 AM
Very nice, works great. I found it displays better with style="padding:0px" in the <td> tag as otherwise it makes your navbar rather more thicker. Just preference I guess. Installed...

sabret00the
10-28-2005, 11:35 AM
glad you're enjoying it :)

Gizmo5h1t3
10-28-2005, 11:43 AM
yep, good work m8....

altho i wont be adin it, as it`d look a bit silly, along with ZT`s welcome panel, which also has the avatar in it...lol

nice tho..

Snake
10-28-2005, 02:21 PM
Installed! ;)

sabret00the
10-28-2005, 02:24 PM
Installed! ;)

installed like everything i've done today, i'm your number one fan ;) :p

nokturno
10-28-2005, 02:31 PM
Very nice, works great.

cbr929rrerion
10-28-2005, 07:05 PM
mine is showing up as an empty image, like it cant find the avatar..

cbr929rrerion
10-28-2005, 07:35 PM
path to the images is images/avatars/

In root directory....

Any ideas?

sabret00the
10-28-2005, 08:48 PM
path to the images is images/avatars/

In root directory....

Any ideas?

what's the url that that dead image is pointed at?

cbr929rrerion
10-28-2005, 08:51 PM
http://crotchrocketracing.com/gallery/Array[bburl]/images/avatars/4.gif

if it was pointed to http://crotchrocketracing.com/gallery/images/avatars/4.gif

it would work.. how can I correct that

sabret00the
10-29-2005, 09:31 AM
http://crotchrocketracing.com/gallery/Array[bburl]/images/avatars/4.gif

if it was pointed to http://crotchrocketracing.com/gallery/images/avatars/4.gif

it would work.. how can I correct that

give me a couple hours and i'll upload a fixed version.

cbr929rrerion
10-29-2005, 02:19 PM
you rock.. Thank you.. let me know when.. I got ya on email alert...

Gottcha
10-29-2005, 08:44 PM
mine is showing up as an empty image, like it cant find the avatar..

Having the same problem....any fix yet?

cbr929rrerion
10-29-2005, 09:23 PM
has it been a few hours yet?

sabret00the
10-29-2005, 10:00 PM
sorry about that, hectic day, fixed now.

TitanJeff
10-29-2005, 10:39 PM
Love this but had a n00b question. I see in the instructions the text to find in NAVBAR but you say "add above". Does this mean that the text below that goes above the <else/> code or what? Thanks.

sabret00the
10-29-2005, 10:49 PM
Love this but had a n00b question. I see in the instructions the text to find in NAVBAR but you say "add above". Does this mean that the text below that goes above the <else/> code or what? Thanks.

it does indeedy :)

cbr929rrerion
10-29-2005, 11:05 PM
you are the man... thank you so very much.. thats so cool

JaimeJenn
10-29-2005, 11:20 PM
Is there a way for the avatars up there to show up smaller than they really are - like a thumbnail version? (I'm sure it's just altering the code, right? I'm new to this ;)) Our avs on our site are rather big 150x150ish so it makes that nav bar super huge.

hendri
10-29-2005, 11:38 PM
you are the man... thank you so very much.. thats so cool

INSTALLED THANKS !

TitanJeff
10-29-2005, 11:46 PM
Thanks.

It caused my little hack which tells visitors of their unread posts to go away. Should this happen? Also, the av didn't show up. I got the dividing line though.

cbr929rrerion
10-29-2005, 11:50 PM
anyone know the line of code that shows new post count and a link to them, I had one on my cmps welcome block but stupid me deleted the block and no one will send me the welcome block.mod file

knertified
10-30-2005, 02:44 AM
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:

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


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

cbr929rrerion
10-30-2005, 02:48 AM
if anyone can help us resize that would be the bomb, my avatars are set at 100 X 100 and I prefer the one here to be like 50 X 50

It does make the nav bar to big, any way to do that...?

Ben5150
10-30-2005, 03:49 AM
Installed,works great thanks... :)

Ben5150
10-30-2005, 04:09 AM
can this be put in vBadvanced CMPS v2.0.0 if so where would this be and thanks, great little hack... :squareeyed:

MioTraGusa
10-30-2005, 07:30 AM
if anyone can help us resize that would be the bomb, my avatars are set at 100 X 100 and I prefer the one here to be like 50 X 50

It does make the nav bar to big, any way to do that...?

Search in the code pluggin for 3 times

alt=\"Your Avatar\"

and Replace for

alt=\"Your Avatar\" height=\"50\"

Bye

"Sorry for my english"

sabret00the
10-30-2005, 09:07 AM
Thanks.

It caused my little hack which tells visitors of their unread posts to go away. Should this happen? Also, the av didn't show up. I got the dividing line though.

you got a screenshot of this problem?

sabret00the
10-30-2005, 09:08 AM
Is there a way for the avatars up there to show up smaller than they really are - like a thumbnail version? (I'm sure it's just altering the code, right? I'm new to this ;)) Our avs on our site are rather big 150x150ish so it makes that nav bar super huge.

depends on the method you're after, i suppose you could use php to resize the avatars or you could just do it with html and set them to a specific size.

sabret00the
10-30-2005, 09:12 AM
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:

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


TO:
$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 $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
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
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
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>

to <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
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
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?

Sc0rian
10-31-2005, 06:42 PM
can i see a screenshot?


sure, click here (http://sc0rian.com/navbar)

cant even get the thing to work :ermm: so simple as well!

Parture
10-31-2005, 07:09 PM
The problem occurs in two places.

Sc0rian
10-31-2005, 07:40 PM
seems all cool now... :)

Parture
10-31-2005, 08:38 PM
Can't you see that space? It happens when,

1) logging out

2) or logged in on the cmps page

sabret00the
10-31-2005, 08:46 PM
seems all cool now... :)

yours fixed itself?

sabret00the
10-31-2005, 08:47 PM
Can't you see that space? It happens when,

1) logging out

2) or logged in on the cmps page

what browser you using?
how are your avatars stored?

sabret00the
10-31-2005, 08:53 PM
you could try changing
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>

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

that don't work, so what i'll do is make it so that's a coded option for the next version.

i've also managed to get it to resize and keep aspect ratio of avatars too but i'll release that as an add-on or seperate xml file in the zip :)

zamalekfanz
10-31-2005, 10:54 PM
the plugin get the path wrong
it got mine like this ( http://zamalekfans.com/index.php/images/misc/noavatar.gif )
it does not suppose to get the ( /index.php/ ) in the path , so i think there is some way to get around it

spudor
10-31-2005, 10:57 PM
Working great, thanks mucho

Parture
11-01-2005, 01:01 AM
Sabret,

what browser you using?
It happens on MI, AOL and Firefox Explorers

how are your avatars stored?
I don't know. How do I change the way they are stored? And why would I want to do this?

It works now with that if condition you gave me. Yea! Thanks.

REQUEST: Can you make it so when someone is not logged in, it shows an avatar that says sign up and register, or make it an option to have or not to have as a feature.

Boofo
11-01-2005, 01:34 AM
you could try changing
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>

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

Thank you, sir. Excellent plug-in. ;)

wrx02
11-01-2005, 03:15 AM
Have installed this and can't seem to get it working.

I have an avatar selected but it still shows "your avatar" link and the link does not work, i get a 404 error

sabret00the
11-01-2005, 09:22 AM
the plugin get the path wrong
it got mine like this ( http://zamalekfans.com/index.php/images/misc/noavatar.gif )
it does not suppose to get the ( /index.php/ ) in the path , so i think there is some way to get around it

remove the "index.php/" from your bburl in the admincp

sabret00the
11-01-2005, 09:22 AM
Have installed this and can't seem to get it working.

I have an avatar selected but it still shows "your avatar" link and the link does not work, i get a 404 error

what's the url to the image that's not showing?

sabret00the
11-01-2005, 09:26 AM
anyone else having problems i may have missed?

wrx02
11-01-2005, 01:14 PM
what's the url to the image that's not showing?

stupid for asking but how can I tell? :ermm:

sabret00the
11-01-2005, 01:31 PM
stupid for asking but how can I tell? :ermm:

if you don't know, just view the source and then copy all of that and paste it between some [html] tags here :)

brycee
11-01-2005, 01:48 PM
İnstaled Thanks Good

wrx02
11-02-2005, 12:44 AM
if you don't know, just view the source and then copy all of that and paste it between some [html] tags here :)


<td class="alt1"><a href="http://flscc.net/profile.php?do=editavatar"><img src="http://flscc.net/forums/image.php?u=1&amp;dateline=1130856561" alt="Your Avatar" border="0" /></a></td>


that what you're lookin for?

rb290
11-02-2005, 03:44 AM
thanks.
but it makes the parts thick like it makes the other parts have extra space, right under the Welcome, *username*
Private Messages

ximcix
11-02-2005, 06:32 AM
Nice
Installed

sabret00the
11-05-2005, 08:38 AM
<td class="alt1"><a href="http://flscc.net/profile.php?do=editavatar"><img src="http://flscc.net/forums/image.php?u=1&amp;dateline=1130856561" alt="Your Avatar" border="0" /></a></td>


that what you're lookin for?

seems that your vbulletion->options['bburl'] is set to http://flscc.net/forums where it should be http://flscc.net/ make that change and everything should be sorted.

Moncal
11-11-2005, 01:38 AM
I've installed it, but it only displays the no avatar selected image.

Gayble
11-11-2005, 04:29 AM
That's a great mod :) Thanks for sharing! ;)

sellbuydomain
11-11-2005, 05:06 AM
i install it every step like you said, but no avart showing on right top coner, do you know what is that? i use 3.5.1 version,

Funchiestz
11-17-2005, 09:06 PM
r s
i use 3.51, its work, but i unistalled it because look funny when the avatar size is 80X80

the navbar become too large >.<

but thanx anyway great hack

G0F0RBR0KE
11-17-2005, 09:46 PM
Is this for 3.5.1 if so, what is the "Hook Location This specifies the location within the vBulletin code of the hook that will fire this plugin function?"

sabret00the
11-17-2005, 11:28 PM
Is this for 3.5.1 if so, what is the "Hook Location This specifies the location within the vBulletin code of the hook that will fire this plugin function?"

when you upload it should auto find the hook though it's the global_start.

ShadowOne
11-19-2005, 12:48 PM
1400 PM's? LOL.... You Must Be Popular...But They Are ALL READ!

Anyways...Nice Hack...Installed...

sabret00the
12-09-2005, 10:21 AM
1400 PM's? LOL.... You Must Be Popular...But They Are ALL READ!

Anyways...Nice Hack...Installed...

lol, what can i say, i don't clear em out enough.

fn9mm
12-12-2005, 07:04 PM
can't get it to work on 3.5.2 get a vertical line and ... nothing , not even a broken link,...

I pasted the code correctly in navbar template
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>

though in FF it shows up as
<td class="alt1"><a href="http://www.abforum.be/profile.php?do=editavatar"></a></td>

what am i missing
i AM using vb advanced

EDIT : ok, it shows on all pages exept index.php which is VBAdvanced

http://www.abforum.be

fn9mm
12-12-2005, 07:31 PM
<font color="DarkRed">Problem solved for VBAdvanced</font>
needed to add a variable in
admin cp=>vBA CMPS=>edit pages=>home page=>Portal Output Global Variables=> added navbaravatar (without the $)

Mark Raven
12-23-2005, 02:39 PM
It's not working with vbadvanced for me.

I just get the following html when I view the page:

<td class="alt1"><a href="http://www.--------.com/forums/profile.php?do=editavatar"></a></td>

Plugin is installed, location is global_start, that's all correct...

I put the correct code in the navbar template:

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

I edited the Home Page / Default vbadvanced page and added "navbaravatar" under Portal Output Global Variables...

I'm using one of the site's non-custom avatars, but I also tried uploading my own.

Any idea what's wrong? Can I just not use this?

ggiersdorf
12-23-2005, 07:33 PM
can I ask for a change here, I dont know how to do it so I can remove my Welcome panel all-together.

#1. Make the Unread Private Messages Clickable to take you to PM page. 1 unread of 47 total etc...

#2. Can I move the Avatar to the Dead Middle and split the two panels to each side of it??

thanks in advance..

nuxvirg
01-05-2006, 06:58 AM
its not working in my forum !!

GrendelKhan{TSU
01-05-2006, 08:22 AM
anyone figureout how to get it to work with vbadvanced CMPS? :/

karrerax
01-05-2006, 09:48 AM
Installed on my Forum.
Thanks

sabret00the
01-05-2006, 10:03 AM
can I ask for a change here, I dont know how to do it so I can remove my Welcome panel all-together.


#1. Make the Unread Private Messages Clickable to take you to PM page. 1 unread of 47 total etc...

#2. Can I move the Avatar to the Dead Middle and split the two panels to each side of it??

thanks in advance..

how competant are you with html?

sabret00the
01-05-2006, 10:15 AM
its not working in my forum !!

what's wrong with it?

Chief-Phillips
01-05-2006, 01:43 PM
Cheers, great addition, mate :)

Got 'er workin flawlessly at my site (http://www.flandersmod.com/forum/index.php)

mkdevo
01-05-2006, 05:05 PM
installed, thanks!

i wasn't impressed by any welcome panels for 3.5x so far, so this works just fine for me. i modified it slightly to put the avatar to the left of the PM info, and also changed the PM info alignment to middle. i dig it. :)

mkdevo
01-05-2006, 07:38 PM
ok i'm having a problem getting the noavatar.gif to show up for users without avatars.. i have it in my images/misc dir, which is where the plugin points to, right? it's not showing up for users without avatars.. just the 'your avatar' link is showing.

any clues?

mkdevo
01-09-2006, 12:28 PM
ok i'm having a problem getting the noavatar.gif to show up for users without avatars.. i have it in my images/misc dir, which is where the plugin points to, right? it's not showing up for users without avatars.. just the 'your avatar' link is showing.

any clues?

anyone?

GrendelKhan{TSU
01-10-2006, 06:17 AM
anyone get this to work in the vbadvanced CMPS? mine doesn't show up...
otherwise...great stuff!! :D

fn9mm
01-10-2006, 07:10 AM
anyone get this to work in the vbadvanced CMPS? mine doesn't show up...
otherwise...great stuff!! :D

https://vborg.vbsupport.ru/showpost.php?p=847164&postcount=72

GrendelKhan{TSU
01-10-2006, 12:20 PM
https://vborg.vbsupport.ru/showpost.php?p=847164&postcount=72


sweeet!! thanks :)

DruidToolz
01-10-2006, 11:24 PM
Is there any word on the next version that your working on when its going to be released for 3.5.3 .. This would be a big help if was coming out soon...

crash resistant
01-11-2006, 03:25 PM
CMPS issue:

Even after I add "navbaravatar" variable to the global variables in CMPS, the avatar still does not load the proper path.

WRONG (what's happening): http://1crash.serveftp.com/useravatars/avatar1_13.gif
RIGHT: http://1crash.serveftp.com/forums/useravatars/avatar1_13.gif

Anyone have any insight? ty

DruidToolz
01-11-2006, 04:23 PM
Hey sabret00the .. I am having some problems trying to find the navbar template as you said in your instructions .. I am a n00b to modifications, but not in webdesigning.. Any help would be appreciated.. Thnx

crash resistant
01-11-2006, 04:54 PM
Druidtoolz... don't even go around installing modifications then.

But if you must know, it's under style manager, edit templates, and its under N for Navigation/Breadcrumb templates. -.-

DruidToolz
01-11-2006, 05:00 PM
Well i am not installing alot of Modifications to my forum, cuz alot of them i won't need... Oh what i meant by n00b was i am new to VB i only had it about 3 months and its th best forum from my last one

And Thanx for telling me were its at..

DruidToolz
01-11-2006, 06:19 PM
Ok i hate to double post on this.. But its still not working any help would be appreciated.. I have done everything that the instructions and i have the plugin active, but i guess it might be the version 3.5.3 of VB i am using :disappointed:

phonexpo
01-11-2006, 10:32 PM
I have working fine except it doesn't show on my main forum page.

http://phonexpo.net/index.php

DruidToolz
01-12-2006, 06:47 PM
Did you happen to edit any of the files that came with this plugin.. If so let me know what u did... So i can see what i did wrong

phonexpo
01-12-2006, 06:50 PM
Did you happen to edit any of the files that came with this plugin.. If so let me know what u did... So i can see what i did wrong

No, I just put it in as it is. ???

mkdevo
01-13-2006, 12:57 AM
would anyone know how to go about getting this to work with vBPortal's navbar?

MustangLisa
01-15-2006, 05:13 AM
Thanks, this is GREAT!!!!

tendo
01-15-2006, 11:45 PM
does this work with 3.5.3?? looks kewl ;)

DruidToolz
01-17-2006, 12:13 PM
All i can say it works for some people, but i can't get it to work with mine.. So good luck with it..

sabret00the
01-17-2006, 12:17 PM
All i can say it works for some people, but i can't get it to work with mine.. So good luck with it..

you still having problems?

DruidToolz
01-17-2006, 01:02 PM
Yeah i am.. I have followed your instructions to the point and still doesn't work... Can you help me I can give you access to my forum.. Just PM me and i will give you the url

mkdevo
01-17-2006, 03:09 PM
ok i'm having a problem getting the noavatar.gif to show up for users without avatars.. i have it in my images/misc dir, which is where the plugin points to, right? it's not showing up for users without avatars.. just the 'your avatar' link is showing.

any clues?

sabret00the, anything on this?? ^^^

also, nothing shows up when you do a search and get no results...

mikepmm
01-18-2006, 12:57 AM
very nice - thank you - and easy as possible :)

phonexpo
01-18-2006, 10:04 AM
you still having problems?

Hi,

Any ideas on this? https://vborg.vbsupport.ru/showpost.php?p=871172&postcount=93

Thanks

sabret00the
01-18-2006, 10:09 AM
Hi,

Any ideas on this? https://vborg.vbsupport.ru/showpost.php?p=871172&postcount=93

Thanks

as with all issues regarding vBadvanced problems, i'm not supporting them, i do not have vBadvanced CMPS installed so would not know where to start.

sabret00the
01-18-2006, 10:10 AM
sabret00the, anything on this?? ^^^

also, nothing shows up when you do a search and get no results...

what's the link to the dead image?

sabret00the
01-18-2006, 10:11 AM
Yeah i am.. I have followed your instructions to the point and still doesn't work... Can you help me I can give you access to my forum.. Just PM me and i will give you the url

can you describe your problem in more detail please.

mkdevo
01-18-2006, 12:52 PM
what's the link to the dead image?

i guess that's the problem, i just need to know how to fix it.

in the plugin:

$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

the broken image is pointing to:

http://www.thebreakfast.info/forum///forum/images/misc/noavatar.gif

sabret00the
01-18-2006, 01:03 PM
i guess that's the problem, i just need to know how to fix it.

in the plugin:

$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

the broken image is pointing to:

http://www.thebreakfast.info/forum///forum/images/misc/noavatar.gif

i need you to go into your admincp and copy and paste here the following

your forums url:
the location of your misc images folder:

i need this information from within your admincp, not from what you know it is. i'm being quite specific because it's very very important.

mkdevo
01-18-2006, 01:17 PM
your forums url: http://www.thebreakfast.info/forum/
the location of your misc images folder: /forum/images/misc

thanks!

Wild Bronco
01-18-2006, 05:11 PM
Thank's, very nice plugin

sabret00the
01-18-2006, 05:17 PM
your forums url: http://www.thebreakfast.info/forum/
the location of your misc images folder: /forum/images/misc

thanks!

ok that's where your problem lies. my advice to you would be to chance
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

to $navbaravatar = "<img src=\"" . $vbulletin->options[homeurl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

mkdevo
01-18-2006, 10:22 PM
ok that's where your problem lies. my advice to you would be to chance
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

to $navbaravatar = "<img src=\"" . $vbulletin->options[homeurl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";

bingo! thanks a bunch!!

do you have any advice in regards to the avatar not showing up on the 'search with no results' page?

DruidToolz
01-19-2006, 12:45 AM
Hey sabret.. well i can show you in some screen shots what is happening..

The "Before pic" is before i login to my forum and when i do login and this is what i see "After pic".. I hope this will help you out.. Could it be the same problem that mkdevo was having..

Eagle Creek
01-21-2006, 10:15 AM
Hi!

I installed it but I have a question. Because of the size of some avatars the navbar grows a little out of proportion.

Can I auto resize avatars when they are bigger then *X* to a specified size?

Kuimera
01-22-2006, 08:47 AM
Ok i?m having a problem, if a user dosent have a avatar specified, it will show a broken link image, when I check whats the image link it shows this:

http://www.kuimera.com/http://www.kuimera.com/ambience/misc/noavatar.jpg

Dont know why, it duplicates my forum url...

Any ideas?

ammarcom004
01-22-2006, 09:55 AM
Very nice, works great.

Totti
01-23-2006, 11:23 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=666890&postcount=6" target="_blank">here</a> you can find a noavatr file

klaush
01-30-2006, 04:21 PM
Ok i?m having a problem, if a user dosent have a avatar specified, it will show a broken link image, when I check whats the image link it shows this:

http://www.kuimera.com/http://www.kuimera.com/ambience/misc/noavatar.jpg

Dont know why, it duplicates my forum url...

Any ideas?

So here! Any helpful idea, please?

sabret00the
01-30-2006, 04:26 PM
So here! Any helpful idea, please?

see posts 106 to 113

Eagle Creek
01-30-2006, 06:31 PM
Hi!

I installed it but I have a question. Because of the size of some avatars the navbar grows a little out of proportion.

Can I auto resize avatars when they are bigger then *X* to a specified size?

Any idea?

bigmonay2k
01-31-2006, 03:21 AM
cool

Oblivion Knight
02-19-2006, 12:07 PM
For anyone having issues with this plugin on vBadvanced CMPS:

The "fix" is relatively simple, $navbaravatar simply needs to be globalized and luckily vBadvanced comes included with a little tool that allows you to do exactly this! Go to the following location in your browser:
Admin CP -> vBa CMPS -> Default Settings

Scroll down the page slightly, and find the "Portal Output Global Variables" settings. Note that the description here states that the '$' before the variable name is NOT required, so simply enter navbaravatar there, hit "Save" and you should be good to go.

I hope this helps, and perhaps Sabe could link to this post for easy access to save any future questions about this.. ;)

phonexpo
02-19-2006, 12:20 PM
Didn't work for me. :(

Oblivion Knight
02-20-2006, 06:16 PM
What can I say? It worked for me.. :disappointed:
Are you running the latest version of vBadvanced CMPS? Brian recently released 2.1.0..

As for the making the avatar display on the "vBulletin Message" page, I haven't found a way to do this via a plugin, but it's possible with an easy edit on includes/functions.php..

Find:
function standard_error($error = '', $headinsert = '', $savebadlocation = true)
{
global $header, $footer, $headinclude, $forumjump, $timezone, $gobutton;After $gobutton add:
, $navbaravatarDone.. :)
(Hmm.. Sorry if there's weird squares in that code, seems to be an issue with IE7?)

phonexpo
02-20-2006, 08:19 PM
I just get this now - Parse error: parse error, unexpected ',' in /home/phonexpo/includes/functions.php on line 2188

Oblivion Knight
02-20-2006, 08:36 PM
I just get this now - Parse error: parse error, unexpected ',' in /home/phonexpo/includes/functions.php on line 2188Make sure that block of code looks exactly like this:
function standard_error($error = '', $headinsert = '', $savebadlocation = true)
{
global $header, $footer, $headinclude, $forumjump, $timezone, $gobutton, $navbaravatar;

MythoLogy
02-20-2006, 09:21 PM
NP here (VBadvancedless).

Clicks install. Nice plugin.

Elegantly
02-21-2006, 05:27 AM
Very nice plugin, works like a charm.

Drache
02-22-2006, 06:39 PM
Very important question. Does this plugin adds extra query?

If it does then for busy websites maybe this is not a good diea?

Oblivion Knight
02-22-2006, 09:41 PM
Very important question. Does this plugin adds extra query?

If it does then for busy websites maybe this is not a good diea?Yes, the plugin adds an extra query.

However, it should be fine on busy websites. The query itself is relatively small in comparison with others run on other modifications that are available..

Drache
02-22-2006, 09:48 PM
Thanks for replying obilivon. Is it possible to make this mod using the same query as the posts? So it doesn't need to run extra queries?

Oblivion Knight
02-22-2006, 10:00 PM
Thanks for replying obilivon. Is it possible to make this mod using the same query as the posts? So it doesn't need to run extra queries?To be honest, in this instance the additional query is better than trying to merge it into an existing query (not 100% sure it's possible), as it'd make the existing query larger by accessing more data at the same time, and would have more of an affect on your server.

Drache
02-22-2006, 11:21 PM
4.37 8.18 7.38 | 553 Users Online (372 members and 181 guests)

Earlier the load was up to 12. I am not sure if it's this plugin or just server is runing cron. I've never seen that high even with more user online. I think i will monitor the server more and if the load is still doesn't come down i will disable the plugin and see if it helps.

Sorry hehe everytime i installs a plugin or a hack i just worry about the server load. So I need to be extremly carefor about any hack I install. :/

Oblivion Knight
02-23-2006, 05:09 AM
Ouch, that is quite high.. What are your normal server loads?

Are you on a dedicated or shared server?

Drache
02-23-2006, 07:20 AM
0.50 0.74 0.92 | 503 Users Online (324 members and 179 guests)

I am on 2 dual xeon dedicated servers. Sorry I've to correct the load earlier has notihng to do with this hack. The load was suddenly went up to 100 then ban server crashed had to page the techs to restart it. No sure what happendd. But the load is loading fine with this hack on. :D clicks install. :)

Totti
02-23-2006, 08:03 AM
hey, i will break all your records ... just having a load of 18 ... yesterday it has been 12 ... and all this with only 5-15 users online ... weired

ouh, it went up to 100 for you ... hmmm, what could this be?!?!
some logs?

Oblivion Knight
02-23-2006, 05:34 PM
It could be anything, although the "vB Shout" mod has been known to cause increased server loads..

Drache
02-23-2006, 05:51 PM
No logs atm. It's not happening again now. no I didn't install vb shout. The servers just suddenly acting very weired yesterday and I wasn't doing anything. Just seeing the load went up and the server goes boom. I ask the tech what caused this problem and the techs didn't give me an answer.

I am only using vb advance VB forum this hack and photopost. Didn't dare to install other custom hack yet. without testing their loads.

@oblivion knight thanks for the info. I was actully thinking install vb shout but I won't anymore. :)

Thieutje
02-24-2006, 09:19 AM
Hi!

I installed it but I have a question. Because of the size of some avatars the navbar grows a little out of proportion.

Can I auto resize avatars when they are bigger then *X* to a specified size?

I NEED THIS too !:disappointed:

MioTraGusa
02-24-2006, 07:58 PM
I NEED THIS too !:disappointed:

see https://vborg.vbsupport.ru/showpost.php?p=808192&postcount=28

yumyumcat
02-25-2006, 07:46 PM
I did it all and nothing show up :(

Emilian
02-26-2006, 03:53 AM
make sure you add

height=\"50\"

after all three

alt=\"Your Avatar\"

yumyumcat
02-26-2006, 02:00 PM
DONE! Jeesh ~I uninstalled it an reinstalled it and now it's working ~ go figure lol

3z3k3l
02-26-2006, 03:39 PM
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:

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


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



Hey this fixed my Problem, Thanks!

kazido
03-17-2006, 12:20 AM
Problem solved for VBAdvanced
needed to add a variable in
admin cp=>vBA CMPS=>edit pages=>home page=>Portal Output Global Variables=> added navbaravatar (without the $)

This now worked for me :) !!!

Brilliant!, Thanks

Don
http://www.ozls1.com.au/

Sparks Kelly261
03-17-2006, 02:55 PM
I get nothing in my homepage.
Not even the No Avatar text.

It's flat out empty.
There is a new <td> you can see that, but its small and nothing in it.
I placed the code, uploaded the plugin, its in glabal_start..

What am I missing>?

Sparks Kelly261
03-17-2006, 03:00 PM
It has to be the plugin being bad because this is whats in the code of my page.

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">

<strong>Welcome, Sparks.</strong><br />
You last visited: Today at <span class="time">03:54 PM</span>
<br /><a href="private.php">Private Messages</a>: Unread 0, Total 8.
</div>
</td>
<td class="alt1"><a href="http://hacktonic.com/profile.php?do=editavatar"></a></td>

jacks316
03-19-2006, 05:17 PM
Installed!!

ubblite
03-21-2006, 11:13 PM
Working good.

Thanks sabret00the for this nice plugin & also thank you MioTraGusa for the height adjustment code.

Nathan2006
03-23-2006, 02:20 AM
Thank you sabret00the

works great! :D

Install

M1TCH3LL
03-24-2006, 03:46 PM
It has to be the plugin being bad because this is whats in the code of my page.

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">

<strong>Welcome, Sparks.</strong><br />
You last visited: Today at <span class="time">03:54 PM</span>
<br /><a href="private.php">Private Messages</a>: Unread 0, Total 8.
</div>
</td>
<td class="alt1"><a href="http://hacktonic.com/profile.php?do=editavatar"></a></td>
I have exactly this same issue.

EDIT: Fixed, and boy do I feel stupid. My plugin system was turned off in the main vB options area :P. Now to find out why I only have the 'Your Avatar' font showing.

EDIT2: Ok, now it is not picking up on me having an avatar (when I actually do). It's giving me the 'no avatar' treatment. Any ideas?

dhawkins001
03-24-2006, 06:14 PM
Very Nice!!! Better than the other one I tried.

flfooty tv
03-26-2006, 01:06 AM
loving this, with the resize it works a treat!

GoodKarmaKid
03-26-2006, 04:48 AM
Sweet little plugin

adds a nice personalization touch.

Thanks

rareclownfish
03-28-2006, 01:42 AM
Is anyone running this on vb 3.5.4? I'm trying to get it to work but no luck.
The intructions say add above, add above what?

Add above this------
else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->

or replace it?

KW802
03-28-2006, 04:29 PM
For those having issues with vBadvanced...

1) Go back and follow the instructions by fn9mm for adding a global variable to CMPS here (https://vborg.vbsupport.ru/showpost.php?p=847164&postcount=72).

2) If you are using custom avatars and are having a problem with the image path (because your CMPS is in the root folder or you are using vBa Links or PhotoPost vBGallery, etc.) then look for... // not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&amp;dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
... and change it to below: (You'll be adding " . $vbulletin->options[bburl] . "/ to the image URL) // not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&amp;dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
Note, though, that if you're using custom avatars and you've changed the path from the default that the step #2 above may be different for you.

PolyMarauder
04-12-2006, 12:59 PM
Hi!

I installed it but I have a question. Because of the size of some avatars the navbar grows a little out of proportion.

Can I auto resize avatars when they are bigger then *X* to a specified size?

Find
border=\"0\"

and add this befor it
width=\"50\" height=\"50\"

Anyone know what I need to change so I can have it's link go to the user CP instead of the Avatar Editor?

Cheers.

Polo
06-29-2006, 07:11 PM
excellent!! got this one working in my cmps yay!!! thanks...

oberheimhaven
06-29-2006, 08:16 PM
Will this work for pics What do i need to do to install kewl hack tho jsut need to tweak?

wildondallas
07-30-2006, 11:03 PM
clicked Install, works great:)

Snort_2005
08-16-2006, 08:50 PM
Excellent plugin. ;) Works great for me on 3.6!

Harley-Heaven
08-19-2006, 07:37 AM
Doesn't work for me.....

Followed the instructions to the letter, activated the Plug In in the Global Start Hook.

I get nothing at all on my log in page.... no red X, no error message, anyone any tips???


<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>

<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'"><br /><span class="smallfont">There has been <a href="$vboptions[bburl]/search.php?do=getnew">$newposts</a> new posts and <a href="$vboptions[bburl]/search.php?do=getnew">$newthreads</a> new threads since your last visit.<br />( <a href="$vboptions[bburl]/search.php?do=getnew"> Get New Posts</a> ) </span></if>

</div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

<br /><if condition="$rcount != ''">$rcount<br /></if>

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

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="local_links.php">Links</a></td>
<if condition="$bbuserinfo['userid']">
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
<script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
</if>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<script type="text/javascript">
<!--

function OpenRadio(){
Radio = window.open('vBRadio.php','vBRadio','directories=n o,height=320,width=650,location=no,menubar=no,resi zable=no,status=no,toolbar=no')

return false;
}

-->
</script>
<td class="vbmenu_control"><a href="#" onclick="return OpenRadio()">vBRadio</a></td>

<!-- SigmaChat -->
<td id="sigmachat" class="vbmenu_control">
<a href="$show[nojs_link]#sigmachat">$vbphrase[sigmachat_title] $chatcountbrack</a>
<script type="text/javascript"> vbmenu_register("sigmachat"); </script></td>
<!-- /SigmaChat -->
<if condition="$show['popups']">
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=topposters">Display Top Posters</a></td></tr>

<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- SigmaChat -->
<div class="vbmenu_popup" id="sigmachat_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[sigmachat_title]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat.php?$session[sessionurl]">$vbphrase[sigmachat_enter]
</a></td></tr>
<tr><td class="vbmenu_option">
<a href="#" onClick="window.open('chat.php?$session[sessionurl]&do=popup', 'sigmachat',
'width=650,height=400,statusbar=no,scrollbars=no,t oolbar=no,menubar=no,resizable=yes');
return false">$vbphrase[sigmachat_enter_float]</a></td>
<tr><td class="thead">$chatcount $vbphrase[sigmachat_users_chatting]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat_online.php?$session[sessionurl]">$vbphrase[sigmachat_who]</a></td></tr>
</table>
</div>
<!-- / SigmaChat -->
<!-- vbPlaza start -->
<if condition="$show['member']">
<!-- vbplaza tools menu -->
<div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>

<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>

<if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
<tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>

</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->
<!-- / NAVBAR POPUP MENUS -->

<!-- Image Host Popup -->
<div class="vbmenu_popup" id="vbimghost_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[vbimghost_title]</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
</table>
</div>
<!-- / Image Host Popup -->
<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>

jdk10
08-19-2006, 09:41 PM
INSTALLED

Works great on vB 3.6.0

jdk10
08-19-2006, 09:43 PM
Doesn't work for me.....

Followed the instructions to the letter, activated the Plug In in the Global Start Hook.

I get nothing at all on my log in page.... no red X, no error message, anyone any tips???


<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>

<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'"><br /><span class="smallfont">There has been <a href="$vboptions[bburl]/search.php?do=getnew">$newposts</a> new posts and <a href="$vboptions[bburl]/search.php?do=getnew">$newthreads</a> new threads since your last visit.<br />( <a href="$vboptions[bburl]/search.php?do=getnew"> Get New Posts</a> ) </span></if>

</div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

<br /><if condition="$rcount != ''">$rcount<br /></if>

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

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="local_links.php">Links</a></td>
<if condition="$bbuserinfo['userid']">
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
<script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
</if>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<script type="text/javascript">
<!--

function OpenRadio(){
Radio = window.open('vBRadio.php','vBRadio','directories=n o,height=320,width=650,location=no,menubar=no,resi zable=no,status=no,toolbar=no')

return false;
}

-->
</script>
<td class="vbmenu_control"><a href="#" onclick="return OpenRadio()">vBRadio</a></td>

<!-- SigmaChat -->
<td id="sigmachat" class="vbmenu_control">
<a href="$show[nojs_link]#sigmachat">$vbphrase[sigmachat_title] $chatcountbrack</a>
<script type="text/javascript"> vbmenu_register("sigmachat"); </script></td>
<!-- /SigmaChat -->
<if condition="$show['popups']">
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=topposters">Display Top Posters</a></td></tr>

<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- SigmaChat -->
<div class="vbmenu_popup" id="sigmachat_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[sigmachat_title]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat.php?$session[sessionurl]">$vbphrase[sigmachat_enter]
</a></td></tr>
<tr><td class="vbmenu_option">
<a href="#" onClick="window.open('chat.php?$session[sessionurl]&do=popup', 'sigmachat',
'width=650,height=400,statusbar=no,scrollbars=no,t oolbar=no,menubar=no,resizable=yes');
return false">$vbphrase[sigmachat_enter_float]</a></td>
<tr><td class="thead">$chatcount $vbphrase[sigmachat_users_chatting]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat_online.php?$session[sessionurl]">$vbphrase[sigmachat_who]</a></td></tr>
</table>
</div>
<!-- / SigmaChat -->
<!-- vbPlaza start -->
<if condition="$show['member']">
<!-- vbplaza tools menu -->
<div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>

<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>

<if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
<tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>

</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->
<!-- / NAVBAR POPUP MENUS -->

<!-- Image Host Popup -->
<div class="vbmenu_popup" id="vbimghost_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[vbimghost_title]</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
</table>
</div>
<!-- / Image Host Popup -->
<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>

This may be a silly question, but did you upload an avatar under User CP

d3fuse
08-28-2006, 02:29 AM
Fixed.

sabret00the
08-28-2006, 04:04 PM
Doesn't work for me.....

Followed the instructions to the letter, activated the Plug In in the Global Start Hook.

I get nothing at all on my log in page.... no red X, no error message, anyone any tips???


<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>

<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'"><br /><span class="smallfont">There has been <a href="$vboptions[bburl]/search.php?do=getnew">$newposts</a> new posts and <a href="$vboptions[bburl]/search.php?do=getnew">$newthreads</a> new threads since your last visit.<br />( <a href="$vboptions[bburl]/search.php?do=getnew"> Get New Posts</a> ) </span></if>

</div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

<br /><if condition="$rcount != ''">$rcount<br /></if>

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

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="local_links.php">Links</a></td>
<if condition="$bbuserinfo['userid']">
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
<script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
</if>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<script type="text/javascript">
<!--

function OpenRadio(){
Radio = window.open('vBRadio.php','vBRadio','directories=n o,height=320,width=650,location=no,menubar=no,resi zable=no,status=no,toolbar=no')

return false;
}

-->
</script>
<td class="vbmenu_control"><a href="#" onclick="return OpenRadio()">vBRadio</a></td>

<!-- SigmaChat -->
<td id="sigmachat" class="vbmenu_control">
<a href="$show[nojs_link]#sigmachat">$vbphrase[sigmachat_title] $chatcountbrack</a>
<script type="text/javascript"> vbmenu_register("sigmachat"); </script></td>
<!-- /SigmaChat -->
<if condition="$show['popups']">
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=topposters">Display Top Posters</a></td></tr>

<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- SigmaChat -->
<div class="vbmenu_popup" id="sigmachat_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[sigmachat_title]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat.php?$session[sessionurl]">$vbphrase[sigmachat_enter]
</a></td></tr>
<tr><td class="vbmenu_option">
<a href="#" onClick="window.open('chat.php?$session[sessionurl]&do=popup', 'sigmachat',
'width=650,height=400,statusbar=no,scrollbars=no,t oolbar=no,menubar=no,resizable=yes');
return false">$vbphrase[sigmachat_enter_float]</a></td>
<tr><td class="thead">$chatcount $vbphrase[sigmachat_users_chatting]</td></tr>
<tr><td class="vbmenu_option">
<a href="chat_online.php?$session[sessionurl]">$vbphrase[sigmachat_who]</a></td></tr>
</table>
</div>
<!-- / SigmaChat -->
<!-- vbPlaza start -->
<if condition="$show['member']">
<!-- vbplaza tools menu -->
<div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>

<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>

<if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
<tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
<tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
</if>

</table>
</div>
<!-- / vbplaza tools menu -->
</if>
<!-- vbPlaza end -->
<!-- / NAVBAR POPUP MENUS -->

<!-- Image Host Popup -->
<div class="vbmenu_popup" id="vbimghost_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[vbimghost_title]</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
</table>
</div>
<!-- / Image Host Popup -->
<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
in future please use [html] tags.

anyway what does this else belong too?
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
<else />?

Roverturbo
09-08-2006, 09:54 AM
I've tried this on a few versions of vbulletin and not got a avatar to display on any.


anyway what does this else belong too?



open you navbar template and find:
==================================
<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
==================================

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


now upload the plugin and you're done.

Plugin goes to your "global_start" hook location, under the product of "vBulletin" and should be active.


Without that else you get the login fields displaying even when your logged in.

You knew that though, You did write your instructions and give that else as a position reference right? :rolleyes:

sabret00the
09-08-2006, 12:10 PM
i may have done so but that template has more conditions in it than a legally binding contract. hence why i'm trying to confirm what is going on.

anyway if you can't get it to worki'm not sure what's wrong 213 installs says you're in a very low minority. the plugin is definately active?

hotwheels
10-01-2006, 08:07 PM
What a great idea. I just installed per your instructions and wowza, it is working like a charm, even with me having an animated avatar.

I am running 3.6

Thanks a bunch, hotwheels

FleaBag
10-19-2006, 02:00 PM
give me a couple hours and i'll upload a fixed version.

Hi sabre; it's a year later... Was wondering if you knew how to fix this? Causing me a real pain in the kneck.

sabret00the
10-19-2006, 02:04 PM
Hi sabre; it's a year later... Was wondering if you knew how to fix this? Causing me a real pain in the kneck.
got a bit more info, i have no idea to what i'm referring to in that post or even where the post is.

FleaBag
10-19-2006, 02:43 PM
Sorry! And I wasn't trying to be sarcy saying it was a year ago lol. Just so you know. ;)

Basically it works great on all the pages in my forum folder. I have vBa Links & Gallery which are in /links and /gallery folders.

On these pages, the URL to the avatar's image is...

http://www.site.com/gallery/customavatars/avatarx.gif

or

http://www.site.com/links/customavatars/avatarx.gif

HTH's. Thanks Sabe. :)

sabret00the
10-19-2006, 02:56 PM
Sorry! And I wasn't trying to be sarcy saying it was a year ago lol. Just so you know. ;)

Basically it works great on all the pages in my forum folder. I have vBa Links & Gallery which are in /links and /gallery folders.

On these pages, the URL to the avatar's image is...

http://www.site.com/gallery/customavatars/avatarx.gif

or

http://www.site.com/links/customavatars/avatarx.gif

HTH's. Thanks Sabe. :)
you have your bburl set right?

can you paste the content plugin "Avatar On Navbar Back-End" for me please.

FleaBag
10-19-2006, 05:12 PM
My BB URL is set to www.dragonninja.co.uk - my forums are in the root. Do you mean the plugin?

// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&amp;dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[homeurl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar

sabret00the
10-19-2006, 05:35 PM
My BB URL is set to www.dragonninja.co.uk - my forums are in the root. Do you mean the plugin?

// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&amp;dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[homeurl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar
replace that with
// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar and you're sorted.

FleaBag
10-19-2006, 06:00 PM
I seem to be missing a / in the URL between the avatar filename and it's folder! Almost there... Thanks! :D

sabret00the
10-19-2006, 06:07 PM
I seem to be missing a / in the URL between the avatar filename and it's folder! Almost there... Thanks! :D
can you give me and example?

FleaBag
10-19-2006, 06:10 PM
Avatar URL on each page:

http://www.dragonninja.co.ukcustomavatars/avatar1_4.gif

Just realised I mis-described the problem! Sorry... I meant missing slash between domain and avatar folder.

FleaBag
10-20-2006, 03:31 PM
Any ideas Sabe?

sabret00the
10-20-2006, 04:00 PM
// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar

FleaBag
10-20-2006, 05:33 PM
Worked like a charm my friend. Thank you very much for your help. Now to try and get Groups working!

Invalid ID
10-20-2006, 11:09 PM
Will it work in 3.6.2 ?

FleaBag
10-20-2006, 11:43 PM
Yes. :)

bilgiform
12-29-2006, 11:27 PM
tHANK YOU VERYMACH

Alkah
01-01-2007, 02:41 PM
ive plugged it all in as you instructed, but avatar wont show up.

Raptor
01-09-2007, 08:28 PM
Tested ok on 3.6.4

NuclioN
01-10-2007, 09:54 AM
--edit-- never mind* works great :)

stan111
01-31-2007, 12:30 AM
Plugin goes to your "global_start" hook location, under the product of "vBulletin" and should be active.


where is that? can you be more specific? :confused:

giotmuadong
02-07-2007, 03:35 AM
what if your avatar is 160x160 . does it auto resize?

http://img256.imageshack.us/img256/7121/untitledpk8.jpg

i got this error

ggiersdorf
03-18-2007, 03:54 PM
Is there a way to Re-size the avatar JUST in the navbar sections? Im using the original instructions and it works fine but the Avatar is too big for the display making the box FAT I want to re-size them to 50x50 instead of 100x100 just for the navbar..

Thanks in advance..

BigJimTheLug
03-18-2007, 04:37 PM
This is great.

deezelpope
03-20-2007, 05:06 PM
Works like a charm on my 3.6.4!:up: Thank you!! Been looking for this!!:D ;)

And the re-sizing code worked awesome, too!!

aam
05-08-2007, 08:43 PM
Nice mod. Works in 3.6.5.

mobyz
05-10-2007, 10:44 PM
Plugin goes to your "global_start" hook location, under the product of "vBulletin" and should be active.
where is it ?

kollam003
05-24-2007, 09:42 AM
it works great stuff

thanks 4 the share

physi
07-31-2007, 09:51 AM
Installed!
Works smoothly in vbadvanced as well. The only problem I've got is when I search the forum or when I click on "New Posts" (same thing) the avatar disappears (either custom or the noavatar image).
Any ideas?

Stefano Virgill
08-14-2007, 02:29 PM
Hi folks,
Doesn't work for me.

VB 3.7

forum is in a subdomain directory.
Is there some problems with my path?

greetings

Steve

Techno05
08-19-2007, 09:28 AM
Hello,

When a user searches using the search.php function and there is no search results, no avatar is shown in the header.

Anyway to fix this?

princeedward
08-23-2007, 03:59 PM
works like a charm to my vb 3.6.8 both to FF and IE browsers...

so thanks a lot for this...

click here to make smaller/ auto-resize of your avatar (https://vborg.vbsupport.ru/showpost.php?p=947785&postcount=158)

;)

Daky
08-27-2007, 07:35 PM
I have a small problem.

Can somebody help me with this?

Firefox is ok, but not IE.

My code:
[PHP]// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Avatar\" width=\ 45\" height=\"45\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevarhttps://vborg.vbsupport.ru/

IE7 Not ok:
https://vborg.vbsupport.ru/

sabret00the
08-28-2007, 09:01 PM
I have a small problem.

Can somebody help me with this?

Firefox is ok, but not IE.

My code:
// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Avatar\" width=\ 45\" height=\"45\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />"; // "<span class=\"smallfont\">Ne postoji Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar


Firefox OK:
http://www.diskusije.net/svastara/fire2.jpg

IE7 Not ok:
http://www.diskusije.net/svastara/ie1.jpg
// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Avatar\" width=\"45\" height=\"45\" border=\"0\" />"; // "<span class=\"smallfont\">Ne postoji Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar

Daky
08-28-2007, 09:04 PM
Thank you!
Works :)

Alibi
08-29-2007, 02:08 PM
how can i make it so the <--PM LOGIN INFO--> breadcrumb and avatar all are displayed to the left side of the navabar instead of the right?

Daky
10-13-2007, 01:20 PM
Hi,

What should i do to make this working in vBadvanced?

vBadvanced CMPS v3.0 RC2 is what i am using.

Thank you!

sabret00the
10-15-2007, 10:20 AM
Hi,

What should i do to make this working in vBadvanced?

vBadvanced CMPS v3.0 RC2 is what i am using.

Thank you!
vBadvanced 3 RC2 came out after this. so you'll have to ask them.

lasto
10-19-2007, 07:30 PM
whats the condition if someone is logged out to not show it cause if i log out i get 2 white squares and it pushes the login box off the screen.

So if i had a conditional to add to say if logged in then show it would be fine

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

Ive fixed it - needed to add the code inbetween logged in statement

Dannyloski
11-19-2007, 03:16 PM
Has anyone figured out the problem with the Avatar not displaying in the Header within the "No Search Result" page? BTW, working perfectly with vB 3.6.8 Patch 2

yeku
01-20-2008, 09:53 PM
Installed with 3.6.7 and working perfectly

FF and IE 6, work well

thanks

smooth-c
01-21-2008, 08:38 PM
Anyone got this working with 3.7?

Mark.B
01-21-2008, 08:39 PM
Anyone got this working with 3.7?
It works for me on 3.7, all I had to do when I upgraded was to redo the template edits, apart from that it carried on working with no changes.

smooth-c
01-21-2008, 11:39 PM
Template edits? elaborate dood!

Cobro
01-25-2008, 10:33 PM
works on vbulletin 3.6.8 thx

odln018
02-26-2008, 08:04 PM
There's a rather large border around my avatars, is there a way to lessen it?

DrKNickel
02-28-2008, 09:02 AM
Me too!

How can i change the border around my avatar?

Greets :)

ME STUPID!

Just change the cellpadding in the table :)

Greets

odln018
02-28-2008, 08:40 PM
Here's mine, what should I change?


/ Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" height=\"50\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&amp;dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" height=\"50\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" height=\"50\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar

Mark.B
03-15-2008, 03:41 PM
I can't honestly remember exactly what edits I made...and my navbar is a bit customised anyway....but the important things are that the functionality of this hack works fine in 3.7, all that needs to be done is to reapply the template edits after the upgrade and after reverting the templates.

The important thing to remember is that there are changes to the navbar template in 3.7 close to where this hack operates. Namely, the "your notifications" functionality. But the basics and the layout is still pretty much the same.

I don't have access to a 3.6 navbar template any more so I can't elaborate much more. But it relatively easy...I'm no coder and I did it quite easily.

StarShaper
03-16-2008, 02:37 AM
Tested with vB 3.7 Beta 6.

It Works! However the code has some silly parts, which should be corrected into this.

if ($vbulletin->userinfo['avatarid']) {
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Avatar\" width=\"\" height=\"\" border=\"0\" />";
} else {
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, width_thumb, height_thumb FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . "")) {
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Avatar\" width=\"" . $avatar['width_thumb'] . "\" height=\"" . $avatar['height_thumb'] . "\" border=\"0\" />";
} else {
// no avatar specified
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$stylevar[imgdir_misc]/emptyavatar.gif\" alt=\"No Avatar\" width=\"\" height=\"\" border=\"0\" />";
}
}

Feckie (Roger)
03-16-2008, 07:56 AM
If you want this to show in ibproarcade, do the following.

1: In /arcade/functions/functions.php file..

find online 1241 approx ... global $header,

Add after it $navbaravatar,

Save upload and enjoy....;)

Boofo
03-16-2008, 08:49 AM
If you want this to show in ibproarcade, do the following.

1: In /arcade/functions/functions.php file..

find online 1241 approx ... global $header,

Add after it $navbaravatar,

Save upload and enjoy....;)


Or you can do as i do am do a $vbphrase[whatever] = $navbaravatar;

and use the phrase.

Boofo
03-16-2008, 09:13 AM
Tested with vB 3.7 Beta 6.

It Works! However a small change would be fine, since a fixed avatar size is not always the best.

// Avatar In NavBar
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options['bburl'] . "/$avatar[avatarpath]\" alt=\"Avatar\" width=\"$vbulletin->options['avwidth']\" height=\"$vbulletin->options['avheight']\" border=\"0\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif" : "" . $vbulletin->options['bburl'] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Avatar\" width=\"$vbulletin->options['avwidth']\" height=\"$vbulletin->options['avheight']\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['homeurl'] . "/$stylevar[imgdir_misc]/emptyavatar.gif\" alt=\"Avatar\" width=\"$vbulletin->options['avwidth']\" height=\"$vbulletin->options['avheight']\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >specified</span>";
}
}
// Avatar In NavBar

Doesn't work with customavatars.

StarShaper
03-16-2008, 03:10 PM
Doesn't work with customavatars.

What do you mean with "customavatars"?

Boofo
03-16-2008, 03:31 PM
Uploaded Avatars. But I found a better way to do it with the fetch_avatar_url and 2 lines of code. ;)

StarShaper
03-16-2008, 05:03 PM
Uploaded Avatars.

I don't get it. This plugin works with uploaded Avatars.

Boofo
03-16-2008, 05:48 PM
Not for me it didn't.

HP10T
03-17-2008, 03:45 AM
Hrmm can't seem to get it to work with 3.5. Added with plugin system and added code like instructions said but nothing even shows an error :/

StarShaper
03-17-2008, 04:11 PM
Not for me it didn't.

Where did you store your custom avatars? Filesystem or database?

Hrmm can't seem to get it to work with 3.5. Added with plugin system and added code like instructions said but nothing even shows an error

I only tested it with vbulletin 3.7 Beta 6.

However it should work with 3.5 too. What is displayed in the html source? Please post the complete URL.

For example:

<a href="http://www.domain.com/forum/profile.php?do=editavatar"><img title="Avatar" src="http://www.domain.com/forum/image.php?u=1&amp;dateline=1205271990" alt="Avatar" border="0" height="80" width="80"></a>

Boofo
03-17-2008, 09:24 PM
Where did you store your custom avatars? Filesystem or database?

Filesystem.

StarShaper
03-17-2008, 09:49 PM
Filesystem.

Ok, I already thought that it might has something to do with the storage. I'm using the database for avatars.

It's been a while since I looked through the vB Codebase. However, this line is not correct:

"" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif"

I will check this in the next days and post a correct solution.

HP10T
03-29-2008, 03:22 AM
Where did you store your custom avatars? Filesystem or database?



I only tested it with vbulletin 3.7 Beta 6.

However it should work with 3.5 too. What is displayed in the html source? Please post the complete URL.

For example:

<a href="http://www.domain.com/forum/profile.php?do=editavatar"><img title="Avatar" src="http://www.domain.com/forum/image.php?u=1&amp;dateline=1205271990" alt="Avatar" border="0" height="80" width="80"></a>

What html source arey ou talking about? I am not sure where you got the above :(

Boofo
03-29-2008, 03:35 AM
Ok, I already thought that it might has something to do with the storage. I'm using the database for avatars.

It's been a while since I looked through the vB Codebase. However, this line is not correct:

"" . $vbulletin->options['bburl'] . "/" . $vbulletin->options['avatarurl'] . "/avatar$avatar[userid]_" . $vbulletin->userinfo['avatarrevision'] . ".gif"

I will check this in the next days and post a correct solution.


Any luck on this?

dancue
03-30-2008, 05:08 AM
Or you can do as i do am do a $vbphrase[whatever] = $navbaravatar;

and use the phrase.

Can you tell me how exactly you did that? Step by step preferrably?

I haven't really worked with phrases.

Boofo
03-30-2008, 05:25 AM
Can you tell me how exactly you did that? Step by step preferrably?

I haven't really worked with phrases.

Actually, it is not a real phrase. But the arcade has $vbphrase globalized so it will pick it up without having the edit the arcade.php file. I have noticed that one of the error messages will not see the avatar without doing this also, although I can't remember which one.

At the end of the plugin just add:

$vbphrase[navbaravatar] = $navbaravatar;
making sure to use $vbphrase[navbaravatar] in place of $navbaravatar in the template. You don't have to make that phrase, as you are just using the name to accomplish this.

dancue
03-30-2008, 02:10 PM
Thanks a bunch!

I'll try that later today...

Boofo
03-30-2008, 02:28 PM
Let me know how it goes.

odln018
05-02-2008, 04:21 PM
Is this still supported?

ePrOmD
07-22-2008, 04:00 PM
hi!
I´ve being using this for a long time. Currently with the 3.7gold version without any kind of problem

my query is:
Is there any way to leave a fix dimension set for avatars? rather than take real one?
for example. avatars of 150 px leaving 72 px?

greatings from argentina!

NAZIA
09-21-2008, 08:06 AM
thanks...

DF08Said
09-27-2008, 11:47 AM
m8 this Doesnt work for me... its Same shit as it Was before im using vBulletin® Version 3.7.3... can u help me please?

pewa
11-12-2008, 06:24 PM
One small problem:

The image link is pointing to domain.com/customavatars/avatar3_4.gif[/url] when it should be domain.com/forum/customavatars/avatar3_4.gif

Where do I fix this? I assume I have to edit the plugin but dont know how. This is what the plugin say:

$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" />";

Where do I add the "/forum" ?

Update: The avatar shows on the forum page but not on the start page, I'm using vbAdvanced.

pewa
11-26-2008, 01:26 PM
Any ideas?

On my test site where I keep the forum files and vBa files in the same directory it works fine! But not on my live site.. on the live site i keep the vBa files in the root and the forum files in /forum

Cobra-J82
01-05-2009, 02:24 PM
make sure you add

height=\"50\"

after all three

alt=\"Your Avatar\"

Thanks :o

thunder_sti
01-25-2009, 03:04 PM
Working Perfect like a charm on vB 3.7.3

lasto
01-27-2009, 05:59 PM
works perfect on 3.8

odln018
01-28-2009, 09:00 PM
Me too!

How can i change the border around my avatar?

Greets :)

ME STUPID!

Just change the cellpadding in the table :)

Greets


Could someone point me to where i change this?

Thanks!

nascartr
02-01-2009, 07:18 PM
Hello,

When a user searches using the search.php function and there is no search results, no avatar is shown in the header.

Anyway to fix this?

So many people have had this problem, as do I. I would love to know how to get this to work on pages such as this and all error pages for that matter. All error pages have the same result...no avatar image.

odln018
03-04-2009, 06:13 PM
I'm going to assume this is no longer supported.

odln018
04-30-2009, 04:34 PM
If anyone is interested, I figured out how to change the border around the avatar.

Go into your Style, StyleVars and edit Table Cell Padding (pixels) , I made mine to 2 and it really improved the look.

NNJJ
05-01-2009, 08:34 PM
not working for me not getting the right URL its dublicate it on 3.8.2

ludomatic
05-09-2009, 10:11 PM
Works perfect on 3.8.2. Hugs from Argentina.-