homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
idea for adding descriptions to gallery images
idea for adding descriptions to gallery images
drooh

5+ Year Member



 
Msg#: 4483857 posted 2:20 pm on Aug 11, 2012 (gmt 0)

Ok, so I wanted to see if anyone had any ideas on what would be the most simple and effective way to do this.

Right now I have a simple gallery which runs from a php script. The script does not use a mysql database (hence the simple idea). Instead it just looks through a directory and makes categories from the folders and galleries from the images in those folders. As of now I simply use the title of the jpg image to form the caption (a little regex cleanup).

A request to add an additional description has posed an issue. I'm trying to think of a simply way to implement this w/o using a database. So the question is, where do I store the description data? xml? json? txt files?

thanks for your help :)

 

swa66

WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4483857 posted 9:05 pm on Aug 11, 2012 (gmt 0)

Having a description, title, size, author, date etc. in a database would make a lot of sense and isn't all that hard to create. What's scaring you away ?

drooh

5+ Year Member



 
Msg#: 4483857 posted 10:21 pm on Aug 11, 2012 (gmt 0)

What's scaring you away ?


just that this is the 1 missing feature of my simple gallery. Looks like mysql may be my best route

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4483857 posted 12:11 am on Aug 12, 2012 (gmt 0)

How big is the gallery? You can shovel all kinds of information into javascript-- but only if it's a very very small file, or your users will be twiddling their thumbs for several minutes while the information loads up.

Disclaimer: There's a limit to how many languages I can learn at once, so I'm doing things with js that God never intended js to do. But if it can be done in javascript it can be done in php. The brackets will just be a different shape, and there will be more of them ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved