Restricting file info view to admins & owners Restricting file info view to admins & owners
 

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

Restricting file info view to admins & owners

Started by AndrewC, September 25, 2007, 09:35:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AndrewC

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

AndrewC

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