vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Avatars - I have default and custom avatars - need to show only 1 (https://vborg.vbsupport.ru/showthread.php?t=203175)

MReardon 01-26-2009 05:55 PM

Avatars - I have default and custom avatars - need to show only 1
 
To all -

Thank you in advance for your help concerning this matter. Please do not reply "just upgrade" as it is not an option for me. This pains me too.

I have set default avatars for my usergroups (based upon # of posts). I have also allowed users to upload custom avatars if they wish.

When a user posts, they get the "new user" default icon until they make 15 more posts. However, if they choose to upload a custom avatar, when they post, BOTH the default and their uploaded custom avatar show up.

I would like to not show the default avatars if the user has their own custom avatar. I would still like to retain the default avatars for other users without custom avatars.

Is there a way to manage this?

Lynne 01-26-2009 07:45 PM

Default vb code checks to see if there is a custom avatar and sets show[avatar] to true if there is so that the image code is only shown if it exists. So, have you tried just using that code with an else statement for the default avatar:
HTML Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
<else />
your default avatar
</if>


Dismounted 01-27-2009 04:25 AM

There are a lot of places where the avatar is used, you may have to edit all those places. :)


All times are GMT. The time now is 01:06 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.01075 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete