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] 2   Go Down

Author Topic: group permission for albums doesn't work  (Read 12610 times)

0 Members and 1 Guest are viewing this topic.

shoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
group permission for albums doesn't work
« on: October 16, 2003, 02:31:47 am »

i get the following error message when i set a specific group permission to an album with a user not restricted with this specified group, if it's the only album in this category:

Warning: Invalid argument supplied for foreach() in /home/www/mydomain/testgallery/themes/rainy_day/theme.php on line 1199

Code: [Select]
   foreach($alb_list as $album) {
        $count ++;

        $params = array('{COL_WIDTH}' => $column_width,
            '{ALBUM_TITLE}' => $album['album_title'],
            '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
            '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
            '{ALB_LINK_PIC}' => $album['thumb_pic'],
            '{ADMIN_MENU}' => $album['album_adm_menu'],
            '{ALB_DESC}' => $album['album_desc'],
            '{ALB_INFOS}' => $album['album_info'],
            );

        echo template_eval($album_cell, $params);

        if ($count % $columns == 0 && $count < count($alb_list)) {
            echo $rows_separator;
        }
    }


and i even can't delete the album, change properties or edit pics when i'm logged in as a member of this group
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #1 on: October 16, 2003, 08:54:08 am »

got a link where we can take a look?

GauGau
Logged

shoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
group permission for albums doesn't work
« Reply #2 on: October 16, 2003, 11:13:07 am »

check this link:
http://www.talebox.com/coppertest/index.php?cat=2

@gaugau: i send you a pm with login and pass for admin and user with specified group.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #3 on: October 16, 2003, 11:23:59 am »

the error message goes away if you choose another theme, so my first guess is you over-modified the theme.
I then chose default theme, created an album, created a cat, created another album in the new cat I didn't have the properties button, so I guess you over-modified that too.
Try with a fresh install (or at least with the origina files that come with the downloaded package), no modifications at all! Get your permissions running, then start modifying files.

GauGau
Logged

shoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
group permission for albums doesn't work
« Reply #4 on: October 16, 2003, 11:39:34 am »

the error message just goes away if you choose the default theme, on all other themes the message appears. i didn't modify any of the themes. this is a fresh installation of coppermine 1.2 rc2 with no modifications at all.
Logged

Neofred

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
group permission for albums doesn't work
« Reply #5 on: October 16, 2003, 04:34:45 pm »

Hi gaugau,

I got the same error message.  :(

greetz

Neofred
Logged

Jess

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
group permission for albums doesn't work
« Reply #6 on: October 17, 2003, 04:00:18 am »

My problem is similar if not the same.

When I hide an album so only a specific group can see it,
even as an admin, or a member of the group or both,

it shows up but only as a single thumbnail, there is no text
there is no title and the link ends as album=
with no number so when clicked, its reported as non existant

if you aren't a member, you just cant see it at all.

Neofred

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
group permission for albums doesn't work
« Reply #7 on: October 17, 2003, 09:42:23 am »

My problem is a little bit different from the others, because I've updated an existing 1.1 installation from CPG standalone. The group function works very well on this version. And the update was right smooth 8) . The only error is this in the album view:
Code: [Select]
Warning: Invalid argument supplied for foreach() in /usr/.../x2o.de/bdb/themes/water_drop/theme.php on line 1177
Hope anybody find a solution for us   :(

Greetz

Neofred
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #8 on: October 17, 2003, 10:44:00 am »

I just started a bug tracker on this issue - we'll keep you informed...

GauGau
Logged

windwind

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.hktennisclub.com
group permission for albums doesn't work
« Reply #9 on: October 21, 2003, 08:46:52 am »

i've encountered the same problem too when i enable the "View by members only" function.

Code: [Select]
Warning: Invalid argument supplied for foreach() in
/public_html/gallery/themes/hardwired/theme.php on line 1189


Thanks for helping!
Logged

cadsup

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
view by members only
« Reply #10 on: October 21, 2003, 09:00:33 pm »

view by members only...

where is this funtion please?
Logged

cadsup

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Found it...
« Reply #11 on: October 22, 2003, 01:01:27 am »

Ok I found 'Group Permissions' in 'Properties' of the album

I set it to 'Registered only' but didn't realise it excluded admin from looking at them...

now I can't find how to set it back?! can't see any thumbs, just  the album name.

Help me - I'm drowning! (please)

OK Sorted,

You can't view Albums as Administrator if they are set to Registered Users Only :D

Glad I learnt to swim in time
Logged

windwind

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.hktennisclub.com
Re: view by members only
« Reply #12 on: October 22, 2003, 03:35:05 am »

Quote from: "cadsup"
view by members only...

where is this funtion please?


In the album properties,  "Album can be viewed by Members of the 'Members ' group" in Permissions for this album.

i also failed to delete the album somehow the album was crashed or sometthing after the i set this permission.

Thanks for help!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #13 on: October 22, 2003, 09:10:58 am »

admin can still see albums that "belong" to other groups as long as he's in admin mode; in user mode (a simulation what a "regular" user can see) he can't - this is by design and is meant to be this way.

GauGau
Logged

cadsup

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
I can't
« Reply #14 on: October 22, 2003, 09:28:48 am »

I tried setting 1 album 'Registered Users' & 1 'admin only'
In admin mode I can only see thumbs of 'admin only' in home page
logged in as a reg user I can only see thumbs of 'Reg Users' album
Still see album titles, still able to see last uploaded & random for both
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #15 on: October 22, 2003, 09:34:07 am »

what's your config setting for "Show private album Icon to unlogged user"? If it's "no", then you even can't see the album that belongs to a special group when logged in as admin...

GauGau
Logged

tlicking

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Invalid argument supplied for foreach
« Reply #16 on: October 25, 2003, 06:14:44 pm »

I get the same error when setting "Albums can be view by"  = "Members of the 'Registered' group"   The only way to recover is to delete the album, re-create and allow "Everybody" (public album)

Has anyone found a solution?

Thanks,
Todd
Logged

cadsup

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
group permission for albums doesn't work
« Reply #17 on: October 26, 2003, 04:32:35 pm »

Thanks very much GauGau

That was indeed the thing I was missing :D

btw any news on 1.2 porting for nuke?

thx again
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
group permission for albums doesn't work
« Reply #18 on: October 26, 2003, 07:41:20 pm »

I'm not involved in the PHPnuke port, check the appropriate board. If you're very interessted and know what you're doing you can get the latest dev code using the web-cvs (which lags a little behind the "real" cvs): http://cvs.sourceforge.net/viewcvs.py/coppermine/phpnuke/

GauGau
Logged

Brendan

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 20
group permission for albums doesn't work
« Reply #19 on: October 26, 2003, 08:16:20 pm »

You don't have to delete the album to get it back.  Edit another album and select the album with the problem in the pull down.  You can change the permissions back to Everyone.

-Brendan
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 19 queries.