Need to make a gallery admin group...but how? VB3 Need to make a gallery admin group...but how? VB3
 

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

Need to make a gallery admin group...but how? VB3

Started by BrianT1701, February 11, 2004, 05:23:10 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

BrianT1701

I have coppermine intergrated with VB3, and what I am wanting to do is to be able to create a group in the VB that will allow this group, to have control over the gallery, as in all admin functions, with all permissions, and such.
Basically, I want a fourm group to be in total control of the gallery.

But I can't figure out how this is done, or if this can be done.

Thanks in advance.

Oh and just want to add that I am using the vb 3.0 bridge.

Casper

I don't know if this will work, as I don't use a board, but it's worth a try.

Openyour bridge file, and find ;
// Group definitions (default values used by the board)
define('VB_VALIDATING_GROUP', 3);
define('VB_GUEST_GROUP', 1);
define('VB_MEMBERS_GROUP', 2);
define('VB_ADMIN_GROUP', 6);


Now add the group you have created, let's call them cpgmods, like this;

define('VB_CPGMODS_GROUP', 6);

Please post if this works or not.
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

BrianT1701

Added this line:

VB Group: Gallery Administrator
Added line to bridge: define('VB_GALLERY_ADMINISTRATOR_GROUP', 6);

But, all that seemed to do is allow that group to be admin, and switch bewteen user and admin.  It didn't allow them to have full control of all gallery options...as shown in the documentation here.

Casper

I don't understand what you want them to do, that an admin cannot.
An admin does have full control, when in admin mode.

What do you want them to do, that they cannot as gallery admin.
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

BrianT1701

It does throw them into what appers to be a minimum admin mode...

but they don't options as show in the documentation...

http://coppermine.sourceforge.net/manual.php

I want them to be able to control all of that.

hyperion

Please post a screenshot of what your browser shows. If you do not have a screenshot program, you can use an excellent free screenshot program like Smartision Screen Copy:

http://sourceforge.net/projects/smartision-sc/
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

BrianT1701

Here is what it looks like:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg8.photobucket.com%2Falbums%2Fv28%2FBrianT1701%2Ftoolbar.jpg&hash=d44244d280b73cc565df4072f00b6a0a04b9d53c)


I am guessing that there should be more options next to the my profile button?

Joachim Müller

the pic you inserted into your posting doesn't show...

GauGau


Casper

ok,
that is the normal user admin area, not the gallery admin area, so this change didn't work.  It may be that there are other changes needed, or maybe it's not possible at all.
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

Casper

OK,

try changing this line of code;
define('USER_IS_ADMIN', ($USER_DATA['mgroup'] == VB_ADMIN_GROUP));

to this;
define('USER_IS_ADMIN', ($USER_DATA['mgroup'] == VB_ADMIN_GROUP || VB_GALLERY_ADMIN_GROUP));
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

BrianT1701

In this thread... http://forum.coppermine-gallery.net/viewtopic.php?p=16431

I wanted to be able to make a gallery admin group...I added the suggested code in the last post...and it worked...sort of.  All users now have full admin priviledges in the gallery.  And I mean all users, even regular fourm members.  This is not what I wanted to do.  So, question is how do I make it so the gallery admin group keeps their priv., and regular members have no admin priv.

One more thing...does every usergroup on the forums needs to be added to the bridge file?

Thanks in advance.

Joachim Müller

if it doesn't work for you, then undo the changes! It was just a proposal casper made to try out, this is not an official mod, and it's not recommended to fiddle with this at all. Coppermine simply doesn't have support for sub-admins or global moderators yet, and there's no easy workaround.

GauGau

P.S. when refering to an issue discusseed in a certain thread, reply to the thread instead of starting your own. I merged your separate thread to the one you're refering to :x

alfisti.net

if you don´t have a lot admins you can put the gallery-admins into the admin group of VB3 and then you can modify (downgrade) each admin in "vb admin CP" to a moderator-status.
ceck out: usergroups > admin-rights (I have a german version, I don´t know the correct english entrys).

André

BrianT1701

Quote from: "gaugau"if it doesn't work for you, then undo the changes! It was just a proposal casper made to try out, this is not an official mod, and it's not recommended to fiddle with this at all. Coppermine simply doesn't have support for sub-admins or global moderators yet, and there's no easy workaround.

GauGau

P.S. when refering to an issue discusseed in a certain thread, reply to the thread instead of starting your own. I merged your separate thread to the one you're refering to :x

Thanks...I think we've figured something out.  Sorry about starting another thread as well.

Casper

If you have managed a way of doing this, please post it here so others may benefit.  Thanks.
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