PDA

View Full Version : DD PHP Photo Album script - photo descrip



aavaughan
09-11-2007, 03:19 AM
1) Script Title: DD PHP Photo Album script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.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

jscheuer1
09-11-2007, 04:50 AM
Change this line:


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

to:


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

ddadmin
09-11-2007, 04:55 AM
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.

aavaughan
09-13-2007, 12:35 AM
Perfect, worked great! Just need to try and play around with formatting so text will center, but this rocks!

aavaughan
09-13-2007, 12:44 AM
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