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: File Extension  (Read 2784 times)

0 Members and 1 Guest are viewing this topic.

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
File Extension
« on: November 07, 2003, 01:18:59 am »

For the filename can i just show the file name and not the File Extension?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
File Extension
« Reply #1 on: November 07, 2003, 08:33:24 am »

edit displayimage.php and find
Code: [Select]
   $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);Use one PHP's string functions (your choice) to remove the extension (see http://de2.php.net/manual/en/ref.strings.php ).

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.