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: Restricting file info view to admins & owners  (Read 2397 times)

0 Members and 1 Guest are viewing this topic.

AndrewC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Restricting file info view to admins & owners
« on: September 25, 2007, 09:35:20 pm »

It seems that this must be simple to do in displayimage.php but I can't get my aging head around it:

I want to remove the "Display/hide file information" button and automatically display file info when logged in as as an admin or owner of the album.

Anyone else, I don't want them to be able to see the file info.

Thanks,

Andrew
Logged

AndrewC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Restricting file info view to admins & owners
« Reply #1 on: September 27, 2007, 12:12:01 am »

Well I figured out how to only show the file name if an admin is logged in:

  if  (GALLERY_ADMIN_MODE)  $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);

Still can't work out how to hide the toggle file info button, any ideas, anyone ?

Andrew
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.