PDA

View Full Version : Forum Home Enhancements - Adds Avatar to Navbar


Kolbi
11-08-2009, 10:00 PM
Adds Avatar to Navbar

This addon adds for registered users their avatar to the navbar. If they have none selceted there will be shown a default avatar.
The URL to your default avatar and the height of the avatars can be set via vBulletin-Setting => Navbar with Avatar

Default avatar URL: /images/misc/unknown.gif
Default height: 60px

Demo:
106084

AdminCP:
106083

This modification only needs one querie.

Additional installation advices are in the readme.txt.

Not compatible with following addon:
Navbar - adds social bookmarking, notifications highlighting, & search fields (https://vborg.vbsupport.ru/showthread.php?t=201758)

Other languages are in the folder translations. German and English are avaible at the moment. Just import them under languages & phrases.

Please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=227666)

Matthias
www.2-wheel-planet.de (http://www.2-wheel-planet.de)

13.11.2009 14:57 - Version 1.1
13.11.2009 16:01 - Version 1.2
09.02.2011 18:59 - Version 1.3 is published

Changelog:
version 1.1:
changeable height of avatars via AdminCP
German versionversion 1.2:

changeable default avatar

version 1.3:

changeable width

New features that will come for 1.4:
nothing yet


Copyright:

This hack has a little copyright hint at the bottom of the page. You are not allowed to edit or remove it!
If you want to remove it please contact me via PM.

madshark
11-09-2009, 06:01 PM
Im sorry but what is TMS ?

cindy helmond
11-09-2009, 06:04 PM
nice mod installed !!

Kolbi
11-09-2009, 06:09 PM
Im sorry but what is TMS ?
Look here: https://vborg.vbsupport.ru/showthread.php?t=152931

fta2k
11-09-2009, 06:52 PM
Thanks for the up.

Installed simple:

http://i.fhqhosting.com/1avy.PNG

madshark
11-09-2009, 11:20 PM
ohhh thanks ! sorry for the idiocracy just bought VB

Kolbi
11-10-2009, 05:17 AM
ohhh thanks ! sorry for the idiocracy just bought VB
No problem :)
I hope you enjoy this little mod.

realdx
11-10-2009, 11:34 AM
Nice hack, clean, no hassle, working!! Thanks and installed!

EDIT: (5 STARS)

Brandon Sheley
11-10-2009, 01:08 PM
Nice mod, it wouldn't work for my current style, but I'll suggest it to friends :)

Kolbi
11-10-2009, 01:43 PM
Nice mod, it wouldn't work for my current style, but I'll suggest it to friends :)

I you send me your navbar template and header template and the URL to your site, I prepare this mod for you.

Mulle
11-10-2009, 04:18 PM
Great mod, but it won't work with vbadvanced, nothing shows up on VBA-pages.
What should I change to get it work?

concepts
11-10-2009, 05:40 PM
works on my VBA with no problems (Using Firefox)

Mulle
11-10-2009, 06:24 PM
works on my VBA with no problems (Using Firefox)
Doesn't work for me with firefox or IE.
I got some template edits, maybe I have done some changes... have to take a look...

Kolbi
11-10-2009, 07:15 PM
Doesn't work for me with firefox or IE.
I got some template edits, maybe I have done some changes... have to take a look...
Can you send me the effected URL?s and perhaps an testaccount?
Perhaps also the navbar template.

princeedward
11-10-2009, 07:31 PM
:erm: hmmmm...

