coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: till on June 14, 2005, 06:05:03 PM

Title: always in admin mode
Post by: till on June 14, 2005, 06:05:03 PM
The admin mode is for my users the most mis understood feature. I have too many support requests that sound like, "my account is validated, but I can't upload any pictures or create any albums" and so on. Now in 100% of those cases the people didn't click on admin mode, and I can't really blame them.

So anyway, is it possible to make logged in users always browse the galleries in admin mode? I couldn't find a setting, maybe I overlooked something.

Thanks for your help,
Till
Title: Re: always in admin mode
Post by: kegobeer on June 14, 2005, 11:11:30 PM
Changed in 1.4, no plans to reverse engineer for 1.3.x.
Title: Re: always in admin mode
Post by: Joachim Müller on June 15, 2005, 09:13:05 AM
edit themes/yourtheme/theme.php, find<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->
and replace with<!-- BEGIN enter_admin_mode -->
                        <!--<a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::-->
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <!--<a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::-->
<!-- END leave_admin_mode -->
Title: Re: always in admin mode
Post by: till on June 15, 2005, 04:41:05 PM
Quote from: GauGau on June 15, 2005, 09:13:05 AM
edit themes/yourtheme/theme.php, find<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->
and replace with<!-- BEGIN enter_admin_mode -->
                        <!--<a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::-->
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <!--<a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::-->
<!-- END leave_admin_mode -->


Thanks for all the replies, guys. :)

@Gaugau: I know this disables the links so users won't be able to change the modes, but how do I set the the user to be in admin mode, when he logs in?

Thanks,
Till
Title: Re: always in admin mode
Post by: Joachim Müller on June 16, 2005, 08:14:23 AM
new users will be in admin mode by default. Cpg1.4.x sets all users into admin mode, but as suggested above: there will be no backport. Just disable the user mode link, leave the admin mode link visible to give them the opportunity to go back into admin mode.
Title: Re: always in admin mode
Post by: till on June 16, 2005, 01:24:31 PM
Quote from: GauGau on June 16, 2005, 08:14:23 AM
new users will be in admin mode by default. Cpg1.4.x sets all users into admin mode, but as suggested above: there will be no backport. Just disable the user mode link, leave the admin mode link visible to give them the opportunity to go back into admin mode.

Ok, thanks for the info. Great suggestion, btw. ;)

Looking forward to 1.4 then.

Thanks,
Till