Enabling User Album Creation Enabling User Album Creation
 

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

Enabling User Album Creation

Started by Scias, January 29, 2008, 04:31:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scias

ok! i was recently baffled at the thought of having users being able to CREATE albums under pre-created categorys.

for example lets say my gallerys like this.

Category 1
User galleries
Category 2

anywho, how would i allow users to create albums, in category 1 and 2?

im sorry if already been asked, i have searched the board, but no info on what im asking :(

ty again.

Joachim Müller

Quote from: Scias on January 29, 2008, 04:31:06 AM
anywho, how would i allow users to create albums, in category 1 and 2?
Not at all.

Quote from: Scias on January 29, 2008, 04:31:06 AMim sorry if already been asked, i have searched the board, but no info on what im asking :(
Indeed this has been asked a thousand times. Answer is already the same: that's currently not possible. Will be a feature in cpg1.5.x. That feature will not be backported to cpg1.4.x. There is no scheduled release date for cpg1.5.x

vivison

If you have an SMF bridge you could use my "workaround": (1) Let all users be USER_IS_ADMIN, (2) Let real SMF Admin be SMFUSER_IS_ADMIN (new variable), (3) Use SMFUSER_IS_ADMIN to restrict normal user from undesired features (such as Config/Admin Tools/etc.) 

Specific mods are as follows:
For (1): Mod bridge/smf10.inc.php (since I'm using SMF1.4)
change: define('USER_IS_ADMIN', $USER_DATA['has_admin_access']);
to:        define('USER_IS_ADMIN', 1);
add:      define('SMFUSER_IS_ADMIN', $USER_DATA['has_admin_access']);

For (2): Add the restriction to the affected php file such as admin.php (for Config), util.php (for Admin Tools), etc.
change: if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);    'enable_encrypted_passwords',
);
to: if (!SMFUSER_IS_ADMIN || !GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);    'enable_encrypted_passwords',
);

Please make sure that this approach meets your need.

Joachim Müller

This should get you hacked in no time ::)