https://www.icyphoenix.com/viewtopic.php?f=1&t=7214&p=49401#p49401
-----------------------------------
Danielc
Thu 01 Jul, 2010 18:59

Re: Icy Phoenix 1.3.11.64
-----------------------------------
Has the styles changed a lot? I'm interested in make my own style for my site, but i don't know if i would do better waiting for the next release.
Also, i have other suggestions related to the performance (yes, a few more XD) that i have done in my site. The first is use minify to compress an merge the CSS files and JS files (had i said it before?). The second is related to posted_img_thumbnails.php (or bbcode.php). It would be better if it checks if the image is local and if its width and height are lesser than the max image size (that you can set up in ACP). In this case, there's no need to generate a thumbnail copying this file to the thumbnail path. It's better if you just link the original image path instead of linking the thumbnail path and also the original image path. This could be done with a few lines in bbcode.php and i think it increases a bit the performance.

FIND:
[code]if (strpos($pic_id, $users_images_path) !== false)
{
	$user_dir = str_replace($pic_filename, '', str_replace($users_images_path, '', $pic_id));
	$pic_thumbnail = $pic_filename;[/code]

AFTER ADD:
[code]
         $image_size = @getimagesize($img_url);
	 if($image_size[0] <= $board_config['thumbnail_size'] && $image_size[1] <=$board_config['thumbnail_size'])
	 {
		$thumb_exists = true;
	 }[/code]


Also, i haven't done this in my site, but it would be good if we add the width and height params to all images in the site. I don't know if this could increase drastically the memory usage or CPU usage, but if not, this could optimize the site. 

Thanks for your work!!!!


