coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: youth4j on March 03, 2007, 03:41:27 AM

Title: Automatic allow user to upload to new galleries
Post by: youth4j on March 03, 2007, 03:41:27 AM
How can I set all new galleries that are created to automatically have permissions set so all the users will be able to upload photos into any sections gallery that they want. And then disable this feature for the galleryies that I don't want user to upload in.


I want users to upload in any gallery that users want. Except into other user's galleries
Title: Re: Automatic allow user to upload to new galleries
Post by: youth4j on March 10, 2007, 05:05:03 PM
Maby this is going to be more clear,

1. When my users use xp_publish to create galleries and upload photos, The default is that when a new gallery is created, the public can't upload photos in that gallery. I want to setup so when a new gallery is created, the default is that public can upload photos there and if I don't want users to upload there, I would just go and disallow public from uploading in that gallery.

2. Is there a way to give upload access to certain groups that are intergrated with vbulletin forum.
Lets say that Auto Dealers group on vbulletin group would have upload access to Auto Dealers category/sub-galleries on coppermine and the users that are not part of Auto Dealers group would only have view privelages.

Is there a way to do this?
Title: Re: Automatic allow user to upload to new galleries
Post by: Nibbler on March 10, 2007, 05:12:46 PM
Edit xp_publish.php

    $query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($_POST['new_alb_name']) . "', 'NO',  '0')";


Change the NO to YES.