Moderators Moderators
 

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

Moderators

Started by Alex53, September 21, 2005, 12:32:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alex53

I would like to be able to create users who can approve uploads, but that dont have full access to the configuration, etc. like the admin has, so it would be a kind of Moderator.

I use version 132, please advise whether this is possible.

Nibbler

Not currently possible, but may be in the future. Search the board for previous discussions.

Stramm

tell me if it works... create a group called 'Moderators' (case sensitive)... move a user into that group. This user has to be in (user) admin mode then let him call domain/cpgdir/editpics.php?mode=upload_approval (same as for admin... just admin has that link in the admin menu, the moderator not... you can add it if you want...)

now open editpics.php
after
define('EDIT_PICTURES_MODE', !isset($HTTP_GET_VARS['mode']));
add
define('MODERATOR_MODE', $USER_DATA['group_name']=="Moderators");



few lines below replace
if (UPLOAD_APPROVAL_MODE && !GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
with
if (UPLOAD_APPROVAL_MODE && ((!MODERATOR_MODE) && (!GALLERY_ADMIN_MODE))) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


this should work but I haven't tested it....