Administrators not in Registered User group? - Page 2 Administrators not in Registered User group? - Page 2
 

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

Administrators not in Registered User group?

Started by OPaul, October 19, 2003, 10:25:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

like I said earlier in this thread: this has been fixed for the dev version (next release).

GauGau

Trinity

I agree and I think we all would like to se this fixed, but the bottom line here.... IT"S FREE. You may want to show a little more respect for these guys that have spent a ton of time putting this awesome gallery together anf GAVE it to you for nothing.  :P


I for one want to take a sec to tell them how I feel. THANKS GUYS!!!

I love the proggy keep up the good work, and please be patient with us as we forget sometimes that this stuff has been given to us and act as if you owe us something, when in reality you have no obligations to us at all.

Many Thanks
Trin

LiX

:evil:  this discussion is just frustrating...

thanx for your fix anyway malc

javara

The MOD you created, does only work if you're admin group is called "Administrators" isn't it?

javara

I've used this code:


if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id'] || $USER_DATA['group_id'] == '1') {


The same als Malc posted but than it checks for groupID, where the admins are always 1.
Malc's code only works if your admin group is called "Administrators"

javara

Hmmmmzzz...

Now the private album for the "registered" groups can see the thumbnail [after clicking the category-link first, to browse one cat.] but when clicking-on the private-album thumbnail, there's no album ID specified.

Also you only see the thumbnail on the specific catergory page. There's no text or anything next to it

javara

Quote from: "javara"Hmmmmzzz...

Now the private album for the "registered" groups can see the thumbnail [after clicking the category-link first, to browse one cat.] but when clicking-on the private-album thumbnail, there's no album ID specified.

Also you only see the thumbnail on the specific catergory page. There's no text or anything next to it

Also chose "yes" for "show private icon for anonymous users"

Casper

Quote from: "javara"Also chose "yes" for "show private icon for anonymous users"

Which takes you back to where you where without the mod  :?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

lendy

I think add

    $sql = "SELECT a.aid, a.title, a.description, visibility, category, ...
            $visibility = $alb_thumb['visibility'];
            $category = $alb_thumb['category'];
            if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || strstr(USER_GROUP_SET, $visibility) || $category == (FIRST_USER_CAT + USER_ID)) {

$category == (FIRST_USER_CAT + USER_ID)

then,you can view and edit your albums.

1.2.1 can't view and edit self albums,if albums visibility is not  0 or
FIRST_USER_CAT + USER_ID
it not logic,i think it is bug!

Quote from: "malc"I don't know why GauGau thinks the solution is not that simple, 'cos here's a quick Mod to do what you want.  It involves changing exactly three lines!

In index.php, lines 360, 451, and 472 (version 1.2.1 final/standalone) change the part of the line (it's an if statement) that reads:

if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id']) {


to read:

if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id'] || $USER_DATA['group_name'] == 'Administrators') {


(For other versions, search for USER_DATA and you'll find the three "if" statements that are concerned with visibility!)

What this does is simply treat the case where the album is private *and* the user is an administrator exactly as if the user was a member of the authorized group.

Enjoy...

[ And feel free to move this over to the "Mod" section if appropriate! ]

Nerd3D

Even with these changes the admin can't actually open the album because there is no thumbnail displayed. Or did I mess up the hack?
Happy Rendering

cayne

Quote from: "casper"I have the same problem.  I set an album to registered users only, and can no longer view, or edit.

Where can I set a album for registered users only? If I go on "Properties" I can chose only :

Visitors can upload pictures                  
Visitors can post comments                  
Visitors can rate pictures

But where I give the permission that only registered users can access this album?!

Casper

You have to set 'users can have private albums' to YES, in cofig.
This does not mean users can have their own album, unless you allow it in their group setting.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

inblaq

i used malc's code, and theres one small error.

when you're not logged in, under the category where the album is supposed to be, this occurs:
Warning: Invalid argument supplied for foreach() in /home/photos/public_html/photos/themes/water_drop/theme.php on line 1182
this album is for registered users only, and the admins, after i used malc's code.

i would appreciate very much someone's help on this. i dont know any programming.

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here