forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: dck on March 20, 2005, 05:21:16 pm
-
How do I include filenames (as listed say in Windows Explorer) on all the pictures in the gallery?
Linky? I've searched ... couldn't find?
Thanks
EDIT- I'm talking about making it (the filename) automatically appear in the Descriptilon?
-
where is the filename suppossed to be displayed? On the thumbnail page? On the intermediate/full-size display (displayimage.php)? Please post more details, and search the board, as this has been asked very often already.
Joachim
-
I would like the filenames on the thumbs, and in the titles on essentially everything.
i've read the forums and searched, it seems that you must enter everything manually, one at a time, unlesss you want to deal w/complicated work around scripts.
-
I know I've seen a mod/hack posted that puts filenames in the title field during the upload process. Is this what you want?
If you want to do the pictures that are already uploaded, the easiest thing to do is write a sql script that takes the filename and puts it in the title field, if the title field isn't blank. Something like this:
update table cpg_pictures
set title = filename
where title is null
That will put the filename in the title field for all of your pictures, as long as there isn't anything in the title field already.
-
I know I've seen a mod/hack posted that puts filenames in the title field during the upload process. Is this what you want?
If you want to do the pictures that are already uploaded, the easiest thing to do is write a sql script that takes the filename and puts it in the title field, if the title field isn't blank. Something like this:
update table cpg_pictures
set title = filename
where title is null
That will put the filename in the title field for all of your pictures, as long as there isn't anything in the title field already.
Yes. the first option/mod hack would be best, while uploading. Link to mod? If its hard to install/do, forget it.
On the 2nd, sql script, is that something i could cut paste ? if so, where would it go? 2nd option would suffice as well.
-
Use a MySQL tool like phpMyAdmin to execute that sql script I posted.
I don't remember the post for filename->title during the uploads. You'll have to search and look around for it. Try the mods board.
-
Thanks for the script, there's just no way I can seem to get it executed properly. I download the php tool, i've searched and searched google for tutorials, but I really have no clue what I'm doing. I'm simply tired of trying to figure it out.
Thanks though.