Forums / Cotonti / Support / Noavatar, how about noimage?

TwistedGA
#11351 2009-04-14 01:42
Ahhh, my bad. I'll write ya some code for it later.

Open up your functions.php and search for:

	elseif($type == 'photo')
	{
		if(!empty($image))
		{
			return '<img src="'.$image.'" alt="" class="photo" />';
		}

	}

Replace with:

	elseif($type == 'photo')
	{
		if(empty($image))
		{       
                        $image = 'datas/defaultav/blank2.png';
                  }
                  return '<img src="'.$image.'" alt="" class="photo" />';
	}


You need to have blank2.png in the same folder as the blank.png for this to work. :-)
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]

Dit bericht is bewerkt door TwistedGA (2009-04-14 04:15, 15 jaren ago)