How to change look on you site

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

1 reply · 491 views · started 16 years ago · 1 min read

2 participants
riderz Lead · 975 posts #1

Add this code to your page:

<?php
if(isset($_GET['style']) and file_exists($_GET['style'] .'.css')) {
    setcookie('style', $_GET['style'] . '.css', time()+365*24*60*60, '/');
}

$style = isset($_COOKIE['style']) ? $_COOKIE['style'] : 'default.css';
?>

and this in <head>:

<link href="<?php echo $style; ?>" rel="stylesheet" type="text/css">

the link will be like this: yourdomain.com


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close