SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2010
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do these .php galleries work?

    I hope this is not a stupid question! I am very interested in making a gallery like this

    http://www.josephkaynephoto.com/phot...sage-brush-bw/ what interests me the most is how the photo-caption is displayed on the browser address line or how the url includes the photo-caption. And when the arrow is clicked for the next photo, the image goes to the next one and the link shows the photo-caption of that image.

    How is this done? Is this done with php and a database? How can I create a link that includes the photo-caption and avoid the usual id and other numbers when using a php gallery?

    Thank you for your help...

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,046
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    There are many different ways to create a gallery using PHP. Though I would argue whether that even needs to be done. The first question is really whether the site that is being built will need to have none-technical users create content. If not you could get away without using PHP. For example, if this is a personal portfolio site or something than really you could just get away with tossing the images in a directory and linking to them.
    The only code I hate more than my own is everyone else's.

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2010
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oddz... I have a working working gallery. But the links are not as nice as the one above... mine currently looks like this. http://www.rajeevthomas.com/viewgall...?cid=4&pid=376 I am just interested in making the link look like the one above where the image caption is part of the link rather than like the numbers and characters in mine.....


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
  •