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

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

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.