Hello all,
First of all, let me say that I know very little about php, and have reached my limit with this one. I've been working on this for a week now to no avail, and only now found this fine forum. I hope someone here can help!
I use SPGM for a photo gallery script on my website. Test site is here.
Now, you can see the little folder images. What I'd very much like to do is add an ALT attribute to those images. Now, I WAS able to do this same thing (but with a title attribute) to the text links right next to the images. Hover over the text links to see. That's not native of SPGM. I added it.
I have figured out how to add an ALT attribute, but the variable doesn't seem to be working. Here's what I specifically found in the php file, lines 443-445:
// key in $cfg | ALT value | CLASS value | alternative (if resource is N/A)
array('gallerySmallIcon', 'Enter the '.$strHtmlGalleryName.' gallery here', CLASS_IMG_FOLDER, ''),
array('galleryBigIcon', 'Enter the '.$strHtmlGalleryName.' gallery here', CLASS_IMG_FOLDER, '»'),
...but if you go to the test site, you only see "Enter the gallery here", not "Enter the GALLERY NAME gallery here" Why not?
I basically did the same thing with the anchors right next to the folder icons. That part of the code I changed to:
// display the gallery title
print ' <td class="'.CLASS_TD_GALITEM_TITLE.'"><img alt="Just a transparent spacer image" src="http://www.chrisbartlett.net/pix/spacer.png"/>'."\n";
print ' <a title="Enter the '.$strHtmlGalleryName.' gallery here" href="'.$cfg ...
THAT has worked. Why doesn't the other one?
I made a text file version of the php file that controls everything for the script so you can see it here. Could someone have a look, please, and help me figure this out? Much appreciated!
Chris
PS. I really don't know much about php coding at all, so please explain things to me like I'm a 5 year old!