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: certain group to see file info box  (Read 3642 times)

0 Members and 1 Guest are viewing this topic.

shaddy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
certain group to see file info box
« on: December 11, 2005, 12:42:52 am »

I want only the group that I have made called FileInfo to see the file information.  I'm just not sure where to put the code.  I came up with

Code: [Select]
if (USER_GROUP == "FileInfo") {
$groupvariable = 1;
} else {
$groupvariable = 0;
}
and that does give the results I want.

and I discovered "display_pic_info" is the variable set in the Config menu.  And in theme.php,  I found
Code: [Select]
    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

But replacing $CONFIG['display_pic_info']  with  $groupvariable didn't work.  What and where would I replace with $groupvariable?

EDIT: I obviously hadn't looked up what ISSET meant, but I solved my issue, see below post...

I tried searching here, and I tried to do it myself, but I'm just missing something.  Any hints?  I'm using 1.3.3

Shaddy

« Last Edit: December 11, 2005, 03:47:26 am by TranzNDance »
Logged

shaddy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
Re: certain group to see file info box
« Reply #1 on: December 11, 2005, 02:41:51 am »

My searches were for "file info" but while just browsing down the page I saw a similar Q for "image info".  I used the wrong search data I guess.

But I was able to edit displayimage.php  by looking for this
Code: [Select]
$pic_info = html_picinfo();and replacing it with
Code: [Select]
    if (USER_GROUP == "FileInfo") {
    $pic_info = html_picinfo();
} else {
    $pic_info = '';
}
so basically no one sees it except for the FileInfo group.  Thanks GauGau for posting in that other thread http://forum.coppermine-gallery.net/index.php?topic=23304.0.  I just tweaked it to fit my needs. 

Sorry to ask then answer my own Q, thanks.
Shaddy
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: certain group to see file info box
« Reply #2 on: December 11, 2005, 03:46:43 am »

Hey, we appreciate it when people come back to answer the question. :) Not only does it show you tried to help yourself but you shared the solution to help others.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.