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 uploader names.  (Read 3501 times)

0 Members and 1 Guest are viewing this topic.

Webletee

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Hide uploader names.
« on: July 07, 2014, 08:55:20 am »

Hello, I'm looking for a way to hide the name of uploader in the information displayed below an image, preferably I would like to give my users the option to hide/show it themselves but primarily I'm looking for a way to hide it.
I didnt find any other post containing an answer and I havent found anything in the coppermine control panel, please help!

Thanks in advance.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hide uploader names.
« Reply #1 on: July 08, 2014, 11:29:08 am »

Copy the function theme_html_picinfo from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Find
Code: [Select]
foreach ($info as $key => $value) {and below, add
Code: [Select]
        if ($key == $lang_picinfo['Album name']) {
            $value = preg_replace('/<a href="profile\.php.*<\/a> \//U', '', $value);
        }
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.