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: [Solved]: Removing username from File information  (Read 4514 times)

0 Members and 1 Guest are viewing this topic.

Geo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Removing username from File information
« on: June 21, 2004, 01:18:53 pm »

Hi,

Iīd like to remove my usename from the file information under Album name.. Since upgrading to CPG.1.3, this is shown. I know enough to modify the php to remove it but cannot seem to find the appropriate file to modify... a Pointer in the right direction would be appreciated..

Thanks in Advance

George
« Last Edit: June 21, 2004, 06:20:18 pm by GauGau »
Logged
"Ich bin Kein Berliner - who wants to be a small jam filled donut? "

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Removing username from File information
« Reply #1 on: June 21, 2004, 01:26:03 pm »

Go into config, and you can turn it off there.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Geo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing username from File information
« Reply #2 on: June 21, 2004, 01:43:43 pm »

Go into config, and you can turn it off there.
Hi casper,

I donīt want to turn off the file info completely, just remove my username from being shown - if you could point me at the file I have to modify, I can take it from there  ;)

Cheers

George

PS... unless I am missing something blindingly obvious in the config that is...


Logged
"Ich bin Kein Berliner - who wants to be a small jam filled donut? "

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Removing username from File information
« Reply #3 on: June 21, 2004, 01:57:40 pm »

No, I misread your first post, thought you were asking about the name under the thumb.  Will get back to you.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Removing username from File information
« Reply #4 on: June 21, 2004, 02:08:22 pm »

OK George,

open displayimage.php, and find;

Code: [Select]
   if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
       $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
    } else {
        $owner_link = '';
    }

Comment it all out, like this;

Code: [Select]
  // if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
   //     $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
  //  } else {
  //      $owner_link = '';
  //  }

When in admin mode, you (admin) will still see the ip address of the uploader, but users will not, just the album name.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Geo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing username from File information
« Reply #5 on: June 21, 2004, 02:57:38 pm »

Casper,

Works perfectly... manymany thanks  ;D

George
Logged
"Ich bin Kein Berliner - who wants to be a small jam filled donut? "
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.