put a name into images without a name with filename put a name into images without a name with filename
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

put a name into images without a name with filename

Started by daniell, December 04, 2006, 01:07:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daniell

i want to know if theres a way to put the filename ( eg. jessicaalba.jpg )  as the name of that image on cpg!?!?!

maybe with phpmyadmin.. this is possible?!

thankz

Abbas Ali

Go to "Edit Files" of the album and copy the filenames to the "Title" field. This should solve your purpose i guess.
Chief Geek at Ranium Systems

daniell


Abbas Ali

In that case run the following query in phpMyAdmin (Replace cpg1410_ with your table prefix).


UPDATE cpg1410_pictures SET title=filename;


Remember to take a backup of the database before you do so. Running update queries directly from phpMyAdmin is quite risky in case you make mistake.

Above query will set the title of each picture in your gallery to its filename overwriting any previous titles.
Chief Geek at Ranium Systems

Nibbler


Abbas Ali

Oops, missed that. Apparently even Devs don't know the full functionality of coppermine ;)
Chief Geek at Ranium Systems

Gizmo

Beat me to it Nibbler. You can have the file "title" changed to the file "name" minus the extension in the admin tools. So the title will read "jessicaalba" and not "jessicaalba.jpg" which is a much cleaner look. Is this OK or were you asking something that deals only with the title? It's a bit confusing I know.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision