Results 1 to 3 of 3

Thread: PHP Photo Album Script v2.11

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album Script v2.11

    1) Script Title: PHP Photo Album Script v2.11

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

    3) Describe problem: I have everything working great! It's a cool script. But I can not figure out how to make the pictures DISCRIPTION a hyperlink.

    Code:
    //Optional, manual description for particular pictures inside album
    //Syntax: albumid.desc[Pictures]="Picture description here"
    myvacation.desc[0]="Strawberry Cheesecake $20.00"///Would like for this to be a hyperlink to another page
    I still want the thumbnail picture to open up as a larger picture(thats okay) but I also would like for the description below it to be a hyperlink to another page.

    Thanks for your great script and for any help!!!
    Last edited by jscheuer1; 03-24-2013 at 02:24 AM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,072
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    I'd go for the obvious:

    Code:
    //Optional, manual description for particular pictures inside album
    //Syntax: albumid.desc[Pictures]="Picture description here"
    myvacation.desc[0]="<a href='someother.htm'>Strawberry Cheesecake $20.00</a>"///Would like for this to be a hyperlink to another page
    Just pay particular attention to the nested quotes (red). They're single ('), not double("). Javascript syntax requires that nested quotes be either escaped, or (as I have shown here) of a different type than the outer quotes. Here it's easiest to simply use a different type. Escaping (although it can be used at any time) only becomes necessary when there are quotes nested within already nested quotes.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much, That works great!!!

Similar Threads

  1. PHP Photo Album script v2.0
    By drrichard in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-10-2012, 05:51 PM
  2. PHP Photo Album script v2.11
    By gogtabi in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 07-16-2010, 05:34 AM
  3. Add Photo Title to PHP Photo Album Script
    By EdgeAgain in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-27-2009, 11:31 PM
  4. PHP Photo Album script
    By Biddypus in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 04-30-2008, 04:10 PM
  5. DD PHP Photo Album script - photo descrip
    By aavaughan in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 09-13-2007, 12:44 AM

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
  •