Page 1 of 1
Default Skin
Posted: Fri Mar 28, 2014 4:09 pm
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?
Re: Default Skin
Posted: Fri Mar 28, 2014 6:34 pm
by PacoLM
Cookies?
Re: Default Skin
Posted: Mon Mar 31, 2014 1:38 pm
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.
Re: Default Skin
Posted: Thu Apr 03, 2014 10:33 pm
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.
Re: Default Skin
Posted: Fri Apr 04, 2014 9:40 am
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.
Re: Default Skin
Posted: Fri Apr 04, 2014 9:47 pm
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
Re: Default Skin
Posted: Mon Apr 07, 2014 1:16 pm
by Biggus
But do I need to specify
https://x.x.x.x/zm/index.php?skin=flat everytime I login?
Re: Default Skin
Posted: Wed Apr 09, 2014 11:41 pm
by windracer
Yeah, that's what I've been doing (just updated my Zoneminder bookmark to include the skin parameter).