Let’s play Catch Up!

Posted on Sunday, January 14th, 2007 at 2:12am.

At first my excuse (for neglecting my site) was something along the lines of “I feel kind of lonely, so I will do other stuff that will keep my mind occupied” and then it became “I have so much to talk about and I don’t know how to get it all written down in a way that will make sense to even myself”.

I shall now attempt to write something that will make sense to someone other than me.

Beware, this will be kind of long…

Read the rest of this entry »


A bit behind

Posted on Wednesday, January 3rd, 2007 at 6:41pm.

I’m behind with emails, comment moderating (if you’ve never commented before, then I have to approve your comment before it will be shown), Private Messages (forums), commenting back (I currently have 33 comments to return) and all other stuff like that.

This *having a life* thing is not so good for my online stuff. :P

I hope everyone had a totally awesome New Year’s Eve and felt absolutely awful on New Year’s Day (due to having a hangover: a sure sign that the night before was good!). :)
I spent mine watching 13 episodes of Grey’s Anatomy and downing shots of Vodka, heh.

I had four cartilage piercings done today; two in each ear. My ears feel really heavy, hot, swollen and painful but I’m hoping it’ll pass soon. Once the swelling and bruising has gone down, I’ll have my sister take a photo. :P

I’m going to return comments tomorrow (I mean it); I’m not in tonight.

EDIT//
Look:

my PURPLE ear

That is my left ear. See the big purple bruise? You thought I was joking when I said they were bruised, didn’t you?
They didn’t actually look that bad until I got up; the bruise formed overnight.
Even though they’re bruised and swollen (and one of the earrings wants to sit against my earlobe and look wonky), they still look pretty cool, don’t they? They’ll look even cooler once they’ve stopped turning purple, heh.
I’m getting used to them now; they don’t feel hot and heavy any more and the pain’s now more of a dull ache (which is to be expected, I guess) rather than a sharp/stabbing pain.

Now I just have to wait two to four months for them to heal. Great.

EDIT//
Aaand at 1am:

my PURPLE ear

Stylesheet Switcher

Posted on Monday, January 1st, 2007 at 9:52pm.

A stylesheet switcher is kind of like skinning your site, except that the only thing that changes is the stylesheet; everything else stays exactly the same.

You must already have some knowledge of using “PHP Includes”.

Getting Ready

The first thing you need to do is to set up a new folder in your root directory called “styles”. The “styles” folder is where all of your different stylesheets should be placed.
When you add new stylesheets, name them “style1.css”, “style2.css”, “style3.css”, etc.

  • root directory
    • styles/
      • style1.css
      • style2.css
      • style3.css

Once you’ve done this, you can upload the “styles” folder (containing your stylesheets and any images) and move onto the next step.

Coding

First, we’ll need to make the file that will control how many styles you have, which style is the default, allow the user to change style, etc.
This file will be called “styles.php” and will be uploaded to your root directory.

Download stylesheetswitcher.txt.

You’ll only need to edit the first chunk of coding:
$path = "/home/YOURUSERNAME/public_html/styles/";
$defaultstyle = 2;
$totalstyles = 3;

  • Change YOURUSERNAME to your site’s username. Since you already use includes, you should know your site’s username. ;)
  • $defaultstyle = 2 – change the number to the number of the style you want to be the default (self explanatory, really).
  • $totalstyles = 3 – change this to the number of styles you have…

You will not need to edit anything else in that file.
Reupload the file now. Please. :P

Open up your header.php file and add this to the top of the page (before anything else):
<?php include("/home/USERNAME/public_html/styles.php");>

Now replace the “link” to your stylesheet with this:
<link rel="stylesheet" href="/styles/style<?php print $currentstyle;?>.css" type="text/css" media="screen" />

Unless you’ve screwed up along the way (unlikely since you’re most definitely not skim reading this, are you?), everything should work perfectly.

Switching The Stylesheet

There’s a reason why “styles.php” is included into every page; the visitor can change the style with no preview page crap and they won’t lose the page they’re currently on. Woohoo!

Anyway, the link to change the style is “?switchstyle=[stylenumber]“.
Example:
<a href="?switchstyle=1">Name Of Style 1</a>
<a href="?switchstyle=2">Name Of Style 2</a>
<a href="?switchstyle=3">Name Of Style 3</a>

These links can go on any page since you’re including the file which switches the stylesheet in the file which is included into every page.



 Page 53 of 57  « First  ... « 51  52  53  54  55 » ...  Last » 

 
 
Copyright © Carlee Tibbs 2006-2009. · Archives · Search · Sitemap · Top ↑