Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Perminant Admin MODE  (Read 2701 times)

0 Members and 1 Guest are viewing this topic.

JimpsEd

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Perminant Admin MODE
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Perminant Admin MODE
« Reply #1 on: April 07, 2004, 06:18:25 pm »

edit themes/yourtheme/theme.php and find
Code: [Select]
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->

Replace it with
Code: [Select]
<!-- 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
Logged

JimpsEd

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Perminant Admin MODE
« Reply #2 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
Logged

photoman13

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
Perminant Admin MODE
« Reply #3 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Perminant Admin MODE
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.