Results 1 to 7 of 7

Thread: adding lightbox to PHP Photo Album script?

  1. #1
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default adding lightbox to PHP Photo Album script?

    I'm not sure if this is possible. I suspect it is - but I don't know PHP well and I don't know how complicated it might be.

    I would like to use the PHP Photo Album script to generate my photo gallery, and then modify the script to use lightbox to show the images when clicked. Would it be as simple as having the PHP script add
    Code:
    rel="lightbox"
    to the links it generates (and, of course, installing the lightbox script on the page in question)? How would that be done?

    Thanks. Any advice would be greatly appreciated!

    EDIT: I'm sorry...! I meant to post this in the PHP forum. If it's fine to post it here, then I guess that's okay; but if not, could someone move it for me please? Thanks, and sorry again.
    Last edited by traq; 05-31-2008 at 06:50 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You are in the right forum.

    Look over a few of these results:

    http://www.google.com/search?hl=en&l...ox&btnG=Search

    If you still have questions, I would understand, as there have been several versions of lightbox and several approaches to combining it with PHP Photo Album. But rest assured it has been done.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    traq (06-01-2008)

  4. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

  5. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I tried out the modifications described in this thread, and I'm getting errors that say, "galleryarray is not defined" wherever "galleryarray" appears in the script. However, this is not part of the code that was modified. Any ideas? or something simple I'm missing?

    Here is the page in question.

    Thanks very much for everything so far.

  6. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    WELL, I hope no one thinks I'm too dumb. I had "/gallery" written in all the file paths when the actual folder is named "/album." Jscheuer, thanks again. It works perfectly.

  7. #6
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How?

    i would like to add this to my site: Link. I have followed all the instructions on the DD page. how did you do it? thanks

  8. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Samdia, please start a new thread when asking your own question about a script. BTW, PHP Photo Gallery was just updated today to make it easier to integrate with a Lightbox script.
    DD Admin

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
  •