WordPress 3 and WordPress Plugin Development

Here are the slides from my talk at the PHP meetup on 7.13.2010.

Upgraded to WordPress 3

The upgrade process went smooth. Did a backup beforehand just in case. Also because I wanted to work on the organization of the site. It is coming along now. I made some progress today, but still lots more to do.

Messing around with the new default theme, Twenty Ten. It is much easier to customize than Kubrick was for the general user.  As you can see I have modified the header and background Image. This is done all within the admin panel.

The new menu builder kicks ass! It is highly customizable. You can also store different menus, in case you want to switch it up. This is going to make themes a lot more flexible and easier on the theme developers. They won’t have to add as much functionality into their themes with it now already built into the core.

WP-FBConnect – Facebook Developers Wiki

WP-FacebookConnect adds Facebook functionality to WordPress using the Facebook Connect APIs. It provides single sign-on, avatars, and News Feed publication of comments.

via WP-FBConnect – Facebook Developers Wiki

So this is how Techcrunch and others are allowing people to comment with their facebook account. Its nice to see that its open source. Looks like the installation is fairly manual, but that shouldn’t be a problem for most people.

I found this plugin that might also be good. Facebook Connect WordPress Plugin.

Recent WordPress Spam

Getting a lot of spam that requires moderation since switching to intense debate. They are supposed to be running it through akismet filters, but they must have it set to a lower threshold because before when it was akismet through wordpress most of this crap would automatically be sent to spam folder.

The other thing that may be possible that is the javascript interface is making it easier for the spammers.

So I noticed that a good portion of this wordpress spam is now coming from kaboodle.com. The spammers are using a url shortening service relurl.com that doesn’t have a method for blacklisting people. Thinking about adding kaboodle to my blacklist.

Maybe I just had it configured differently. I spent a good deal of time screwing with intense debate trying to get it configured properly.

I also noticed a crap load of spam via trackbacks since installing intense debate. If I could cut down the trackback spam it would eliminate most of the spam. I don’t see a way to do this. I have enabled “must be intense debate user” to see if that helps.

Intense debate spam filter suxors!
/sigh

WP Media Settings

So I guess the media settings in wordpress 2.7 still don’t work quite right. When you click the press it link and insert an image it should resize it for you using php, then use the medium formatted image in the img src tag instead of linking to the full image. This helps save bandwidth and helps the server load.

So I noticed it was working on my wordpress.com blag. And after a little detective work I noticed that the only reason was because of some CSS in the style sheet.

p img {
max-width:100%;
padding:0;
}

So if the problem I described bugs you also you can use the css above to fix it. It is not the ideal solution, but until the media settings are working right it will at least make things easier.

[ad#ad-2]

Diggable WordPress Plugin

Diggable is a plugin for WordPress that adds Digg This buttons to websites. This will make it easier for your website visitors to submit content while it also allows them to see the Digg count for content that has already been submitted.

Features

General Features

  • Admin Menu with options for button placement and customization
  • No template modification, so you aren’t required to have any programming knowledge
  • Buttons placed at the end of the content post and only visible if you load the page for a particular post
  • There are options to display the buttons on pages and posts and on the front page of the website
  • You can also select between the compact and normal version of the button. Currently the display options are basic but will be expanded soon.

Download

Download Diggable

Support

Google Group

The Sociable and Gregarious code helped a lot with development, so thanks goes out to Peter Harkins. Let me know what you think.

WordPress 2.0.6 Released

It is a good idea to upgrade, as is usually the case because it includes an important security fix. Download the latest version of here. More information on the release can be found here. Installation / Upgrade help. Buy a wordpress T-shirt!

An important note is that this is the last release before the 2.1 version is out so if your a plugin developer it would be a good idea to make sure your plugin is compatible with 2.1 when it comes out.

Adding Tags to WordPress

Neato : Ultimate Tag Warrior 3

Ultimate Tag Warrior is a multi-headed hydra of a plugin. It allows you to add tags either through the Write Post page in wordpress in a tag box, on posts using an AJAXy box, and in posts using special syntax from external editors (or internally, if you’d like). From the write post page, you can also get suggestions for tags

I added tags to my site using this wordpress plugin. I like it alot although I haven’t figured out a few things. It is fine for now I think. The plugin comes with a normal plugin that you upload to your plugins folder but also some pages to searching.

After uploading everything and activating the plugin, here are some tips to getting it working on your site. In wp-admin goto Manage > Tags. I have URL setting unchecked because I couldn’t get it working. Meta keywords and embedded tags are turned on to help the search engines and for advertising. Primary Content tags I have set to “After Content” as you can see. I have tagsetsimplelist and prefix is a simple P tag with class “headertext”.  This css class is something that is specific to my wordpress theme.

This plugin adds two tables to the database to keep track of different tags. I think it also adds a field to the content table that is associated with tag ids in the tag table. I like having tags on my wordpress posts much better than categories. Now I just have to figure out a way to make it so I can add tags to my posts via performancing.

Getting Youtube and WordPress Working

Viper007Bond.com » Viper’s Video Quicktags

Tired of copy/pasting the code to embed videos from sites like YouTube and Google Video or for self-hosted videos into your posts? Well then this plugin is for you!

I had some trouble embedding the videos from youtube and google videos into my wordpress site because I believe the TinyMCE editor that wordpress uses parses out the object tags making it near impossible. I came across this plugin that works well.

It adds buttons to the TinyMCE editor allowing for the videos to easily be inserted into wordpress posts. The plugin also adds a bbcode tag allowing you to easily type out the URL of the video if you are using a different editor like Performancing to publish content to your website.

Pretty easy huh? Now enjoy a video that I found. :) Wierd Al’s song called White and Nerdy.

YouTube Preview Image

This video has helped Wierd Al climb into the Billboard Top Ten.

WordPress Embedded with Google Calendar

I figured out how to get google calendar to display within a wordpress themed site using IFRAME tags. It is pretty sample thing to do, but many people might not know how to work with wordpress themes or even the basic HTML it took to implement this. Hopefully it will be useful to somebody.

Example:
Google WP Calendar

Download: [RAR]
Google WP Calendar

You will need UnRAR or WinRAR or 7zip to decompress the files. Anyone should be able to decompress the files for free on any operating system.