coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: JimpsEd on April 07, 2004, 03:07:20 PM

Title: Perminant Admin MODE
Post by: JimpsEd on April 07, 2004, 03:07:20 PM
I want to be able to make users be in ADMIN mode and stay in ADMIN mode - and never change to user mode, because it confuses people on why there should be two subareas within their account.

Is there any way I can make them login as Admin mode, and just remove the button from the template file to stop them switiching?

Thanks;

JimpsEd
Title: Perminant Admin MODE
Post by: Joachim Müller on April 07, 2004, 06:18:25 PM
edit themes/yourtheme/theme.php and find<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->

Replace it with<!-- BEGIN leave_admin_mode -->
                        <!--<a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::-->
<!-- END leave_admin_mode -->


This way, user will never see the link to switch into user mode. If they should accidentally go into user mode (e.g. by url manipulation), they'll se the admin mode link to get them back into admin mode again.

GauGau
Title: Perminant Admin MODE
Post by: JimpsEd on April 07, 2004, 06:47:27 PM
Thank you.

Why is there a USER MODE and an ADMIN MODE for normal users anyway?

Thanks;

Jamie
Title: Perminant Admin MODE
Post by: photoman13 on April 07, 2004, 07:38:57 PM
Quote from: "JimpsEd"Thank you.

Why is there a USER MODE and an ADMIN MODE for normal users anyway?

Thanks;

Jamie

I'm gonna take a good guess here.. "ADMIN" mode was just for them to "administor their albums... then they can switch to user mode to see how it looks for everyone else without the admin features like "edit" and "Delete" etc...

just a guess?

I also noticed that when you do this... it takes out the ADMIN/USER mode change for admins as well.
Title: Perminant Admin MODE
Post by: Joachim Müller on April 08, 2004, 05:24:44 AM
photoman, you're right with both your guesses - that's what the admin mode was originally conceived for (to see how the gallery would look like for others) and taking out the user mode button will of course make the admin stay in admin mode permanently as well.

GauGau