[Solved]: Removing username from File information [Solved]: Removing username from File information
 

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

Main Menu

[Solved]: Removing username from File information

Started by Geo, June 21, 2004, 01:18:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Geo

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
"Ich bin Kein Berliner - who wants to be a small jam filled donut? "

Casper

Go into config, and you can turn it off there.
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

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


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

Casper

No, I misread your first post, thought you were asking about the name under the thumb.  Will get back to you.
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

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

Casper,

Works perfectly... manymany thanks  ;D

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