truncate image titles truncate image titles
 

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

truncate image titles

Started by nickfzx, June 22, 2006, 02:58:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

is there a way to stop people being able to give image titles really long name?

I'd like to be able to restrict the number of characters in an image title to around 15.

Where would the place be to write a truncate bit in?

Any help would be great.

Cheers

Nick

Sami

#1
- under upload.php around line 2178 (when people upload pic)
- under editOnePic.php around line  39 (when edit one pic)
- under editpics.php around 105 (when edit more than one pic)
you can find $title and you can do what ever want to do with ;)
‍I don't answer to PM with support question
Please post your issue to related board

nickfzx

hmm this seems like it might be a bit too hard for me to figure out after all...I am not a programmer


All I want is to truncate the image titles that cpmfetch grabs from coppermine....I tried to do this for a while but it seemed it might be easier to just truncate the actual image titles and leave cpmfetch out of it.

Now I may just leave out the titles of my cpmfetch code.

thanks for the help

Cheers

nick