forum.coppermine-gallery.net

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
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;

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.
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