Thread: <IMAGE_HEIGHT2>
View Single Post
  #2  
Old 12-19-2006, 06:46 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
MUAHAHAA i figured it out.. if anybody wants to use this for whatever reason its quite simple this is how i did:

at this place in index.php
Code:
	$image_width = $image_extra['0'];
	$image_height = $image_extra['1'];
	$tpl = str_replace("<IMAGE_WIDTH>",$image_width,$tpl);
	$tpl = str_replace("<IMAGE_HEIGHT>",$image_height,$tpl);
i just added $image_height2 and the replace tag.
Code:
	$image_width = $image_extra['0'];
	$image_height = $image_extra['1'];
	$image_height2 = $image_height - 30;
	$tpl = str_replace("<IMAGE_WIDTH>",$image_width,$tpl);
	$tpl = str_replace("<IMAGE_HEIGHT>",$image_height,$tpl);
	$tpl = str_replace("<IMAGE_HEIGHT2>",$image_height2,$tpl);
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote