Log in

View Full Version : Thumbnail Viewer 2 Accessing a Specific Directory



juneatnoon
03-15-2011, 02:33 PM
1) Script Title: Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem: I asked this question before, in a different way, but I've rethought what I'm really trying to do, so here goes: Is there a way to have the Thumbnail Viewer 2 access the files in a specific directory and create the images and links for each one, so that I don't have to hand code each image into my body text?

In other words, I'd have some sort of code that directed it to put the image into the href and img src with specific attributes, so every time I add an image to the gallery, it's automatically added to my Thumbnail Viewer's links without me typing the actual link into the body text each time.... (I'm thinking similar to the php I have in my WordPress blog that instructs WP to "get" certain things from a directory.)

Any thoughts? Thanks!

azoomer
03-15-2011, 07:35 PM
There is a php photoalbum script here (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm) that can automatically retrieve images from a specific directory.

By the way, I made a demo with this script with a mouseover effect a while ago. you can see it here (http://azoomer.com/phpalbum/). As I remember, there were some problems with it, so I don't think you can use it out of the box

juneatnoon
03-15-2011, 08:37 PM
Please forgive me, I'm very new to using code at this level. If I use the php photoalbum script as you referenced, would I be able to integrate it with the Thumbnail Viewer 2? I prefer the look and function of the TV2 (don't want to use a lightbox effect, just have the larger images on the same page, as here: http://danidraws.com/). I just need it to call the directory. So can I either (a) make the album script work with the TV2 or (b) make the album script work so that it displays like the TV2?

Thanks so much!

azoomer
03-15-2011, 10:50 PM
The to scripts are not easy to combine, at least I wouldn't know how to do it, sorry.

juneatnoon
03-16-2011, 03:19 AM
In the photoalbum script I found this link: http://www.dynamicdrive.com/dynamicindex4/php-photoalbum_suppliment.htm. That makes it sound like in some cases it's possible to make the codes work together, but I don't understand js enough to know if I could make the TV2 code work like that. Are you able to determine that? Thanks again!

juneatnoon
08-21-2011, 11:41 PM
Still have the same question.... Any takers?

ajfmrf
08-22-2011, 10:15 PM
http://www.cssplay.co.uk/menu/double-click-gallery-vertical.html#slide6

This ia a html and css only script.

You would only need to copy and paste two parts and change the uel of new photos to add more pictures.No it is not a automatic thing but it is css and html only no js to figure out.

Bud

azoomer
08-23-2011, 01:15 AM
Juneatnoon !
I just tried to combine the two scripts but had to give up.
Maybe this thread would be of value to you:
http://www.dynamicdrive.com/forums/showthread.php?t=62681

Edit: here is an example (http://azoomer.com/phptv2/) of the modification John made. Works very well, I think

juneatnoon
08-23-2011, 01:43 AM
Bud, I understand, and I do like that it's just html and css ('though I don't think too many people lack JS anymore). It's a little bulky sometimes to add large groups of photos by hand, but definitely not the end of the world. I'll check it out.

Azoomer, I'll check those out, too. Thank you!

ajfmrf
08-23-2011, 02:29 AM
http://www.kitykity.com/photoalbum/

Towards the middle of the page is a "Javacript Photo Album Updater"

It is a tool to use to make the code for the photo album image to add a imge for the javascript for the album

Maybe a guru here can help redo it so it can be used as you need it??

I am not very well versed at javascript so I am not good enough at it to do it for you but this possibly could point you in the right direction


Bud

juneatnoon
08-23-2011, 02:52 AM
Azoomer, I think I could work with that, but I followed the instructions for configuration very carefully, and nothing at all is showing up on my page. ???

azoomer
08-23-2011, 06:15 AM
Post a link so we can check out your page. Did you get the phpphotoalbum working without the modifcation ?

juneatnoon
08-23-2011, 01:43 PM
No, I didn't get it working at all, even after the initial install. I was reading in the forums, and it seems this is usually caused by a lack of PHP support, but my entire site is PHP-based, so it can't be that....

I actually don't have it activated on the page right now, because I continued to fiddle with another WordPress specific plugin that actually has a look/function I like better. So the page won't reflect the DD code at the moment, but to answer your question, it's www.juneatnoon.com/gallery.

Truthfully, I actually am looking for something a little more complex now, in that I'd like a dropdown menu that will determine which of my gallery's thumbnails shows on the page (so they can be viewed by category without multiple galleries on the page), and also a function that truncates the thumbnail list unless a paging button is clicked through (as it currently appears with this other plugin) so that the look is cleaner. I've just go so many images now that I don't want a huge list of thumbnails, *and* I want to be able to categorize them by type. I don't even know if it's possible to do both of those things with the DD script, and since I'm so close with this other one, I'm still trying to make that one work first.

I'm being high maintenance now, huh? :) Thanks for your help.

azoomer
08-23-2011, 02:29 PM
It looks nice. I like the fadeover effect, it's easier on the eyes without the blinking. Nice plugin, i'll have to try it on a wp site.
Oh and by the way, here's (http://azoomer.com/bangkokphotography/)a gallery i made a while ago combining some DD scripts, but it's not php, so more cumbersome to add pictures.

juneatnoon
08-23-2011, 02:34 PM
Yes, it is a nice design. They also have a WP template (also called Photospace, here: http://thriveweb.com.au/themes/photospace/) that's made to work with the plugin, but I have a custom template that I want to keep, so I'm trying to figure out which script/code I need to add the dropdown menu that they use in the their template and put it in my own (so that the user can select which gallery's thumbnails show on the page and view each gallery individually on the same page, same load area). I'm pretty good with html and css, but this other stuff is a foreign language to me! :)