Advanced Layer Popup Support Product Page

This topic was archived

Advanced Picture Popup with php/mysql

Asked 08 Jun 2007 13:22:38
1
has this question
08 Jun 2007 13:22:38 Greta Garberini posted:
I would like to use this extension with a popup from thumbnails.
I use a php/mysql system with purephp2 upload and smartimageprocessor2
I assume that I have to tell APP the dimension of the bigger picture.
But there is a nasty bug in the purephp upload behaviour so that the dimension of the bigger photo is not correctly stored. (It stores the dimension of the original picture before it gets resized)
I wonder if there is another way to collect the correct dimension from the bigger photo, since DMX support does not answer my request for correcting this bug. see tinyurl.com/2a8qaq
The mysql database file for pictures does not save the picture itself as a blob field, but stores the picture name only. Dynamically I retrieve it with the path.
thanks

Replies

Replied 13 Jun 2007 11:47:30
13 Jun 2007 11:47:30 Georgi Kralev replied:
Hi Reinhard,

One workaround is to get image dimensions with getimagesize function.
Check the following sample code:

<?php list($w, $h) = getimagesize("Images/Sunset.jpg"
?>
<a href="#" onclick="dmxAdvLayerPopup('Sunset','Images/Sunset.jpg','alpSunset','','OS_Look','center','center',<?php echo $w ?>,<?php echo $h?>,0,true,false,false,0,'','Linear',2,true,'','Linear',2,true,'',1,5,true,false,'#FFFFFF');return document.MM_returnValue">Sunset</a>

Instead the static path and filename (Images/Sunset.jpg) you can use picture name from your database.

I hope this will help you.

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com

Reply to this topic