Revised instructions for online gallery
November 2nd, 2006
I have created revised instructions for pages 420-421 of Foundation PHP for Dreamweaver 8 in the Tutorials section of this site. The change was necessitated by the withdrawal of MX Looper as a standalone extension following Adobe’s takeover of InterAKT. The new instructions make use of the very handy PHP Horizontal Looper extension created by Tom Muck. The extension is free, but if you find it useful, you might want to buy the more sophisticated commercial version.
Entry Filed under: Books, Dreamweaver, PHP
5 Comments
1. Jos Vecht | January 5th, 2007 at 10:59 am
Hi David Powers,
‘Foundation PHP for Dreamweaver 8′ is really a great book. I tried several books before this one to get hold on the subject but yours certainly is the best.
I now however reached page 423 and ran into a problem getting the javascript no to work properly on my Mac in both Safari and Firefox
Hitting one of the buttons leads me to the jpeg itself probably due to the PHP code.
On Windows XP and 98 it works properly in IE but not in Firefox.
Is it possible to get it done completely in PHP to avoid differences between javascripts?
Jos Vecht,
The Netherlands
2. David | January 5th, 2007 at 11:51 am
Glad you like the book, Jos. There must be something wrong with the way you have used the JavaScript. I have just tested it in several browsers, including Safari and Firefox in a Mac, and it works perfectly. See for yourself by going to the case study page on my site. Click the link at the bottom of the page and test the gallery.
3. Jos Vecht | January 6th, 2007 at 10:47 pm
You are completely right.
I overlooked the excistence of the case study on your site where I can see it perfectely working indeed.
I’ try to find out where I went wrong.
Thanks,
Jos
4. Peter | March 11th, 2007 at 1:07 pm
If the query string is manipulated on your gallery like so:
http://foundationphp.com/dreamweaver8/seasons/gallery.php?pageNum_getPictures=91&totalRows_getPictures=0
it doesn’t really downgrade nicely, ideally if the query string is altered it should at least give a message stating there are no images for the entered row or better still default to page one. It would also be nice to have used mod_rewrite so rather than:
gallery.php?pageNum_getPictures=91&totalRows_getPictures=0
we have
gallery/91_0/
for example
5. David | March 11th, 2007 at 1:18 pm
Yes, Peter, you’re right. There are always ways to improve the functioning of a website. However Foundation PHP for Dreamweaver 8 is aimed at teaching readers how to use the PHP server behaviors in Dreamweaver. Using mod_rewrite is not an option for anyone not using an Apache server. It’s also a rather advanced subject for a book aimed at the beginner/intermediate level.
Trackback this post