coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: galadrin on July 17, 2008, 01:53:52 PM

Title: users can create new albums in all categories
Post by: galadrin on July 17, 2008, 01:53:52 PM
a little hack for give the right to all the users to create new albums

in file albmgr.php :

line 345 to 346 , comment the folowing lines :
} elseif (USER_ADMIN_MODE) {
    $result = cpg_db_query("SELECT aid, title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = " . (USER_ID + FIRST_USER_CAT) . " ORDER BY pos ASC");


line 363 and 343, replace the folowing lines :
if (GALLERY_ADMIN_MODE) {
by
if (USER_ADMIN_MODE) {
Title: Re: users can create new albums in all categories
Post by: Nibbler on July 17, 2008, 08:02:56 PM
I don't see how that is supposed to work.
Title: Re: users can create new albums in all categories
Post by: GerX on July 18, 2008, 12:21:32 PM
Is there a hack that make it possible in a proper way? Create albums and delete his own uploads,  in all categoriesand albums for a registred user?
Title: Re: users can create new albums in all categories
Post by: Joachim Müller on July 18, 2008, 04:38:15 PM
No. Has been asked and answered often already. Will be a feature in cpg1.5.x (not released yet, no scheduled release date, no backport of that feature planned). Butt out of this thread. The thread starter proposed a hack and even advertized for it in some other threads, yet he hasn't replied on Nibbler's question. We don't want another discussion here about the "missing feature", as it has been discussed in many, many threads already. The only thing we want in this thread are actual contributions or at least some words from the original thread starter.

@galadrin: please review and reply.
Title: Re: users can create new albums in all categories
Post by: drgonzo120 on July 27, 2008, 05:04:22 PM
is there a solution?
Title: Re: users can create new albums in all categories
Post by: Joachim Müller on July 28, 2008, 05:54:48 AM
No, there is no simple solution. This has been asked and answered very often already. If it would be that simple, the feature would have been added long ago.