Results 1 to 5 of 5

Thread: DD PHP Photo Album script - photo descrip

  1. #1
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD PHP Photo Album script - photo descrip

    1) Script Title: DD PHP Photo Album script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...album.htm#note

    3) Describe problem: increased functionality question

    Am using the PHP Photo Album script from DD, which is great, but I was wondering if anyone had added any functionality for there to be a photo description either on the main thumbs gallery page or in the indiv popups?

    A logical way to do this would be to change the actual name of the photo to the description you want to show beneath the photo instead of the default 'photo 1 2 3' that you can toggle, and change the coding to reflect the photo 'name' (description) beneath the image.

    Any thoughts on this, or if it could be easily done?

    Thanks,
    AV

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Change this line:

    Code:
    tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
    to:

    Code:
    tempcontainer+=galleryarray[i][0].replace(/\.[^\.]*$/,'');
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    You might want to try doing a search on the forums for this- I believe there have been a few stabs at this before. Officially this script doesn't support such a feature yet, though I'm aware it's a popular request, and probably will be added in the next time the script is updated.

    Edit: Like in the case with John's post lol.

  4. #4
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect, worked great! Just need to try and play around with formatting so text will center, but this rocks!

  5. #5
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This worked great, but is there any way to have the photo description/title show under the larger photo that is clicked and linked to in its own seperate window, instead of under the gallery main page?

    Thanks yet again!

    AV

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
  •