Cleanup HTML WordPress plugin

screenshot-1.png

Cleanup HTML is a new WordPress plugin. All it does is add a button to your visual editor. This button, when clicked, strips your post HTML of any div or span tags you might have, usually (but not always) junk tags to have in a post. The plugin relies on core TinyMCE features so it’s really nothing special, but it might come in handy once in a while. Let me know if you find it handy enough to expand its cleaning capabilities and/or submit it to the official repository.

Download Cleanup HTML 1.0 for WordPress

Update: The core functionality is a snippet of JavaScript. Here it is as a bookmarklet, which only works when you’ve selected the visual editor tab.

Drag this link to your bookmarks bar → Remove divs and spans from visual editor

An Alternative Way Of Posting Images To Your WordPress Blog Using Symbolic Links To Zenphoto Images

WordPress has image management features which makes uploading and inserting images easy. When it comes to resizing and cache management, however, WordPress falls short. WordPress works like this: you configure your media sizes in the “Media” section of WordPress. Once this is done, every image you upload to WordPress is resized into these predefined sizes and saved in the same folder as the uploaded image.

The shortcoming? If you decide you want to change the media settings down the road, the new sizes won’t affect previously uploaded images. If you want the new sizes reflected on your old posts and galleries, you have to delete each old image, one by one, post by post, and upload the source image anew. Because caching and resizing is done during the upload of each source image.

This is where Zenphoto comes in. Cached images are stored seperately in a cache folder, and images aren’t “inserted” anywhere, they’re simply linked. Meaning: if you change media settings, linked images will request a new image with the new sizes.

I built the Zenphoto Short-tags plugin to try and take these superior image management features with me to WordPress. To use the plugin, you have to have Zenphoto deployed to your webserver and instead of uploading images to WordPress, you have to upload images to Zenphoto. Using short-tags you then insert highly customizable image links in WordPress. With recent features of the plugin (just yesterday, I added a WordPress Media button) you can now do all the management you want to, directly in WordPress.

Shorttags_02.png

Notice the new ZP Media button.

By the way, the above image was inserted using this code: [zp src=”Shorttags_01.png” crop=”tl” height=”300″]. The crop parameter ensures the image isn’t scaled, and cropped to the top left corner. It takes its width from a media setting in the backend. The album folder is normally a required parameter, but it’s not filled in because the image happens to be in the default folder.

Shorttags_03.png

Once clicked, the new media button shows your most recent images from your Zenphoto gallery. If you simply click one of these images, the shorttag for showing the image is inserted.

Shorttags_04.png

You can also click the “Upload image to ZenPhoto” tab to get an at the moment rather inelegant view of the Zenphoto backend, which lets you upload right then and there.

The bottomline is, Zenphoto Short-tags and Zenphoto offers you a different way of posting images to your WordPress blog. It requires a different way of thinking, and there aren’t any previews of your images in your visual editor. On the flipside, tweaking the width, height and crop of your images can be done by simply changing the parameters and without uploading anew. Worth a shot?

Anti Feed-Scraper Message Plugin For WordPress [Updated November 09]

Anti-Feed-Scraper-Message.png

Anti-feed-scraper plugin is a really simple plugin which helps you give the so-called “feed scraper bots” a hard time.

A feed scraper is a script that explores various XML feeds and bluntly copies content in various categories. The purpose, I assume, is to create a useless ghost-blog with faux contents, either because the bot-puppeteer was lazy or in shady attempts to collect Google juice.

Anti-feed-scraper makes your posts somewhat harder to scrape, by appending a little message to the end of all your posts. Because this message appears in the body text of your posts (only in the RSS feeds of course), it’s hard to filter out by the scrape bots. Which means if the lazy puppeteers keep stealing your content, they’ll steal it complete with links to your original content as well.

Download

Download from WordPress.org

The plugin features an options page where you can configure your post message.

Options

In the options page, you can customize the message appended to your feeds. The default is:

[postname] originally appeared on [sitename] on [postdate].

Available “magic tags” include:

  • [postname]
  • [sitename]
  • [postdate]
  • [tweetthis]

10 Changes To WordPress That Would Make It A Killer CMS

[zenphoto src="wp_04_large.png" class="align-right"]

Since going freelance, I’ve supplied customers with a number of “WordPress as a CMS” solutions. Not only because WordPress is free and fairly userfriendly, but because for most websites WordPress is more than enough and certainly more than solely a blog platform. So much, in fact, that I’ll bet you WordPress is the next big thing on the CMS scene. It’s just waiting to happen, like a big secret waiting to pop out and say “Howdy”.

Continue reading

Color Wheel Styler Plugin for WordPress

This plugin lets you use a convenient color wheel to assign colors to various sections of your WordPress powered website.

[zenphoto src="color_wheel_styler.png" height="300" crop="tl"]

The plugin is powered by jQuery and the lovely Farbtastic.

Currently the plugin is supremely minimalistic and simply allows you to color your sidebar, your body text, your links and your background. However, with very little tweaking, you can adjust this plugin to do your bidding, which is probably what you’ll want to do anyway. For instance, you could throw most of the plugin code into functions.php and hardwire it to your specific theme.

Download Color Wheel Styler

If this garners enough interest, possible future features could be on-the-fly addition of classes, IDs and tags right in your admin interface, moving the options page to the “Appearance” tab and the relocation to the WordPress plugin repository. Your thoughts?

[Update]: WordPress 2.8 compatability.

Absolute Links, Runtime (Plugin for WordPress)

If you, like me, type in relative URLs to images and links that are local to your server, you probably didn’t know that means images in your feed are broken. Feeds require absolute URLs for both your images and your links.

This plugin is super minimalistic. It simply looks for any relative URLs you have written, images and links alike, and makes them absolute. This is done after you’ve saved your posts, but before they are shown, so there’s no need to update all your old posts. Just activate the plugin, and voila.

Before:

<a href="/photostream/albums/various/cow.png">
	<img src="/photostream/albums/various/cow.png" alt="" />
</a>

After:

<a href="http://noscope.com/photostream/albums/various/cow.png">
	<img src="http://noscope.com/photostream/albums/various/cow.png" alt="" />
</a>

Download Absolute Links, Runtime