About DeanLogic

Dean has been playing around with programming ever since his family got an IBM PC back in the early 80's. Things have changed since BASICA and Dean has dabbled in HTML, JavaScript, Action Script, Flex, Flash, PHP, C#, C++, J2ME and SQL. On this site Dean likes to share his adventures in coding. And since programming isn't enough of a time killer, Dean has also picked up the hobby of short film creation.

WP Mixed Tape

This a plugin that will take shortcode for track listings and make a “Mixed Tape” by turning the mp3 file links into music players and creating a play list of the tracks. The play list is a second shortcode that can be placed anywhere in the post. The play list can also show the tracks as a single album by changing the type. This will only show one link to the artist name added to the play list. The play list icon can be changed to show the mixed tape, cd, cd box, head phones or any image. The image should be small enough to fit inside the play list. Continue reading WP Mixed Tape

AHP Sitewide Recent Posts – hack 2.2ish

I received a comment on the main AHP Sitewide Recent Posts hack about having an issue of just displaying the title for the post. The plugin uses a “option code” to determine which items will be displayed for each post. The idea is, you add the value for each option and that total value lets the plugin know which items to show. For example, if you only wanted to show the post name, then the option value would be 32. If you wanted to show the post name and the blog name, then the option value would be 48 (32 Continue reading AHP Sitewide Recent Posts – hack 2.2ish

AHP Sitewide Recent Posts – hack 2.1ish

It’s funny how things happen to fall into place. Jacob over at 912Candidates.org was lamenting over the issue of not keeping the main page up-to-date. A few of the state sites have been posting updates, but Jacob has been a little busy and didn’t have anything to put on his front page. If only, he thought, there was a way to show the posts from the other sites. Well, what do you know, I was just playing around with a plug-in that did that. After pointing Jacob to the example on NC Freedom, he came back with some changes. The Continue reading AHP Sitewide Recent Posts – hack 2.1ish

AHP Sitewide Recent Posts – hack 2.0

After completing the initial hack, I went back to my production site and noticed that only one post from each site was being displayed. I believe this was the original intent of the plug-in, but I think that needs to be changed, so I made a little improvement. So now, the plug-in lets you set a max limit on the number of post per site. If you have a lot of sites, you’ll probably want to up the number of posts to display in general. Here is what I did. The first thing I did was to split up the Continue reading AHP Sitewide Recent Posts – hack 2.0

Sitewide Recent Posts – hack

I started using WordPress Mu for a couple of sites that I am helping out with. The key to WordPress Mu is the ability to have multiple WordPress sites under the control of a main WordPress site. For example, if you have a common topic, you can have multiple sub-sites under the main site. Examples of these are the two sites I am helping out with 9/12 Candidates and NC Freedom. While 912 Candidates has sub-sites based on each state, NC Freedom uses sub-sites based on regions within the state. Another part of WordPress Mu is the ability to have Continue reading Sitewide Recent Posts – hack

Testing the syntax highlighter

So, I added this awesome plugin called SyntaxHighlighter Evolved that converts code into a pretty look on the blog. The reason for using this is obvious to any developer. It’s a real pain in the butt to convert code so that it will display in HTML. And you want to display code every now and then to show off your geek fu or just to complain about some code that was bugging you. Let’s see if my new buttons work. Basically, I am using WP-Quicktag to easily add QuickTags to a post. For the SyntaxHighlighter I decided to add two Continue reading Testing the syntax highlighter