Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: truncate image titles  (Read 2438 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.018 seconds with 20 queries.