forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: JohannM on March 21, 2007, 12:26:24 am

Title: Hide file extension information cpg1.4
Post by: JohannM 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" ?