1
hello all ! I have a big problem, i don't know much about php, but i want to implement a styleswitcher ala ...
http://www.alistapart.com/articles/phpswitch ... but it gets me crazy last 2 days...
what i've done sofar is:
in theme.html:
<link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="<{$xoops_url}>/userstyles/<{php}>echo(!isset($sitestyle))?'style':$sitestyle<{/php}>.css" />
and this is the switcher.php which i put in the root of that domain...
<?php
$set = $_GET['set'];
$set = preg_replace('#[^a-zA-Z0-9_-]#', '', $set);
setcookie ('sitestyle', $set, time()+31536000, '/', '.yellowbyte.com', '0');
header('Location: '.$_SERVER['HTTP_REFERER']);
?>
it works so far that i dont get a blank page
, but it don't changes path to stylesheet... he renders that php into link rel stylesheet ...but seems to forget that echo... all i get back is "domain/userstyles/style.css" but no changes when click on e.g. red ....??
someone out there with a solution ?
michael