Newz25 Apr 2007 06:06 am
Great gallery script from Joseph Yancey:
http://josephyancey.com/wordpress/?p=30
I found it at Hotscripts: http://www.hotscripts.com/Detailed/69433.html
This is a test page to see if I could create a WordPress template to integrate it into a WordPress blog.
You can download my implementation of the gallery:




Where is the photos.php content?!
Great code. I noticed a couple things:
1.) Image folders need to be CHMOD 777 for thumb folder to be created and thumbs written to folder.
2.) Galleries (assuming you have more than one image folder) initial representative thumbnail will not display until that gallery has been visited and thumbnails created. How about a generic place holder?
I’m not asking for anything, just musing.
I see the author uses WordPress. When he mentions that simply including the photos.php in a php file will display the gallery I got to thinking and created a template with php include code to include the photos.php file, then created a new page using that template. This is what you see here.
While the gallery does not display it does write in everything else; don’t know why. You can view source to see the lightbox scripts written in and the table used to display the photo; yet no photos?
See the authors code working using this direct link: http://www.hqcode.com/wp-content/SDG/
Visit the authors site: http://josephyancey.com/wordpress/?p=30
Visit the Hotscripts page for this code: http://www.hotscripts.com/Detailed/69433.htm
Thanks to Joseph Yancey for sharing his efforts. I had a great time and think he really have a great and extensible tool!
It’s great to see someone using my gallery! As far as point 1 goes: I hadn’t thought of that as a problem. and point 2 : I know, I always view the gallery as soon as I create it so I don’t see it as a problem.
Thanks for your suggestions.
I’ve done some renovating to my WP. I attempted to incorperate this script into it with little luck.
I did it as a template then created a new page with that template. I got the pictures to come up where it shows all of the galleries but I could not get it to come up with the pictures from an individual gallery.
My thoughts are that the whole mod_rewrite thing is messing with it. I’ll toy with it some more and I’ll get back to ya.
I got it working in a template. The problem wasn’t with mod_rewrite but it did have something to do with how the url was sent.
Anyhow, an example of the template is working at http://www.josephyancey.com/wordpress/pictures
I will have a blog entry sometime tomorrow about it with a link to the template and some more explanation.
Thats it for tonight, cheers and thanks for the inspiration.
Thanks for the template Joseph! I copied your code and added it to my template specific to the Senorita WordPress theme.
Sorry, I did kinda forget that it was specific to my theme and it would have to be adapted for other themes. To be honest, it didn’t even occur to me that it would be an issue.
Thank you,
Joseph Yancey