PDA

View Full Version : default avatar image


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 (http://www.vbulletin.com/members/vbulletin.org.php) 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.

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