University of Oregon

WP Dynamic StyleSheet Switcher – stage 2

I added a background image array and integrated it with the rand() function.
Images from the free image section of bigstockphoto.com and iStockPhoto.

I also changed the html background color back to brown but the body’s is now the blue with a min-height:100% on the body and Layer1 so the image stick to the bottom of the screen not the bottom of the post. Then the brown earth color continues below that.
(more…)

WP Dynamic StyleSheet Switcher – stage 1

I’ve done a quick mod to my stylesheet to enable me to turn on and off css enhancements.

The concept is based on the idea that you can create your own theme by extending another theme and adding your stylesheet changes to a style.css file in the new theme folder.

The concept in action:
In the themes folder I now have a folder for my base theme: grassland and my modified theme: vGrassland. No changes have been made to grassland but in the vGrassland folder there only needs to be one file: style.css.

That stylesheet must contain all the necessary info to define the theme (Theme Name, URI, Desc. Version…) but the essential one is TEMPLATE: grassland.
Then the magic happens.

For me I wanted to use my modified theme but I’d grown attached to the original so changing back and forth would be fun.

So here’s the low down.
Point the styles to a dynamic page: style.php and in that page show or hide the style enhancements.

Here are the contents of both files. (more…)

Enable your shell account on uoregon.edu

I stumbled onto these articles and I found out that we have access to a shell account on campus.

You can log in to your duck id page and enable or disable the account.
When it’s enabled you can ssh to your account or sftp (port 22) into your folder.
Each user’s folder is their username/duckid name and the url is uoregon.edu/~yourname.
For more info go here: cc.uoregon.edu/cnews/fall2005/ssh_uoregon.htm
(more…)