//Skinning your site\\
First make sure your server supports php (most do)
To do this make a page named phpinfo.php and paste this <?phpinfo();?> into the page, now save your page and view it. If your server supports php you'll see a page with your servers php info on it. If everything went ok continue on to the next step.Make a folder in your main directory and name it skins.
Inside the skins folder make another folder and name it 1
Also inside the skins folder you will need a 3 pages called cookiecheck.php, index2.php, and skins.php. You will also need to have style1.css here.Open cookiecheck.php and paste the following code in that page
You will need to change yoursite.com/skins to your actual site address. Mine would be demented-dreamz.net/skins DO NOT put the www or http in front of it. You will also need to change "/home/name/public_html/skins/ to your own path. Mine would be "/home/Trixie/public_html/skins/ Make sure to replace it in both the footer and header part of the code. Right now I have total skins set to 1, keep it this way for now. Once you have skinned your site and want to have more than just one skin be sure to go back and change it to 2 or 3 or however many skins you decide to have.
Now open index2.php and paste the following code in that page
You will need to change "/home/name/public_html/skins/ to your actual path here too. Mine would be "/home/Trixie/public_html/skins/ Ok save that page
Now open skins.php and paste this code in that page
You will need to change "/home/name/public_html/skins/ to your actual path here too. You will also need to change yousite.com/skins/index2.php?newskin=1" to your actual site address. Mine would be demented-dreamz.net/skins/index2.php?newskin=1" Ok save that page.
Open style1.css and add your style sheet there.
Now I use greymatter for my blog, so what I did to pull in my greymatter was to create index.php (still inside the skins folder) and I added the code below
You can use this to pull in your greymatter too, I've never used any other blogging system but I assume it would be the same. Make sure to change "/home/name/public_html/skins/cookiecheck.php" to your actual path and "/home/name/public_html/gm/index.php" to the path of your greymatter or whatever blog your using.So now I have a skins folder, inside the skins folder I have a folder named 1 and 4 php pages named cookiecheck.php, index2.php, skins.php, and index.php.
Now open your folder named 1
Just to keep things organized, I created an images folder inside the 1 folder to add my images that I will be using for this skin, its optional, you don't have to do this. Now inside the 1 folder you will need footer.php, header.php and style.php.
Open footer.php
This is where the body of your page will go, such as your links, plug board, etc. I have made a simple footer page you can copy below.
You'll need to edit it and change yoursite.com to your actual site.
Open header.php
This page contains the head of your page. I have an example you can copy below to use for your header.
Make sure to change yoursite.com to your actual site.
Open style.css and add your stye sheet here, I use the same one in style.css that I used for style1.css
Now what I did was use my main index just to say enter and I have it targeting x.php. So if you go to demented-dreamz.net and click enter you will be redirected to demented-dreamz.net/x.php. So create a page called x.php in your main directory (not under the skins folder). Now add the code below to that page.
Make sure to change "/home/name/public_html/skins/cookiecheck.php" to your direct path.Make sure all your pages end in .php. If they end in .html or .htm or .shtml or .whateverthatsnotphp you will need to change them.
After you've done all this you'll need to go in on all your pages and at the very top of the page, before any coding begins add the following
Be sure to change "/home/name/public_html/skins/cookiecheck.php" to your direct path. Mine would be "/home/Trixie/public_html/skins/cookiecheck.php"Now at the bottom of every page after all the coding add the following
Now sometimes there are pages that you will need to have opened in a pop up window, like my tagboard. On these pages you will NOT include the header and footer tags like on all the other pages, instead you will add the code below between the <head> and </head> of your page.
Make sure to change yoursite.com to your actual site address.
<~~~Rewind
|
|