Back to Top
The nuts and bolts for
Creative web development
Back to product page

Advanced Layer Popup Support

Overview » Questions » Advanced Picture Popup with php/mysql
This topic was archived
Reply

Advanced Picture Popup with php/mysql

Reinhard Czwiertnia
Member



Since: 22 May 2003
Posts: 84
Asked 08 Jun 2007 13:22:38

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

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

1 PERSON HAS THIS QUESTION I have this question, too!

Georgi Kralev
Employee



Since: 15 Nov 2006
Posts: 1,422
Replied 13 Jun 2007 11:47:30
0
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

Message
Reply