Posts Tagged ‘wordpress’

Theme finally at 1.0

I finally “finished” my theme for this site. I am also releasing it to the world. If you use Wordpress and want your site to look exactly like mine, go download my theme right now! I have done several themes in the past, but this is the only one I’ve ever made for general use and I think it’s the best looking one I’ve ever done. Let me know if you like it and if you find any bugs, send me a note.

I’m a 1337 h4X0r

I love open source software. One reason is that it is almost always free of charge. The second reason is that you can offer suggestions and fixes and sometimes the programmer will listen and implement changes.

I have started using a Wordpress plug-in called All in one Adsense and YPN. It allows me to add advertising to my blog entries without having to mess with the theme. The plug-in worked well except one important feature did not work. It was the feature that allows you to insert code before and after the advertisement. This was important to me because I was unable to style the ads like I wanted unless this feature worked.

The problem was that when you entered the before and after HTML, the plug-in inserted backslashes into my code before each quote mark. This results from a "feature" of PHP 4 and 5 that automatically escapes quote marks. This is to prevent newbies from writing easily exploitable code. The "feature" was removed in PHP 6 and I suspect that the author is using PHP 6 for development because he never could reproduce the bug in his plug-in (If it is the case that he is using PHP 6 for development, he should be smacked a few times. PHP 6 is still in development itself and most servers still run PHP 4 and only a few have even upgraded to PHP 5. He should test on PHP 4 to make sure he has maximum compatibility or just state that his program is PHP 6 only).

Anyway, the problem was easy to fix. PHP provides a function called stripslashes() that essentially stops the automatic escaping of quotes. I added the function in the appropriate places, tested the fix, upped the changes to my own server, posted a message about the fix to the developer’s forum (check my post under the nickname deadgoon), emailed the developer to let him know of the fix, and sat back and waited. I also suggested that he make the 3px of margin around the ad an option instead of a fixed feature so that those who wanted to do their own styling could.

Two days later I received an email thanking me for the fix. One day later — today — I saw that the developer had released a new version. In it was my fix and my suggestion was also implemented. I was given no credit, but you my loyal readers know the real story.

The moral of the story is, don’t just whine about it. Fix it!

New theme mostly finished

So the new theme is finally here. I can tell you right now it needs a lot of tweaking, but it is complete enough to start using it. I’m dissatisfied with the sidebar and the pages, archives, and other stuff were just thrown together this morning. I’ll keep working on it though. I’ve kept it sufficiently generic that I should be able to release it as a theme that anyone can install on their Wordpress blog. You know… when it’s finished.

Styling nearly complete

I’ve got most of the styling done for my new theme. The new theme has a tabbed nav bar and a sidebar that is widget capable. I’m also taking the time to style the default Wordpress widgets that come with WP 2.5 of which I have a beta copy installed on my Macbook. I still have to create templates for pages, singles, comments, etc., so there is still quite a bit of work to be done. I’m also looking at creating some WP plugins as well, but more on that later.

Here’s another screenshot for you to check out.

screenshot of theme

Theme coming along

Just a small update. I managed to get a lot done on my theme today. Here is what it looks like. It’s not really where I thought I’d be going with the theme, but I like this current theme so much that I thought I’d do something similar, but not broken in IE 6. So it’s been quite a challenge to say the least.

Screenshot of web page