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

Kingsley
#11409 2009-04-15 04:34
# TwistedGA : 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. :-)

Somehow this isn't working for me. It won't display the image at all.. only get a red cross..