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: Hide file extension information cpg1.4  (Read 1979 times)

0 Members and 1 Guest are viewing this topic.

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 252
Hide file extension information cpg1.4
« on: March 21, 2007, 12:26:24 am »

Hi

I need to hide the file extention (.jpg) in thumbnails.php and displayimage.php.

I tried everything, nothing works.

But also something for the future ...

I found this function on the web:

function strip_ext($name)
     {
          $ext = strrchr($name, '.');
          if($ext !== false)
          {
              $name = substr($name, 0, -strlen($ext));
          }
          return $name;
      }

Could it be implemented somewhere in admin to enable/disable "hide file extentions" ?

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.