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

ogden2k 04-04-2006 02:01 PM

Quote:

Originally Posted by rareclownfish
I'm having a little problem with it. Whenever I click on any user and view their profile the avatar comes up as a RED X.
What do I need to change?

In the XML file, specifiy the full path to the default images.

ryancooper 04-06-2006 11:03 AM

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.

Tralala 04-06-2006 11:07 AM

Quote:

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

Great idea!

TitanJeff 04-06-2006 11:55 AM

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.

criscokid 04-14-2006 10:40 AM

Quote:

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

I think I made a similar suggestion a few months ago - it would certainly be of benefit to those users that are new to discussion forums.

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?

Zachery 04-14-2006 11:24 AM

Odd... are you 100% positive that you are logged in as the same user on both?

criscokid 04-16-2006 08:11 PM

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.

TitanJeff 04-17-2006 11:02 PM

Any idea what I goofed up there in the code? I would like to get this going. Thanks.

Roms 04-19-2006 01:32 AM

Thanks :)

jodycwilliams 04-19-2006 07:01 AM

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
  • Page Generation 0.02128 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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