Perminant Admin MODE Perminant Admin MODE
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Perminant Admin MODE

Started by JimpsEd, April 07, 2004, 03:07:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JimpsEd

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

Joachim Müller

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

JimpsEd

Thank you.

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

Thanks;

Jamie

photoman13

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.

Joachim Müller

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