forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: bbouton on May 19, 2006, 02:09:44 am

Title: User Gallery Permissions - Everything in the open -not private or passworded
Post by: bbouton on May 19, 2006, 02:09:44 am
Hi,

I have CPG1.4.5 installed and bridged to Joomla 1.08 with the bridge found at http://www.mehdiplugins.com/misc (http://www.mehdiplugins.com/misc).
I am using the 2bornot2b template. I want registered users to be able to create a gallery, but I don't want them to be able to make it private or password protected. I want all User Gallery images out in the open.

I set Albums can be private (Note: if you switch from 'yes' to 'no' any current private albums will become public) to NO, but that still allows registered users to set Album passwords and hints in the Permissions fro this album section found in Modify my albums/Update album.

Is there some way to do this?
Is there any way to do this and let users with access privs higher than Registered have private or password protected galleries?

The site is not finished yet, maybe tomorrow; but you can see it by choosing Member Showcase from the menu at http:/theboutons.com/index.php (http://http:/theboutons.com/index.php) or http://www.theboutons.com/membergallery/
 (http://www.theboutons.com/membergallery/).

Any help would be appreciated.
Barbara B
Title: Re: User Gallery Permissions - Everything in the open -not private or passworded
Post by: Joachim Müller on May 19, 2006, 05:59:49 am
the switch you mention doesn't toggle the album password field. I recommend removing the album password field from the code if you don't want it to be available. Edit modifyalb.php, find
Code: [Select]
    array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),
and comment out by replacing with
Code: [Select]
    //array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    //array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),
I haven't tested this though, please report if it works.
Title: Re: User Gallery Permissions - Everything in the open -not private or passworded
Post by: bbouton on May 19, 2006, 04:39:21 pm
Thank you Gau Gau, commenting out these lines

Code: [Select]
    //array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    //array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),

in modifyalb.php, as you suggested does the job.

It would be nice if this were something that could be enabled or disabled according to group -- here's hoping for a new feature next rev.

BarbaraB