How to skin your WordPress theme

I have comments again, YAY ME!
Not that anyone leaves comments… buuut… πŸ™

When I upgraded to WordPress2, I had a hard time making a flexible theme, so I ditched that idea and decided to parse the code myself (like I did with the original WordPress). The problem? My individual posts no longer had comments. (UH OH!)

So how do you make a theme that is flexible with your Domesticat-like skinning abilities?

You make a theme inside a theme, of course. πŸ˜€

  1. Open your wp-content/themes/[yourtheme]/header.php file
  2. Put in your skinning information in the header like you usually do.
  3. Open your wp-content/themes/[yourtheme]/footer.php file
  4. Hard code the variable information that you need, particularly this part…
<?php
$total_skins = 3;
$default_skin = 3;
 

if (isset($_REQUEST[‘newskin’])) {
$newskin=(int)$_REQUEST[‘newskin’];
if ( ($newskin<1) OR ($newskin>$total_skins) ) $newskin=$default_skin;
$skin=$newskin;
} elseif (isset($_COOKIE[‘skin’]))
$newskin = $_COOKIE[‘skin’];
elseif (isset($_REQUEST[‘newskin’])) {
$newskin=(int)$skin;
if ( ($newskin<1) OR ($newskin>$total_skins) ) $newskin=$default_skin;
} else $newskin=$default_skin;
include(‘/home/yoursite/public_html/skins/$skin/footer.php’);
?>
</body>
</html>

That part is the one that tells your theme what skin the reader has selected using. (It’s slightly changed from the Domesticat version as you can’t set cookies in the footer.).

For whatever reason, WordPress kills all your variables right after it does its thing. You need to re-code your variables in the footer as well.

See what I mean? πŸ˜€

Writers wanted

So good to see the Queen of Hearts back on Problem Adults. πŸ˜€

We didn’t have the capabilities and know-how that we have now, so her Majesty was forced to post her column in message boards, now she can do it right in her own section.

So, do you write? Tutorials? Erotica? Columns?

Well we WANT YOU! With the newly-remodeled Problem Adults v3.0, we’re going back to our original vision of making the site a one-stop-shop for all your web needs. It’s a great place to promote yourself and even escape the pressures of everyday life.

What we lack in pay (none, actually) we more than make up for in international fame. πŸ˜€

More details in my Zoints blog entry over there.

What you can’t see it? Guess you have to join us then, huh?

Yeah, there’s always a catch with me.
You should know that by now. πŸ˜‰

Our Pocono Community

Our Pocono Community websiteDo you live in the Poconos and looking for a great online community to mingle with? Check out Our Pocono Community. It has news, resources, a hi-tech chatroom, an arcade and a group of vibrant personalities on their message board, The Pocono Speakeasy.

I’ll be adding this to my Pocono web design section today. Truth be told, I’m kinda proud of my contributions to it. There’s still more tweaks to do and 70 more arcade games to add… but it’s got the EricBrooks.Com Seal of Approval. πŸ˜€

AIDS Ride

Mikki - AIDS/Lifecycle RideMy good friend Mikki is taking place in an event in June: AIDS/Lifecycle

From June 3-9, 2007, I’m bicycling in AIDS/LifeCycle. It’s a 6-day, 545-mile bike ride from San Francisco to Los Angeles to make a world of difference in the lives of people living with HIV and AIDS.

Help me support the HIV/AIDS services of the L.A. Gay & Lesbian Center by giving what you can. We’ll keep riding until AIDS and HIV are a thing of the past. πŸ™‚

I want to thank everyone for stopping by!

All The Best!!!! Mikki

For more information on how you can help, you can visit Mikki’s Lifecycle page here.

There’s a party, and you’re probably not invited

W00t! πŸ˜€
Problem Adults - Party PlanetWe’re still closed to the public, but Problem Adults 3.0 is still under renovation and getting better and better….

I just unveiled the new design for our latest incarnation “Party Planet” – It’s kind of our hope to attract more “hi-tech” and “creative” types to the joint. We’ve got some great people there… a few are making more layouts, and they truly “get it” with what we’re trying to do there. We were just chosen to be beta testers for new software and we are gonna blow people AWAY!!!!

I just feel like bragging here…

Who ROCKS? WE ROCK! πŸ˜€

Is our children learning?

U.S. scores low on child welfare

Quote:
The United States and Britain ranked at the bottom of a United Nations survey of child welfare in 21 wealthy countries that assessed everything from infant mortality to whether children ate dinner with their parents or were bullied at school.

From what I’m reading in this, there seems to be a total breakdown of support for families. Particularly for single parent households.

You have religious wack jobs who will tout the “Nuclear family” and nothing else. You have zealots on the right who scream against Hillary’s plan to bring a “Universalized Health Care” system to the U.S. Fact is, kids get sick, and parents can’t afford to take them to the doctors with no insurance.

That’s not to let the Left off the hook. Children being bullied with the lame-ass cliche of “fighting is not the answer” and nothing else doesn’t help. There’s a great program in our district that teaches kids to negotiate and reason with their enemies… but in the real world we know that doesn’t always work.

And Child Protective Services? Don’t even get me started on how many things are wrong with that bureaucracy…

Why I’ll probably never work for another candidate or take advertisers.

Simply put, I’m a snarky, sarcastic, jaded bastard.

I value my All-American rights to free speech and voicing my opinions… regardless of who I piss off. (Don’t get me wrong, I realize I am a reflection of my employers to a certain degree, so I *DO* exercise a certain level of responsibility and accountability in all I do and say). But I despise having to self-censor myself.

Oh and did I forget to mention that I helped make websites and strategies for two campaigns? One Republican and one Democrat. Both were facing major hurdles as underdogs but in the end, they won in landslides.

Yes, this is why some of us colorful web personalities are hired by candidates. Though we have a ton of skeletons in our archives, we’re incindiary, controversial, riveting and damned good at what we do in commanding attention.

Which brings us to the “Brawl of the Week” (hat tip to Wulfgar).

John Edwards, Amanda Marcotte & Melissa McEwan -vs- Michelle Malkin, William Donohue & The Fighting 101st Keyboarders

The Plot: Right Wingers dig up dirt from the archives of Pandagon and Shakespeare’s Sister and demand Edwards fire his bloggers for their content.

The Review: Manufactured outrage by people with skeletons in their own closets who would never vote for Edwards anyway… so why even listen to them? Continue reading “Why I’ll probably never work for another candidate or take advertisers.”

Snobbier and better than ever…

Problem Adults: Members OnlyWe’ve decided to close our doors to the public at Problem Adults for a while. We’re regrouping and going back to the original vision of making it a virtual playground for the Web Elite…

Besides a chat room with Artificially Intelligent chat hostesses, a gallery, an arcade with 300 games and our own Cafepress store…

…now we’re offering tutorials, and have our own internal social networking system. It’s like MySpace, only without the creeps. πŸ˜€

Coming soon will be articles and columns by our members, and a new section called “After Hours”, where… you know. Grownups talk about the stuff they do after the kids have gone to bed.

Exciting times indeed.

Justice: Internet Style

If you’re not familiar with LoLo, he’s probably one of the best scambusters there is. His posts exposing the fake girl profiles on MySpace or the Truth about the Adult Dating Websites should be required reading for idiots that really think some 21 year old blonde hottie wants them (and their credit card) bad…. (*snicker*)

In October (sorry, I’m slow here.) he helps expose and bust a child predator on MySpace….

Now this is prime humiliation. Justice at its finest… and a lesson to parents everywhere. I love LoLo’s style! πŸ˜€

Parents… watch your kids online, or guys like Chip will do it for you.

Proudly powered by WordPress
Creative Commons License
EricBrooks.Com® is licensed under a Creative Commons License.

Disclaimer: The views expressed herein are solely those of Eric Brooks. They do not necessarily reflect those of his employers, friends, contacts, family, or even his pets (though my cat, Puddy, seems to agree with me on many key issues.). In accordance to my terms of use, you hereby acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly with every visit. As the user, you also acknowledge that the author has been legally declared a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not responsible for any of his actions. ALSO, the political views and products advertised on this site may/may not reflect the views of Puddy or myself, so please don't take them as an endorsement. We just need to eat.


Connect