![]() |
Quote:
|
Is there a way to link the default no avatar to the choose avatar section of the member. Some of my members dont realize where to change there avatar and this would be a easy way to do it.
|
Quote:
|
I appear to be getting errors. Here is my code:
<?xml version="1.0" encoding="ISO-8859-1"?> <plugins> <plugin active="1" product="vbulletin"> <title>Default Avatar</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[if (!$this->post['avatarurl']) { $this->post['avatarurl'] = "images/avatars/flame.gif"; } if ($this->registry->userinfo['showavatars']) { $show['avatar'] = true; }]]></phpcode> </plugin> <plugin active="1" product="vbulletin"> <title>Default Avatar member.php</title> <hookname>member_complete</hookname> <phpcode><![CDATA[if (!$avatarurl) { $userinfo['avatarurl'] = "images/avatars/flame.gif"; } $show['avatar'] = true;]]></phpcode> </plugin> </plugins> Any suggestions? Thanks. |
Quote:
I have this plugin running on my site. I've just logged in to the site using Firefox and instead of my own avatar showing the 'no avatar selected' avatar is showing. Using MSIE my own avatar is showing. Anyone have any idea of what the problem is? |
Odd... are you 100% positive that you are logged in as the same user on both?
|
My avatars are set to 80x80 whilst the 'deafualt avatar' is 64x64. What is happening is that the 'deafualt avatar' (64x64) is being shown at 80x80 so it appears to be stretched out.
I've tried this with another person on their own computer and it's happening to them when they view their threads in Firefox. When I view the same thread in Firefox on my computer the new avatar is showing. It's almost as if Firefox isn't properly 'pulling' the image in - it's refreshing the image size but not the actual image. |
Any idea what I goofed up there in the code? I would like to get this going. Thanks.
|
Thanks :)
|
Very nice! Definitely put this to use on my forums!
|
All times are GMT. The time now is 10:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|