Log in

View Full Version : Image Magnify v1.11 help to install



Ady
07-06-2011, 10:32 PM
Hello

I'm not good at it but I like it. :)
To activate ImageMagnify have to upload code:
<img src="ocean.gif" class="magnify" style="width:200px;height:150px" />
or
<img src="forest.gif" class="magnify" border="0" />

So ImageMagnify script need to fit in to script below. There is no photo name like "ocean.gif" it must be linked by ID. It's users photos.

Any help or advise please.

Thank you



</td></tr></table>

<?php

if (@mysql_num_rows($pres))
{
$i = 0;
?>

<table class="postpics" width="100%"><tr><td> <!-- Version 5.0 -->

<?php
while ($row = mysql_fetch_array($pres))
{
$i++;

$imgsize = GetThumbnailSize("{$datadir[adpics]}/{$row[picfile]}", $images_max_width, $images_max_height);

?>

<img src="<?php echo "{$datadir[adpics]}/{$row[picfile]}"; ?>" id="adimg<?php echo $i; ?>" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"><br><br>

<?php
}
?>

</td></tr></table>

<?php

$imgcnt = $i;

}
?>

jscheuer1
07-07-2011, 01:20 AM
In this line add the highlighted:


<img class="maginify" src="<?php echo "{$datadir[adpics]}/{$row[picfile]}"; ?>" id="adimg<?php echo $i; ?>" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"><br><br>

But the dimensions:



width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"

should ideally be less than the actual dimensions of the image.

Ady
07-07-2011, 10:58 PM
It's working!!!
You help me so much.
Thank you, John

Have a nice day ; )