Stylesheet problem...

Hi all,

I'm using multiple style-sheets on my website. On my homepage users an select their preferred color-scheme (stylesheet) en by using the following piece of code on every page of my site, the correct stylesheet is used...

?php
$styleCookie = $HTTP_COOKIE_VARS["style"];
switch($styleCookie)
{
case "yellow":
case "blue":
break;
case "purple":
case "":
$styleCookie = "standard";
break;
}
$styleSheet = " link rel=\"stylesheet\" type=\"text/css\" href=\"$styleCookie.css\" media=\"screen\" / \n";
echo $styleSheet;
?

It works on all my pages, except in my phpAlbum... My phpAlbum always uses the "standard.css". Because the style-cookie was not found, or due to some other reason...
I know now that it is possible to use my own stylesheet on the album, but why doesn't phpAlbum check the cookie properly and echo the blue.css, or yellow.css??

I'm fairly new to PHP, so any help would be greatly appreciated!!

Thanx,

Martijn

Could you send me on my

Could you send me on my email support(at)phpAlbum.net the whole file you changed. You should change the album.tpl.php and imageview.tpl.php to get what you want.

But i am not sure if that think with $HTTP_COOKIE_VARS works ... there is some other global variable for this purpose named $_COOKIE

Patrik

:) test.

:) test.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">