vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Avatar On Navbar (https://vborg.vbsupport.ru/showthread.php?t=99498)

Eagle Creek 01-30-2006 06:31 PM

Quote:

Originally Posted by Eagle Creek
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:
Code:

function standard_error($error = '', $headinsert = '', $savebadlocation = true)
{
        global $header, $footer, $headinclude, $forumjump, $timezone, $gobutton;

After $gobutton add:
Code:

, $navbaravatar
Done.. :)
(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

Quote:

Originally Posted by phonexpo
I just get this now - Parse error: parse error, unexpected ',' in /home/phonexpo/includes/functions.php on line 2188

Make sure that block of code looks exactly like this:
Code:

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

Quote:

Originally Posted by Drache
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

Quote:

Originally Posted by Drache
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

Quote:

Originally Posted by Eagle Creek
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

Quote:

Originally Posted by Thieutje
I NEED THIS too !:disappointed:

see https://vborg.vbsupport.ru/showpost....2&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

Quote:

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

Maybe it will help something out.

I changed the 5 line up from the bottom

FROM:
PHP Code:

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

TO:
PHP Code:

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




Hey this fixed my Problem, Thanks!

kazido 03-17-2006 12:20 AM

Quote:

Originally Posted by fn9mm
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.

HTML Code:

                <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

Quote:

Originally Posted by Sparks Kelly261
It has to be the plugin being bad because this is whats in the code of my page.

HTML Code:

                <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.

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...
PHP Code:

 // 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)
PHP Code:

 // 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

Quote:

Originally Posted by Eagle Creek
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
Code:

border=\"0\"
and add this befor it
Code:

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?


All times are GMT. The time now is 01:45 AM.

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

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

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete