certain group to see file info box certain group to see file info box
 

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]

Main Menu

certain group to see file info box

Started by shaddy, December 11, 2005, 12:42:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shaddy

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

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


shaddy

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
$pic_info = html_picinfo();
and replacing it with
    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

Tranz

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.