is this Avatar On Navbar (https://vborg.vbsupport.ru/showthread.php?t=99498&highlight=avatar+navbar) ....almost the same right?

:confused:

johnrizz
11-10-2009, 07:35 PM
very nice, and thanks! ez install!!

D_light
11-10-2009, 07:44 PM
nice hack, work perfectly whit firefox, opera

tnx

AzzidReign
11-11-2009, 08:20 PM
Damn, I could have used this for my last skin. Oh well :(

blackberry
11-12-2009, 09:30 AM
not working for me :(

Kolbi
11-12-2009, 10:16 AM
not working for me :(
Can you send me additional information via PM?
I?m gonna try to help you.

Skydiver10
11-12-2009, 11:30 PM
Installed..thanks...how do you remove the white trim around the avatar pic?

cheech47
11-13-2009, 09:03 AM
Great mod, but it won't work with vbadvanced, nothing shows up on VBA-pages.
What should I change to get it work?

Facing the same issue here :confused:

Kolbi
11-13-2009, 10:42 AM
how do you remove the white trim around the avatar pic?
Can you give me additional information or a screenshot?

Kolbi
11-13-2009, 10:43 AM
Facing the same issue here :confused:
Currently I?m working out a solution. I think the problem is that VBA-pages are using a different navbar?!?

Kosmic1
11-13-2009, 11:29 AM
Very nice!! Installed and working :)

https://vborg.vbsupport.ru/external/2009/11/17.png

Thanks

Kolbi
11-13-2009, 11:32 AM
@mulle and @cheech47 What do you have selected under vBadvanced Global Options?

Kosmic1
11-13-2009, 12:15 PM
Nice update! Much better now :)

Kolbi
11-13-2009, 01:00 PM
Nice update! Much better now :)

Thank you :)

Version 1.2 is in a few seconds ready :)

Kolbi
11-13-2009, 01:10 PM
Version 1.2 is published :)

Skydiver10
11-13-2009, 02:03 PM
Border still around Avatar ...where do I edit the border? Thanks!

Skydiver10
11-13-2009, 02:14 PM
Never mind I found it ...> Vbulletin Options> Navbar with Avavtar > ...Height set to 70.

The only thing is when you change the height, it changes the entire top bar across the screen, still leaving a border around the avatar.

So, If you set the Height to 100, then the whole navbar across the screen increases as well. So, nothing has changed except that you can increase your picture size with the whole navbar included.

Is there a way to adjust the size of the avatar picture only?

Thank you so much for your work!

RTMdotORG
11-13-2009, 03:03 PM
Hi, thanks for this.
But I dont feel this is a big enough mod to have your name and site in my footer...
is there a way to take it off?

Kolbi
11-15-2009, 04:28 PM
Border still around Avatar ...where do I edit the border? Thanks!
Are you using the version with or without TMS?
I don?t really know your style and your css. But please try to modify:
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
class="alt1" try to change to alt2 or navbar or just remove it.

Kolbi
11-15-2009, 04:31 PM
Is there a way to adjust the size of the avatar picture only?

Not really, if I can clearly understand you, you want to have only the avatar height increased and not the whole navbar?
And personally I think it would not look nice.

Kolbi
11-15-2009, 04:31 PM
Hi, thanks for this.
But I dont feel this is a big enough mod to have your name and site in my footer...
is there a way to take it off?
A small donation and I tell you how to do :)

RTMdotORG
11-15-2009, 10:12 PM
A small donation and I tell you how to do :)

I figured it out, thanks.

Kolbi
11-16-2009, 03:25 PM
I think about updating to vb 4.x, there should the avatar now be located?
Are you interested in the 4.x Version?

Kolbi
11-16-2009, 07:57 PM
Go into /includes/config.php an remove the // before //define('DISABLE_HOOKS', 1);
Then save and return into AdminCP. There you can uninstall this modification.
After that add the // again and save.

What issue do you have?

Kolbi
11-17-2009, 10:02 AM
thanks for the quick reply

i dont see //define('DISABLE_HOOKS', 1); in my config.php
please ref attachment i have put the content of my config.php in the note pad

i am sorry i am not a coder i dont understand much of this stuff , dont know whats wrong another admin at my forum uploaded another similar plugin for avatar but that did not work so i removed that and tried this but even this something happened i am using 3.8.4

thanks for your time
:up:
Please remove your attachment, because you forgot to remove your password and so on :)

I seems that someone has shorten your config.php. Please open an original config.php.new and compare these two versions and you?ll see that at the end this is missed:
// GZIP komplett deaktivieren: Dies ist noetig, wenn auf dem Server standardmaessig
// GZIP aktiv ist und diese Option auch im Administrator-Kontrollzentrum aktiviert wurde.
// Dadurch ist oft in vBulletin keine Anmeldung mehr moeglich.
// Moeglicherweise ist es noetig, die folgende Zeile in der Datei /includes/init.php oder
// /includes/class_core.php aufzunehmen, damit dieser Eintrag wirksam wird.
//define('NOZIP', 1);

// Plug-in-System komplett deaktivieren: Dies ist noetig, wenn durch
// fehlerhafte Plug-ins in vBulletin keine Anmeldung mehr moeglich ist.
//define('DISABLE_HOOKS', 1);

// Keine E-Mails verschicken. Diese Einstellung sollte fuer ein Test-Forum aktiviert werden.
//define('DISABLE_MAIL', true);

// Debug-Modus aktivieren: Nur fuer Entwickler gedacht.
//if (VB_AREA == 'AdminCP')
//{
// $config['Misc']['debug'] = 1;
//}
(okay, mine version is German :))
This has to be added you your config.php and then you can remove the // before //define('DISABLE_HOOKS', 1);

I you send me via PM AdminCp access and ftp access I can perhaps help you.
Administrator@2-wheel-planet.de for further informations.

But I think that your problem has nothing to do with my modification :)

Kolbi
11-17-2009, 03:43 PM
Thanks for the detailed information , i removed the attachment
where can i find config.php.new ? i will compare and try to fix it as before
Go on vbulletin.com login and download the fully vbulletin 3.8.4pl1 package.

Kolbi
11-17-2009, 04:31 PM
ok i downloaded the entire file again
and just before i rename "config.php.new" to "config.php" and upload to my server i request you to check if it has the required stuff please
thanks
Incredible. The needed lines still don?t exists.
Can you please open a thread on vbulletin.com because I think you?ll get for help from them :)
Normally you only can add temporarly the line: define('DISABLE_HOOKS', 1); to your config.php and after you are finished with uninstalling the plugin remove it.

blaize
11-17-2009, 05:12 PM
disable hooks isn't in the config file you have to add it.

Gomjaba on vbulletin.com posted this helpful article (http://www.vbulletin.com/forum/showthread.php?196688-Disable-the-plugin-hook-system-globally) quoted below explaining how to disable the plugin system.


Disable the plugin/hook system globally

This can be helpfull if you created / installed a plugin or product which has broken your forum and you are not able to access the AdminCP anymore.

To disable the plugin/hook system open your config.php which can be found in your forumroot/includes directory

Just below
Code:

<?php

enter
Code:

define('DISABLE_HOOKS', true);

and save the file.

If you would like to enable the plugin/hook system again, either remove the line again or simply comment that line out. To do so, add two forward slashes " / " so it will look like

Code:

// define('DISABLE_HOOKS', true);

Next time you would like to disable the plugin/hook system again
you simply have to remove those two " / ".

If you are able to access your AdminCP go to

AdminCP -> vBulletin Options -> vBulletin Options -> Plugin/Hook System

And set it to No to disable.

Kolbi
11-17-2009, 05:40 PM
disable hooks isn't in the config file you have to add it.

In the German version these lines are included original :)

Kolbi
11-17-2009, 05:41 PM
Thanks a ton "blaize" my forum is back i have uninstall-ed the plugin , also spl thanks to KOLBI for spending so much time and replying all my question you guys are great this forum is very good and all are so helpful
thanks again
Sounds good :)
Can you tell me which plugin caused the crash?

Kolbi
11-17-2009, 06:03 PM
can i bother you for more help please ?
i was looking for 2 features for my forum i dont know where and how to get them

1) when someone hits my webpage i dont what them to see anything other than log-in screen for eg
look at this site http://www.freesports4u.com/ you are forced to login in no guests how do we do this ?

2) in vb.org under every first topic of a thread we see list of similar threads (similar mod) how do i do that in my site ?
I think your question should be placed here: http://www.vbulletin.com/forum/forumdisplay.php?140-vBulletin-3-8-Questions-Problems-and-Troubleshooting
:)
sorry it say it was your plugin "product-kolbi4.xml" it was uploaded by another admin i dont know if it was his mistake or some problem with the plug in i am calling him now to find out what actually he did
What other plugins have you installed?

parveznpt
11-19-2009, 09:11 AM
Nice hack, working!! Thanks and installed

mradlin
11-21-2009, 04:33 AM
Works great!! Installed!!

Kolbi
11-21-2009, 08:12 AM
Nice hack, working!! Thanks and installed

Please click install ;)

aus360
11-28-2009, 09:23 PM
<font color="Red">SOLVED!!!, got this working by disabling the following product "Navbar Additions + ShareThis"</font>

Installed but nothing appears on navbar, im using the version without TMS and i added the line:
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>

above:
==================================
<else />

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

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

but no use...
ive been trying for 2 days now, so can anyone help me? i will pm you my navbar template if you want, im using the style called simpleblue.

thanks in advance

Kolbi
11-29-2009, 04:36 PM
I´m glad to hear that you could resolve the issue your own.

SEW810
11-30-2009, 03:51 AM
uninstalled, didn't work and i've got no time to read about solutions.
Anyway, thnx

Kolbi
11-30-2009, 11:40 AM
If you send me additional information and the URL to your board perhaps I can help you to resolve this problem and get it work.

cheech47
12-16-2009, 08:21 PM
@mulle and @cheech47 What do you have selected under vBadvanced Global Options?

Do you mean the Global vBadvanced Settings>Navbar Replacements?

Kolbi
12-17-2009, 10:30 AM
Yes...

Lustikus
12-17-2009, 01:19 PM
I also need help pls, vba does not show the avatar...

Kolbi
12-18-2009, 01:38 PM
What do you have selected under vBadvanced Global Options?
And it also would be great if you can post your url...

Lustikus
12-19-2009, 03:29 AM
navbaravatar, as written in another Thread. The mod is still working, but the avatar is not there - maybe the path of the avatar need to be adjusted in vbadvanced.

I´ll send you acount informations separated since you need to be registered to see the avatar in navbar;-)

mattpist
12-23-2009, 07:41 AM
this is a nice little hack, but seriously, is it worth having your credits on the bottom of my site? i don't think so. uninstalled.

ravenfaust
12-31-2009, 07:13 PM
remove 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=\"Your Avatar\" height=\"". $vbulletin->options['navbarwithavatar_height'] ."\" 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=\"". $vbulletin->options['navbarwithavatar_height'] ."\" border=\"0\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options['navbarwithavatar_default'] ."\" alt=\"Your Avatar\" height=\"". $vbulletin->options['navbarwithavatar_height'] ."\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
if (strpos($vbulletin->options['copyrighttext'], 'Navbar mit Avatar von <a href="http://www.2-wheel-planet.de" target="_blank" rel="follow">Kolbi</a>') === false)
{
$vbulletin->options['copyrighttext'] .= 'Navbar mit Avatar von <a href="http://www.2-wheel-planet.de" target="_blank" rel="follow">Kolbi</a>';
}

Jamie107
11-14-2010, 03:41 PM
Nice mod just installed and trying hard to remove the copyright from the bottom of my forum

any chance you can tell me how to remove it? its kind of old mod now so would be nice and good thing for you to do.

I remove that @ravenfaust and no avatars show anymore?

Cla75
12-03-2010, 08:58 AM
hi,
I installed this mod and it is very beautiful.
only one problem:
does not work on vBadvanced CMPS, leaving empty space :-(

Why?
thanks for the support

haytham
12-03-2010, 10:11 AM
Installed and worked easily.

E110
12-04-2010, 01:41 PM
tnx, installed ;)

Kolbi
12-04-2010, 02:05 PM
hi,
I installed this mod and it is very beautiful.
only one problem:
does not work on vBadvanced CMPS, leaving empty space :-(

Why?
thanks for the support

I can have a look if you?ll send me url and an admin account.

But I guess I can remember that there was an issue with CMPS templates...

gsmlover4u
12-13-2010, 04:51 AM
how to remove kolbi from footer ?

Kolbi
12-13-2010, 05:18 AM
Just PM me for further details on it...

E110
01-29-2011, 08:01 AM
I can have a look if you?ll send me url and an admin account.

But I guess I can remember that there was an issue with CMPS templates...
is there a solving for this problem?

Kolbi
01-30-2011, 08:28 AM
As far as I know the problem was that CMPS uses a custom template.

If someone can provide me access to a developement site with both hacks installed, I would like to work s.th. out.

EnigmaVariation
02-13-2011, 09:29 PM
Installed this mod and it works well. I just need to know how to remove the Navbar with Avatar by Kolbi from the footer. I have sent a PM. Thanks.

Max Taxable
02-13-2011, 09:43 PM
Installed this mod and it works well. I just need to know how to remove the Navbar with Avatar by Kolbi from the footer. I have sent a PM. Thanks.Wasn't it nice of them to delete my previous message about that?

EnigmaVariation
02-13-2011, 10:34 PM
Wasn't it nice of them to delete my previous message about that?

Max, I am still tinkering and trying to get rid of it. No luck yet. I have been able to modify it though to my own text and link so far. You have to modify the xml product file in WordPad where you see Kolbi and the link to his website. Then save it and install the product as an overwrite.

Kolbi, if removing your unwelcome advertisement from the bottom of my forum will put me in violation of using your product, please notify me ASAP and I will remove your product immediately and will not use any of your future products. Thanks.

Max Taxable
02-13-2011, 11:37 PM
Max, I am still tinkering and trying to get rid of it. No luck yet. I have been able to modify it though to my own text and link so far. You have to modify the xml product file in WordPad where you see Kolbi and the link to his website. Then save it and install the product as an overwrite.

Kolbi, if removing your unwelcome advertisement from the bottom of my forum will put me in violation of using your product, please notify me ASAP and I will remove your product immediately and will not use any of your future products. Thanks.The script installs this in your footer template script. Find and remove:

$vboptions[copyrighttext]

Which has been installed right under:

<div class="smallfont" align="center">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

It installs this in the same place on ALL of your styles, by the way.

EnigmaVariation
02-14-2011, 12:00 AM
The script installs this in your footer template script. Find and remove:

$vboptions[copyrighttext]

Which has been installed right under:

<div class="smallfont" align="center">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

It installs this in the same place on ALL of your styles, by the way.

I tried your suggestion but that deletes the copyright text that I want to have on there too though. :(

Max Taxable
02-14-2011, 12:06 AM
I tried your suggestion but that deletes the copyright text that I want to have on there too though. :(It shouldn't have done that. Here is correct part of the footer code, with his added material in bold:

<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>

<div class="smallfont" align="center">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
</div>
</div>

</form>

Remove only the bolded part. $vbphrase is vBulletin's copyright, $vboptions is, his option.

EnigmaVariation
02-14-2011, 12:34 AM
It shouldn't have done that. Here is correct part of the footer code, with his added material in bold:

<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>

<div class="smallfont" align="center">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
</div>
</div>

</form>

Remove only the bolded part. $vbphrase is vBulletin's copyright, $vboptions is, his option.

That is what I did and it still removes all of my vBulletin's copyright info too. I also have Quick User Switch installed and maybe there is something going on between this mod and that mod that doesn't like it when I remove that part. I don't know.

Thanks for trying though. I appreciate your time and help, Max. I am hoping Kolbi uploads a new xml file that has his advertisement footer info removed completely.

Max Taxable
02-14-2011, 12:57 AM
That is what I did and it still removes all of my vBulletin's copyright info too. I also have Quick User Switch installed and maybe there is something going on between this mod and that mod that doesn't like it when I remove that part. I don't know.

Thanks for trying though. I appreciate your time and help, Max. I am hoping Kolbi uploads a new xml file that has his advertisement footer info removed completely.In my opinion he should have at least told us about it up front.

Did you fix your footer script back the way it was?

EnigmaVariation
02-14-2011, 01:13 AM
In my opinion he should have at least told us about it up front.

Did you fix your footer script back the way it was?

Agreed. And yes I did, thanks. :)

dutchbb
02-27-2011, 07:06 PM
How can I make the avatar URL absolute instead of relative? Since the avatar doesn't show up in Photopost or Reviewpost now.

Kolbi
03-30-2011, 12:15 PM
Would you be so kind to explain me in which way it should be relative?

I can't really understand there's the issue. :)

Thank you!

Alfa1
04-10-2011, 08:46 PM
Many of my members have rectangle (standing or laying) avatars. These gets resized to squares, which squashes the images and looks very ugly.

What can I do to resolve this?

How can I make the avatar URL absolute instead of relative? Since the avatar doesn't show up in Photopost or Reviewpost now.
It shows well in Photopost Pro for me. But not in vbadvanced.

Erica1977
04-11-2011, 06:44 AM
Great mod, but it won't work with vbadvanced, nothing shows up on VBA-pages.
What should I change to get it work?

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.

Max Taxable
06-10-2011, 02:54 PM
I you send me your navbar template and header template and the URL to your site, I prepare this mod for you.I am doing that right now via PM system... This hack works with all of my custom styles except a really OLD one I have and really like.

Alfa1
06-10-2011, 03:19 PM
Avatar before using this modification:
129927

Avatar after using this modification:
129926

Please add an image crop tool (http://keithics.com/blog/jquery/ajaxcrop-jquery-and-php-crop-tool), so that members can crop their avatar to a square. Without it rectangle avatars are stretched and squashed beyond recognition.

Kolbi
06-14-2011, 07:05 PM
I am doing that right now via PM system... This hack works with all of my custom styles except a really OLD one I have and really like.

Perhaps you can give me style via email? Or admin access to I can check the navbar template?

Kolbi
06-14-2011, 07:07 PM
Avatar before using this modification:
129927

Avatar after using this modification:
129926

Please add an image crop tool (http://keithics.com/blog/jquery/ajaxcrop-jquery-and-php-crop-tool), so that members can crop their avatar to a square. Without it rectangle avatars are stretched and squashed beyond recognition.

To prevent this you can limit only on thing, height or width...

I think I won't build a new 3.x version because I'm using vB 4.

Alfa1
06-29-2011, 11:46 AM
To prevent this you can limit only on thing, height or width...
I dont see how setting a maximum height or width helps. But if that would somehow help, then i think that will not affect those 100.000 members that already have an avatar. It would then only help for new avatars. or am I missing something?

trotskid
03-17-2012, 10:02 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.

Doesn't show the avatar in my vBa :(

oxblood12
03-23-2012, 12:19 AM
thanks

Abdullah SZ
04-05-2012, 06:28 AM
The readme file has two settings, with and without TMS. What is TMS?

Kolbi
04-05-2012, 10:00 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=152931" target="_blank">Template Modification System </a>
Version 1.1.5 is for vB 3.x use.

Abdullah SZ
04-06-2012, 03:47 PM
Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931)
Version 1.1.5 is for vB 3.x use.

I haven't upgraded to VB 4 yet.

Kolbi
04-11-2012, 09:33 AM
Version 1.1.5 works for vB 3 as well.

YankForum
07-28-2012, 07:26 AM
just wanted to report the avatar not showing up in /fourm/arcade.php

Kolbi
07-28-2012, 07:32 AM
Could you provide me a link? I would recommend PM + user-account (if needed).

YankForum
07-28-2012, 08:08 PM
Could you provide me a link? I would recommend PM + user-account (if needed).

i attached a screen shot for you reference

Max Taxable
07-28-2012, 08:21 PM
i attached a screen shot for you referenceIt works on mine... I have the same arcade and have this Mod as well.... It looks on first glance that your style reverses the position of the navbar template? Making everything flush left instead of flush right? Your issue may be related to that.

Kolbi
07-30-2012, 01:45 PM
i attached a screen shot for you reference
Thank you for the screen but to identify the issue I should see the code of your page...

J19784B5A39B
08-06-2012, 12:57 PM
Everything ok Avatar forum page. Not for home page and Arcade?

Kolbi
08-06-2012, 01:17 PM
For the reason that I haven't installed the arcade mod I couldn't proove it.

But it might be possible to get it working on the arcade, too.

J19784B5A39B
08-06-2012, 01:33 PM
For the reason that I haven't installed the arcade mod I couldn't proove it.

But it might be possible to get it working on the arcade, too.

It would be nice this

Kolbi
08-06-2012, 01:49 PM
The problem is that I don't a vB 3 test board anymore :-(

Max Taxable
08-06-2012, 02:57 PM
For the reason that I haven't installed the arcade mod I couldn't proove it.

But it might be possible to get it working on the arcade, too.https://vborg.vbsupport.ru/showpost.php?p=2352194&postcount=96

J19784B5A39B
08-06-2012, 04:49 PM
It works on mine... I have the same arcade and have this Mod as well.... It looks on first glance that your style reverses the position of the navbar template? Making everything flush left instead of flush right? Your issue may be related to that.


and how?

Max Taxable
08-06-2012, 10:09 PM
and how?You can find out by creating a new style with no parent, and then looking at this mod through use of that new style.

Kolbi
08-10-2012, 06:25 AM
Or provide me a URL and maybe an admin account via PM :-)

Important:
Without TMS:
Open the navbar template and search for:
==================================
<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>
==================================
After that upload the plugin and you?re done.

A.Chakery
02-13-2013, 08:47 PM
Thanks for the plugin,

would you please tell me if this plugin is still supported ?

Kolbi
02-14-2013, 10:34 AM
More or less :-) I'm not using vB 3.8 anymore but I'll help as much as I can.

A.Chakery
02-14-2013, 11:46 AM
thank you for the reply,

actually my problem is kind of strange, the avatar is only showing when I am viewing the forumdisplay or showthread pages , its not showing in other sections like forumhome , vbadvanced cmps or my gallery !!!!


I even used a custom plugin instead of your product but it was the same , its so strange, please take a look at the screenshots and my custom plugin, I have no idea what is causing this issue.

I can provide you my templates in pm if they are needed ...

really appreciate your help.

thank you

My Custom plugin : (Hook Location : Global Start)

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\" class=\"avatar\" style=\"width:150px\" />";
}
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\" class=\"avatar\" style=\"width:90px\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/images/vuel/misc/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" style=\"width:100px\" class=\"avatar\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}


Snapshots :

forumdisplay and showthread:

http://picx.pro/img.php?image=3873_screen_shot_2013_02_14_at_4.07. 35_pm_zt2c.png&mode=thumb (http://picx.pro/viewer.php?file=3873_screen_shot_2013_02_14_at_4.0 7.35_pm_zt2c.png)

forumhome , vbadravced and other pages :

http://picx.pro/img.php?image=2353_screen_shot_2013_02_14_at_4.06. 26_pm_aeng.png&mode=thumb (http://picx.pro/viewer.php?file=2353_screen_shot_2013_02_14_at_4.0 6.26_pm_aeng.png)


thnx

Kolbi
02-21-2013, 09:23 AM
Are you using vBA?

Try: https://vborg.vbsupport.ru/showpost.php?p=2183278&postcount=81