Kyer asked about setting up a stylesheet switcher, so here it is below the fold...
I don't remember from where the code was gleaned so I don't know whom to credit... Rob did some adjustments to make it work better, a hearty thank-you to him... one caveat - it only works right for 9 or less stylesheets.
First, MAKE BACKUP COPIES OF YOUR MAIN INDEX TEMPLATE FILE!
Next, insert this line into your Main Idex template in the Head section. This names the javascript file that will control the stylesheet selections and passes information to the cookie script.
<script type="text/javascript" src="/styles/switcher.js">
Next, insert this line under the previous line in the Head section. This will set a cookie with a one year expiration on your reader's computer.
<script type="text/javascript">
function chooseStyle (newstyle)
{
var expdate = new Date();
expdate.setTime(expdate.getTime() + (1000*3600*24*365));
document.cookie = 'style=' + newstyle + '; expires=' + expdate.toGMTString() + '; path=/';
self.location = self.location;
}
</script>
Next, is the switcher.js file to upload the the /styles folder (that you'll need to create) on your site. This is the javascript file that will control the stylesheet selections and passes information to the cookie script.
/* ==JavaScript File== */
/*alert (document.cookie.indexOf('sitestyle='));*/
if(document.cookie.indexOf('style=1')>=0)document.write('<link rel="stylesheet" type="text/css" href="/styles/styles-site.css">\n');
else if (document.cookie.indexOf('style=2')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet2.css">\n');
else if (document.cookie.indexOf('style=3')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet3.css">\n');
else if (document.cookie.indexOf('style=4')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet4.css">\n');
else if (document.cookie.indexOf('style=5')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet5.css">\n');
else if (document.cookie.indexOf('style=6')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet6.css">\n');
else if (document.cookie.indexOf('style=7')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet7.css">\n');
else if (document.cookie.indexOf('style=8')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet8.css">\n');
else if (document.cookie.indexOf('style=9')>=0)
document.write('<link rel="stylesheet" type="text/css" href="/styles/Stylesheet9.css">\n');else document.write('<link rel="stylesheet" type="text/css" href="/styles-site.css">\n');
Next, is the code to insert into your sidebar - this will display a drop down box so your reader can select his favorite stylesheet.
<div class="sidetitle">
Skin the Site
</div>
<div class="side">
<form>
<select name="set" onchange="chooseStyle(this.value)" id="switcher">
<option>Choose a Style</option>
<option value="1">Default Stylesheet</option>
<option value="2">Stylesheet2 Name</option>
<option value="3">Stylesheet3 Name</option>
<option value="4">Stylesheet4 Name</option>
<option value="5">Stylesheet5 Name</option>
<option value="6">Stylesheet6 Name</option>
<option value="7">Stylesheet7 Name</option>
<option value="8">Stylesheet8 Name</option>
<option value="9">Stylesheet9 Name</option>
</select>
</form>
</div>
Next, upload all Stylesheet#.css files to the /styles folder.
[SAVE] & [REBUILD] indexes only.
Umm, Pixy? Are you mad at me?
I've checked a handful of other MuNu sites. I'm the only one. :-(
How does one go about making their site "skinnable"? I've seen it done with background colors and banners and such... I *think* I just might make a version where the background is white, text is black etc. and the other skin is just the inverse.
anybody have any links or primers?
Here is my recipe for perfect chocolate chip cookies. Follow it exactly, and no substitutions.
2 1/4 cups unbleached all purpose flour 1 tsp baking soda 1 tsp salt 2 sticks salted butter |
1/2 cup granulated sugar 1 cup firmly packed brown sugar 1 1/2 tsp vanilla extract (pure, not imitation) 2 large eggs 12 ounces semi-sweet chocolate chips |
Combine softened butter, vanilla sugar, and eggs until nice and creamy. Add flour, salt, baking soda, and chocolate chips.
use a table spoon and place on baking sheet, bake in 375 oven for 11 minutes or until slightly brown on top.
Hi Everybody! I love MuNuviana. And, I love Movable Type -- so much better than Blahger.
But I have a bit of a technical problem: trackbacks don't seem to be working on my blog. I've tried pinging it using Haloscan and from XRLQ's which runs on Word Press (where I'm guestsblogging this week -- ahem).
What's the deal with the trackbacks? Maybe I've messed up the code, or maybe I have to turn them on in the MT Config someplace. Does anyone have any ideas?
The newest podcast is available. A little longer than the others it weighs in at 4.4MB. If I start becoming long winded I promise to explore ways to make the files smaller.
I've been lax in introducing our debutantes so some of these are already well past their deflowering but they're all worthy of a visit and a welcome. Go and say "Hi"!
Popsicle Stick Jokes
Ex-Donkey Blog
Prochein Amy
The Lady Is A Tramp
Outnumbered, Outgunned
Sompopo's Revenge
Geek Empire
Southpark Republicans
Tilesey
Portia Rediscovered
Everyman Chronicles
Forward Biased
Sacramento Republicrat
Blogmeister USA
Squid Blog
A Spinster's Tale
California Buckeye
Cheapshot
Hatemongers' Quarterly
Fidgety Knitting
Fiddle Dee Dee
Two More!
Vince Aut Morire
Cardinal Martini
Could the blogroll gurus add my pLog blog to the MuNu blogrolls... whenever you do the next updates... pretty please? I know it's not much of a blog - kind of stupid actually - but it would help to be the #1 Google Search...
Popsicle Stick Jokes
http://my.mu.nu/index.php?blogId=18
Thank you in advance...
Sorry - This post was intended for Hold the Mayo. So I moved it there.
Performancing for Firefox is here!
Of course you're probably wondering just what is Performancing for Firefox.
Well the good folks over at Performancing.com have written a blog editor for Firefox. So if you're using Firefox Version 1.5 or better, instead of writing your posts in Wordpress, Movable Type or Blogger you can use the Performacing Editor.
What makes this even better is you can setup your blog and post directly from the editor, like I did with this post. So you don't even have to log in to write or publish posts ever again.
To setup Performancing so it will automatically list your blogs you will need to walk through the following steps after you have installed the Plugin from the link above.
1) Press F8 key to open the Performancing editor.
2) Click the About Button.
3) Click the Launch Wizard Button.
4) Select your Blogging Platform from the list.
5) Change the Server API Folder to:
http://blog.mu.nu/cgi/mt-xmlrpc.cgi - If you're running Movable Type 2.64
http://mu.nu/mt/mt-xmlrpc.cgi - If you're running Movable Type 3.15
http://yourblog.mu.nu//xmlrpc.php - If you're running Wordpress (just be sure to replace the yourblog with your address).
6) Enter Your Username and Password.
7) Verify that the proper blogs have been pulled up and hit next!
From there you'll just select the blog you want to post too.
If you aren't running any other plugins / extensions for Firefox, I whole heartedly recommend you run Performancing for Firefox.
A new Podcast is up at Hold the Mayo.
On an unrelated side note, I think fluffy is still eating my comment and track-back emails. Is this happening to anyone else or is it just me?
Come one, come all: We, the crack young staff of "The Hatemonger's Quarterly," have finally moved to our new e-digs at MuNu (http://hatemongers.mu.nu). We cordially invite you to peruse n' enjoy, though not necessarily in that order.
Thank yo so much, SO MUCH for all the help! I'm getting the hang of it, and quickly too. So, here's to good friends, tonight is kinda special!
Argh.
So there's this rather (uncool) cat who keeps commenting every so often on my blog (and I've seen him on Vinnie's and a few others as well) called "grandpa stole bets" where he just pastes this long rambling incoherent comment and somehow ties Homer Simpson, Che Guevara and Jews into it all...
I've blocked the IP for this comment several times now, but it keeps happening.
He/she/it always uses the same email address though: "hister@nostradamous.com"
I'm not too swift with these anti-spam toys you darn kids are using these days, any i-clue what i can do?
Hello out there! I'm new to the MuNu Universe, and a bit overwhelmed! There's a lot more to this than over at Blogger. Anyone I could pay to make the change for me???
Well, my side bar seems to be upfucked. Half the text is being cut off by posts. I had this problem once before, butb I don't remember what the solution wwas. Anyone got any ideas????
Thanks a heap!
http://knockinonthegoldendoor.mu.nu/
Getting a funky error message trying to comment.
I originally pasted it here, but it went way off the page.
Just a heads up, Pixy.
I had fun with the first one so I did a second.
I'm checking out digital audio players as a gift for my brother (maybe I'll steal it from him if I like it enough) - he has to ride the bus because he keeps wrecking all his cars and my trucks.
I'm wondering what any of you would recommend. I have tons o music on my laptop in various formats, so I need something with some capacity, playing different formats, preferrably with rechargable battery thingy.
Thanks in advance for any advice you might have!
I was looking at one of these
I'm moving house tomorrow, so I'll have limited net access for the next couple of weeks. (As in, only one of my three broadband connections at home will be working.)
I should be able to redirect the backups to the office, as we have a new high-capacity link there.
I'll be checking in regularly and receiving my email, but it may take a little longer than usual to respond. Particularly since I expect to be dead immediately after the move.
Quite a few of our fellow MuNuvians are in the running for Weblog Awards and could use a vote or two or three.
Best Group Blog
The Cotillion
Best Comic Blog
Hate Mongers Quarterly (Making the move shortly)
Best Conservative Blog
The Jawa Report
Ace Of Spades HQ
Best Culture Blog
The Llama Butchers
Best Parenting Blog
One Happy Dog Speaks
Best Canadian Blog, eh
Angry in the Great White North
Best Asian Blog
Simon World
Best of the Top 251 - 500 Blogs
Confederate Yankee
Ex-Donkey Blog
Straight White Guy
Best of the Top 501 - 1000 Blogs
Vince Aut Morire
Best of the Top 1001 - 1750 Blogs
Portia Rediscovered
Best of the Top 1751 - 2500 Blogs
Seven Inches of Sense
Best of the Top 3501 - 5000 Blogs
Trying to Grok
Did you ever wonder how to make a Show/Hide thingy? Press "Show" below to see one answer.
(Show)
The Jawa Report - Best Conservative Blog
Vince Aut Morire - Ecosystem 501-1000
Go MuNu!!!
I am getting hammered by comment spam.
Pixy, is there a way to shut off comments on old posts in a batch?
If not, I'll just keep Blacklisting every day. That's easier than shutting off comments in 400+ posts on an individual basis.
And to think I thought that importing my old TypePad posts was important!
TO THE DEVIL WITH YOU, FOUL SPAMANISTAS!
Fellow MuNuvians,
First, I have to ask forgiveness for not having found more time to work on learning Movable Type and setting up my new MuNu blog here. As excited as I was over the whole thing, and after the enthusiastic welcome you gave me, I've been woefully slow to get started. Fear not, though, for my enthusiasm hath waned not—I've just been VERY busy (as if we all haven't been, though).
But I also wanted to post a brief "bleg" concerning this year's Weblog Awards. Forward Biased was fortunate enough to be a finalist in an obscure little Ecosystem-based category, the Best of the Top 1751 - 2500 Blogs, and to the extent that you guys can find a few minutes to do so, I'd sure appreciate a few votes now and then! You can vote once every 24 hours in each category, so vote early and often, as they say!
I also noticed that trying to grok is a finalist in the Best of the Top 3501 - 5000 Blogs category. I wish her, and any other Munuvians who made the finalist cut, the best of luck.
In fact, if you guys would please post any other Munuvian finalists, we could all cast some better-informed votes.
Thanks so much, folks!
For the last few years I have been working on a new architecture for the Internet, which you can read about here:
Problem:
How can we deliver applications as services, over the Internet, and get PC-like functionality, where each user can mix-and-match applications as if they are on a PC?
(Note: The question does not refer to pure user-interface issues that are addressed by AJAX!)
Solution:
Domicel is a virtual personal Internet domain. It gives the end user the look-and-feel of working on a PC – without the PC! Applications are provided as on-line services, in an object-oriented paradigm. The aggregate of a user's objects (think: icons) from all applications, hosted anywhere in the world, is their Domicel – there is no one place in which a Domicel's objects reside, no bottlenecks, and no central point of failure.
Or, to put it another way, it does for applications what the World Wide Web does for documents.
It's still very primitive - I think of it as being the Internet version of the Altair, "the spark that led to the personal computer revolution". At this point, I would like to get a few good nerds interested. If I can get it going, I think it will be very big.
You can see the current state of the art here. Notice the links in the upper right-hand corner.
PS: Pixy, I would like to start a "Domicel Q & A" blog. Can I do it on mu.nu?
I've been getting hit with a bunch of comment spam the last couple of days. Some of them even got their notification past the hotmail junk filter. Oddly, the hrefs in them in them had no URLs. Untill just now. It's clearly from the same source (itsok wouldn't be there otherwise). Scarily, the URLS were for Techweb, Wired, and Bloglines. Careless deleting would blog worthy sites. I don't know if they were there to shield Allafrikuh (mispelt to disarm) or to do damage, but some discression must be exercised.
I found some comments on my site - some of them were spam which sucks - some of them were real. They all came in yesterday but I didn't receive email notification. The option for notification is checked in the preferences. I don't get so many comments that I can stand to miss any.
I have posted the first Hold The Mayo Podcast. Stop buy and check it out. Be sure leave any constructive or destructive feedback!
So, for the last day, or so, I've been getting hit with an occassional (I'm sure the system is stopping much more) trackback spam that has emply links in it, like so:
<a href="">Naturally, this makes it harder to block them by blacklisting their URL. And they are, also naturally, using multiple IP addresses. I've been reluctant to add a blank href to the blacklist, not sure what it might break.
Any ideas?
I have a Palm Tungston E2, and I am wondering if there is any software that will run on a Palm and allow me to write a post on the Palm, and then upload it to my blog when I sync with my laptop?
Thanks!
Hello all,
Awhile back there was talk of moving to LifeType. I was wondering what the status is now, and if we are going to have a mass exodus coming up soon...
If this is common knowledge my apologies, I've been absorbed in homework!
How come, in my mailman list, since we moved to our MuNu home, there are a couple of issues?