Advanced search  

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]

Pages: [1]   Go Down

Author Topic: truncate image titles  (Read 2305 times)

0 Members and 1 Guest are viewing this topic.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
truncate image titles
« on: June 22, 2006, 02:58:38 pm »

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: truncate image titles
« Reply #1 on: June 22, 2006, 03:08:08 pm »

- 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 ;)
« Last Edit: June 22, 2006, 03:15:32 pm by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: truncate image titles
« Reply #2 on: June 22, 2006, 03:25:34 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.