vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   default avatar image (https://vborg.vbsupport.ru/showthread.php?t=31633)

Neo 10-28-2001 06:32 PM

it there a way i can have a defaul image, when a user does not have a avatar uploaded?

Dunny 10-31-2001 03:48 PM

just figured this out :D, in VB 2.0.3 find and change the below in admin/functions.php

if ($post[avatarid]!=0) {
$avatarurl=$post[avatarpath];
} else {
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]";
} else {
$avatarurl="enter path to default avatar here";
}
}

Admin 10-31-2001 03:58 PM

Dunny, please enter your license information by going to this page. Thank you.

Neo 10-31-2001 04:41 PM

doesnt 2.2.0 have this feature?

MrLister 11-01-2001 12:55 AM

no...

Snake~eyes 11-01-2001 11:30 PM

Could someone help me? I tried to do what that guy said but apparently that didn't wokr.. Anything he didn't mention?

thx

Bane 11-02-2001 12:00 PM

By using phpMyAdmin you can use the following query to set all avatars to avatar id1 (my default avatar) and change the default avatar to id1, this is what I did on my board, but it does reset the avatars. Maybe alternatively you can just make the row default avatar id 1.

THIS CODE WILL CHANGE -ALL- AVATARS TO ID 1 Though you will be able to change avs afterwards it will set everyone to the default first.

Quote:

UPDATE user SET avatarid='1'

Snake~eyes 11-02-2001 06:21 PM

what about the way that that one guy said? I'd like to do it like that.. :P


All times are GMT. The time now is 07:36 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.01530 seconds
  • Memory Usage 1,720KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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