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

$styleCookie = $HTTP_COOKIE_VARS["style"];
case "yellow":
case "blue":
case "purple":
case "":
$styleCookie = "standard";
$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!!



Could you send me on my

Could you send me on my email support(at) 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


:) test.

:) test.

Comment viewing options

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