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
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:
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
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.
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:
<?php if ( !function_exists('dynamic_sidebar')|| !dynamic_sidebar() ) : ?>
<p>This is my blog.</p>
<?php endif; ?>
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:
if ( function_exists('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.
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.