Default Skin

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

Default Skin

Post by Biggus » Fri Mar 28, 2014 4:09 pm

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: 967
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Default Skin

Post by PacoLM » Fri Mar 28, 2014 6:34 pm

Cookies?

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: Default Skin

Post by Biggus » Mon Mar 31, 2014 1:38 pm

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 » Thu Apr 03, 2014 10:33 pm

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 » Fri Apr 04, 2014 9:40 am

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 » Fri Apr 04, 2014 9:47 pm

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 » Mon Apr 07, 2014 1:16 pm

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 » Wed Apr 09, 2014 11:41 pm

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).

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests