PDA


View Full Version : How do I change the noavatar.gif to a .jpg?


michaelsilvia
09-01-2005, 06:18 AM
In the User Cp, the users have an avatar that is defaulted. I know this is located in the images/misc folder. I want to change the actual code so I can make it a .jpg file, vice a gif file. I want to have my own custom noavatar.jpg file that the user CP pulls from. How to I make the user cp module pull a noavatar.jpg vice the noavatargif file? I have searched all the php files and cant find it. Thanks!

Mike

mholtum
09-01-2005, 08:02 AM
Why not just create a custom noavatar.gif and use that?

michaelsilvia
09-01-2005, 11:25 AM
Not interested in that. When I convert my jpg file to a gif, it looses a ton of resolution.

Mike

ConqSoft
09-01-2005, 11:29 AM
vBulletin doesn't use a default avatar in the UserCP by default, so that must be a hack. You should be able to just look at the hack code and see where it's pointing to the image and change the name there.

If you're talking about in the CMPS Welcome Block Module, you should be able to change it in the welcomeblock.php in the modules directory on this line (Line # 24 on mine):

$avatarurl = $stylevar['imgdir_misc'] . '/noavatar.gif';

ConqSoft
09-01-2005, 11:30 AM
Not interested in that. When I convert my jpg file to a gif, it looses a ton of resolution.

Mike

Can you post a link to the JPG you would like to use?