Default Skin

Forum for questions and support relating to the 1.27.x releases only.
Locked
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Default Skin

Post by Biggus »

Hi,

I've changed to using the flat skin however, everytime I visit my zm It defaults back to the orginal skin and I have to change it back to flat, is there a bug with my install?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Default Skin

Post by PacoLM »

Cookies?

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: Default Skin

Post by Biggus »

Ooh cookies I'm hungry now! sorry bad joke :(

I've tried deleting my cookies and tried another PC and browser, however no luck, If I change the default skin to flat it will default back to classic when I sign out.
User avatar
stealthty
Posts: 10
Joined: Fri Mar 21, 2014 5:34 pm

Re: Default Skin

Post by stealthty »

If you want to change the skin so "flat" becomes the default skin, that adjust classic into flat in file /usr/share/zoneminder/index.php as shown below.

Code: Select all

if ( isset($_GET['skin']) )
    $skin = $_GET['skin'];
elseif ( isset($_COOKIE['zmSkin']) )
    $skin = $_COOKIE['zmSkin'];
else
    $skin = "classic";
into

Code: Select all

if ( isset($_GET['skin']) )
    $skin = $_GET['skin'];
elseif ( isset($_COOKIE['zmSkin']) )
    $skin = $_COOKIE['zmSkin'];
else
    $skin = "flat";
I've made some more changes in de code myself, and will see if I can donate them to the developer.
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: Default Skin

Post by Biggus »

Thanks for this, I'll give it a go later.

I was just wondering if the system defaults for it to switch back or if their was a bug with my system.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Default Skin

Post by linuxsense »

You can use "?skin=skinname" to specify which skin to use:

Code: Select all

https://192.168.1.6/zm/index.php?skin=flat
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: Default Skin

Post by Biggus »

But do I need to specify https://x.x.x.x/zm/index.php?skin=flat everytime I login?
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: Default Skin

Post by windracer »

Biggus wrote:But do I need to specify https://x.x.x.x/zm/index.php?skin=flat everytime I login?
Yeah, that's what I've been doing (just updated my Zoneminder bookmark to include the skin parameter).
Locked