vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Deleting All Avatars???? (https://vborg.vbsupport.ru/showthread.php?t=37454)

Webmasta XT 04-15-2002 11:16 AM

Deleting All Avatars????
 
OK, I wanna delete all my avatars and re-upload new ones.. can anyone help me??? See I got all these old avatars, that I dont like, there are about 700.. and I wanna delete them all at once.. can anyone help me out?? plz.... :sleep:

and I also need help with no avatar thing, where ppl have a no avatar.. avatar when they don't have an avatar.. plz help soon!!

Admin 04-15-2002 11:32 AM

Code:

DELETE FROM avatar;
UPDATE user SET avatarid=0;


Webmasta XT 04-15-2002 02:29 PM

Thank You firefly, your the best!!!
But can someone tell me how to set a default avatar??? like when someone has no avatar, it should have an avatar saying no avatar.. can someone plz help me???

TECK 04-17-2002 06:52 AM

in functions.php, find:
PHP Code:

        if ($avatarurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showavatars]))) {
            
$post[avatar]="";
        } else {
            eval(
"\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
        } 

replace it with
PHP Code:

        if ($avatarurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showavatars]))) {
            
$post[avatar]='<img border="0" src="images/noavatar.gif">';
        } else {
            eval(
"\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
        } 

now place a noavatar.gif image in your /images folder.
that should do it.

Admin 04-17-2002 08:03 AM

That won't work nakkid. :)

You need to replace this:
Code:

                if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
                        $post[avatar]="";
                } else {
                        eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
                }

with:
Code:

                if ($bbuserinfo['userid']>0 and !$bbuserinfo['showavatars']) {
                        $post['avatar'] = '';
                } else {
                        if (empty($avatarurl)) {
                                $avatarurl = '<img border="0" src="images/noavatar.gif">';
                        }
                        eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
                }


Webmasta XT 04-19-2002 06:45 PM

nakkid and firefly, thanks a lot man.. owe you big times :)


All times are GMT. The time now is 02:09 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.01044 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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