Advanced search  

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

Pages: [1]   Go Down

Author Topic: certain group to see file info box  (Read 3672 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.018 seconds with 19 queries.