Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Thumbnail Viewer 2 Accessing a Specific Directory

  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thumbnail Viewer 2 Accessing a Specific Directory

    1) Script Title: Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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!

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    There is a php photoalbum script here 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. As I remember, there were some problems with it, so I don't think you can use it out of the box
    Last edited by azoomer; 03-15-2011 at 07:40 PM.

  3. #3
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    The to scripts are not easy to combine, at least I wouldn't know how to do it, sorry.

  5. #5
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In the photoalbum script I found this link: http://www.dynamicdrive.com/dynamici...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!

  6. #6
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still have the same question.... Any takers?

  7. #7
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default Here is a possible option

    http://www.cssplay.co.uk/menu/double...al.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

  8. #8
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    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/s...ad.php?t=62681

    Edit: here is an example of the modification John made. Works very well, I think
    Last edited by azoomer; 08-23-2011 at 01:30 AM.

  9. #9
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  10. #10
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default check this out

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •