New Mobile Theme

We just installed WPTouch which automatically re-themes the website when viewed on a mobile device.  Probably should have done so a long time ago, but it’s a nice touch and makes the site look respectable on your mobile devices rather than miniature unreadable text.

Here’s a brief history of what the site has looked like over time.  Unfortunately it’s only a partial history because I never kept screen shots until now.  The first one I nabbed from archive.org.  In the interest of moving forward we’ll just keep track of it from now on.


Some time in 2007 through some time in 2008



Some time in 2009 through current


February 2010 through current

Decoding Nested gz base64 code

Whenever I first install any theme, I make my own modifications.  Sometimes  it’s removing extraneous code that I won’t be using, or changing the size of certain sections, or adding in some calls that I do need.  Whenever I do this I always modify the footer to say ‘Modified by Randy Aldrich.’

Recently After modifying the theme to my liking I went to add my own footer only to find the Author had used gz compression and base64 encoding on the footer.  All I found was the following code:

eval(gzinflate(base64_decode(“rVVtb5RAEP6sif9hJEbORMCX6AfL0bTaqlGTpr7UxJgG2LljU9jF3eEQf73D2/XacDZ6foFln5nnmZldZvaj8K7nQYJLqWChNaEBz4vu3L5zOxRyBVLMnX7bmdrMcUEtcCvMnkSnmKKivIEzI4lQhQFvMnYrrPIo3C+zEpZI57FJM7lCO3NLbSlp2qf7EB4/erAH+1EYsPFA+EErypjvYPCYIKzL86uc1JQ4L3pHd5MxDDj0qRwKKUSO6ywOc700Os9HsXCIZx1/LtWFnXmPH4Ib5jJy23cwLMCDXrT1uEHXyGV2WbxjqQS8pUEVADjLhTZF52CxTbD9dKBAyjTvcSgOxClJreZOHx2mmYZ75x+PTr8cnX5zT96c8Pr9sfu9jcjpKydVWRF0VXIIfzKHigteW6dXcsDKX/z95JkDqzivcFQHyqRlkND3fSfgsrbxdKRDCgeikGqybHxKhm+Y5axn6/JwydYo11wqXdFsODHGRpMYMoOLuZMRlS+CoK5rv9ZGlAat9bVZBk50Nn6HQXzpPHJzweKrqtcoOU0pYtLGr592jGmG6cV+ZeSczdC0d//rm08f3l+hH+7pkPvZCXzKsLi8o2P+W1JIjIzVMjZCofFTXQTUeQftga5iQm+do9chfkaFEx0M6JVA/lIh4fsr5FJPKxwO6C4K2GAaK9FMKxw1CC9beBcJgaQrMy3wqsN2YV8Y/FGhSrdkcDzCu2iYWDCQbjno0wHdRWGFhrae85ce/B/89kcVGxR/1IGPvdEuerVWgicOX51pqbM1vk3F3VBhR9IK7dPnjzqRxOjaYnAhxS8v0aXHCxu4QJJynLudqRu9YxQOdQm8sNPdYGz319q+pYZ5nDTnXvoi0ZTtOdHa9CaDjdGRchEl2X5slNH9VJfNHrzkZzdOYF3QjYnQDi2LRFIteUBmusB+RnHn7K2Srv0u9MxtZ8E4NeMI7idVnu/Bia65CwpIGrixHV/rxiPFZ8vqk97/8IvDxj8O3TZwXbgvbg3xughTHLZb8Lrfa5n8MCj7Yl+WvSuP0Of9nJ25PE764T1O+dY60aLpTpxjy6Pf”)));

This was obviously an attempt to protect the author’s copyright on the theme.  However; as I heavily modified the original results, I felt the need to protect my own and so I found a solution to decode the footer.

If you run into this same problem, just place the eval code you found into a file called coded.txt.  Then all you need to do is run this decrypt.php PHP script from the same directory and decoded.txt will be created in the same directory and will contain the decoded code.

NOTE: This solution is not mine, it was found on the web at Taree Internet

The Story of Stuff

Going Green is a common theme in practically everything these days. Why? Perhaps because consumerism has overrun our society and we’re obsessed with the Stuff. The Story of Stuff is a compelling presentation that describes how the stuff we get makes it into our grubby little hands.

The Story of Stuff

Widget Trouble

I had some trouble finding examples on how to Widgetize your WordPress Theme. I found plenty of links but all were dead. I figured I’d mirror a how-to guide here to make it easier for people to find out how to make their Theme work with WordPress widgets.

First of all you’ll want to put some code in your sidebar.php file to have a default sidebar as well as a dynamic sidebar when available. to do this use something like the following:

<ul id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar')|| !dynamic_sidebar() ) : ?>
    <li id="about">
        <h2>About</h2>
        <p>This is my blog.</p>
    </li>
    <li id="links">
        <h2>Links</h2>
        <ul>
            <li><a href="http://example.com">Example</a></li>
        </ul>
    </li>
    <?php endif; ?>
</ul>

This will enable your site to use a dynamically generated sidebar. Next we need the ability to implement a dynamic sidebar. To do this simply add the following to your functions.php file:

<?php
if ( function_exists('register_sidebar') )
    register_sidebar();
?>

Provided you have the Widgets plug-in installed and activated, you should now see a ‘Sidebar Widgets’ section under Presentation in the Admin section of your site.

I am not the original author of this tutorial nor am I a contributor in any way to the Widgets plug-in. If you have questions about the plug-in itself, or this method is not working please contact the author or see the plugin website.

WPG2 and K2

So you’re all aware of why the site is going through so many changes, We’re Working on implementing a new Theme called K2 which is completely customizable and built on Ajax. The reason we’re making the switch is so we can utilize WPG2 to embed our gallery2 photo album.

UPDATE: K2 along with WPG2 and gallery2 has now been abandoned.