coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Geo on June 21, 2004, 01:18:53 PM

Title: [Solved]: Removing username from File information
Post by: Geo 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
Title: Re: Removing username from File information
Post by: Casper on June 21, 2004, 01:26:03 PM
Go into config, and you can turn it off there.
Title: Re: Removing username from File information
Post by: Geo on June 21, 2004, 01:43:43 PM
Quote from: Casper on June 21, 2004, 01:26:03 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...


Title: Re: Removing username from File information
Post by: Casper 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.
Title: Re: Removing username from File information
Post by: Casper on June 21, 2004, 02:08:22 PM
OK George,

open displayimage.php, and find;

   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;

  // 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.
Title: Re: Removing username from File information
Post by: Geo on June 21, 2004, 02:57:38 PM
Casper,

Works perfectly... manymany thanks  ;D

George