Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Hide uploader names.  (Read 3502 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 20 queries.