Simple iframe Shortcode Plugin

September 21st, 2011

I was unable to find anything that made it easy to paste iframe embed codes into the visual editor. The existing solutions all required me to transpose info from the embed code to the shortcode. This allows you to simply paste your iframe code. Just put it inside [iframe][/iframe].

Update: Now available in repository as plugin ready to go

http://wordpress.org/extend/plugins/iframe-shortcode/

add_shortcode( 'iframe', 'simple_iframe_sc' );

function simple_iframe_sc( $atts, $content = null ) {
    $char = array( '‘', '’', '“', '”', '′', '″' );
    $replace = array( "'", "'", '"', '"', "'", '"' );
    return html_entity_decode( str_replace( $char, $replace, $content ) );
}

Example use:


[iframe]<iframe width="560" height="315" src="http://www.youtube.com/embed/KuxWu1D3Mk4"
frameborder="0" allowfullscreen></iframe>[/iframe]

Adding Custom CSS Classes to TinyMCE Format Dropdown

August 31st, 2011

I got this question at the Happiness Bar at WordCamp (in front of Andrew Ozz to boot!) also, so I’m committing it to bits here.

function custom_mce_styles( $init ) {
    $init['theme_advanced_buttons2_add_before'] = 'styleselect';
    $init['theme_advanced_styles'] = 'Style Name=styleclass,Style Name2=styleclass2';
    return $init;
}

add_filter( 'tiny_mce_before_init', 'custom_mce_styles'  );

function my_mce_css() {
    return get_bloginfo( 'template_url' ) . '/editor-style.css';
}

add_filter( 'mce_css', 'my_mce_css' );

Add this to your theme’s functions.php file. Obviously (or not) you’ll replace Style Name=styleclass,Style Name2=styleclass2 with your own comma sep. list of names and classes.

To style the appearance of the display within the visual editor, you need to create an editor stylesheet in your theme folder – ex: editor-style.css

To add the dropdown to the first row, revise line 2:

$init['theme_advanced_buttons1_add_before'] = 'styleselect';

WordPress.org Support Forum Post

One File WordPress Deploy

August 31st, 2011

This works great on Rackspace Cloud Sites, and eliminates the need to upload an archive or individual files. Script works by grabbing and unpacking the latest stable version of WordPress.

Read the rest of this entry »

WordCamp

August 23rd, 2011

This was my first pilgrimage to the annual WordCamp San Francisco. 3 days of WordPress heaven. Sunday I enjoyed volunteering at the ‘Happiness Bar’, helping people with their WordPress problems. Saw some interesting stuff. Great speakers, great venue and crowd.

WordPress Backup

March 10th, 2011

One of my favorite, and most used plugins is — Automatic WordPress Backup by Dan Coulter under commission by Web Design Company.

It backs up your entire site (database, themes, plugins, uploads, settings) and then sends it off to Amazon S3′s low cost industrial strength storage.

You can set it to run automatically or trigger it manually as you like. It will even clean up old backups.

It does not support multi-site yet – but hopefully it will soon.

One note of caution – the automated backup jobs are triggered by wp_cron. This can be problematic for low traffic sites. You may wish to setup a cron job to visit your site at regular intervals to insure that wp_cron gets triggered regularly.

Thanks Dan and Mel!

Download WordPress Backup

JustHumans Contact Form Plugin

August 17th, 2010

This painfully simple plugin provides a shortcode for inserting simple contact forms, with JustHumans powered spam protection. JustHumans is one of the most reliable ways of stopping contact form spam in my experience, I highly recommend it and use it frequently.

Download JustHumans Contact Form Plugin

Update: Anders Brownworth has blogged it.

PayPal Shortcodes Plugin

July 8th, 2010

Simple plugin for inserting ‘Add to Cart’ buttons with shortcodes. Includes visual editor button for easy inserting of shortcodes.

Download, change email address configuration variable, upload, and activate plugin. Look for the new button in the visual editor to easily insert shortcodes wherever you like.

Download jw-paypal-shortcodes v0.2

CloudSites WordPress Scanner

June 17th, 2010

Update: Cloud Sites WP Scanner is now available via the plugins repository:

http://wordpress.org/extend/plugins/jw-cloud-sites-wp-scanner/

Use at your own risk. Upload, activate, and visit new menu item. Can remove all world and group permissions. Search options table for backdoors, and posts table for spam links. Also looks for *.bak.php, *.old.php, and *.cache.php files.

Download Cloud Sites WP Scanner

WordPress Wins CMS Award

November 19th, 2009

WordPress has been awarded the Overall Best Open Source CMS Award in the 2009 Open Source CMS Awards

Matt says:

I was very excited last week to learn that WordPress has been awarded the Overall Best Open Source CMS Award in the 2009 Open Source CMS Awards. This is a landmark for us, as it is the first time we’ve won this award, and it marks a shift in the public perception of WordPress, from blog software to full-featured CMS. No small contest, the Open Source CMS Awards received over 12,000 nominations and more than 23,000 votes across five categories.

As Hiro Nakamura said when he first bent time and space to land in Times Square: “Yatta!”

http://wordpress.org/development/2009/11/wordpress-wins-cms-award/

Why You Shouldn’t Use Google Apps Enterprise

October 22nd, 2009

Recently, a client wanted just 1 jumbo mailbox for their domain, larger than what I can provide on my hosting platform. Google Apps Enterprise seemed like the perfect fit. 25 Gigs for a reasonable price on the familiar and popular Gmail platform. Perfect right… yes, until you have a question or need support.

Google’s monolith provides no phone number for support, just online forms where you fire your query off and hope for a timely response or resolution.

It has taken Google Enterprise support – 3 weeks to address my issue. That’s right 3 weeks to troubleshoot an email delivery issue. This is the poorest of poor support/service. For a paid service this is unacceptable.

Bottom line, don’t host anything other than personal email with Google Apps. They are not up to the task when it comes to supporting users who depend on reliable email. There are a ton of reputable hosting companies that do excellent email hosting and -gasp- actually have a phone number you can call for support when things go wrong.

Oh and the best part is the issue still isn’t solved and I must continue waiting for replies to emails.

</rant>

Finally Text Replacement That Works

October 12th, 2009

I am falling head over heels for Cufon.

Cufón aims to become a worthy alternative to sIFR, which despite its merits still remains painfully tricky to set up and use. To achieve this ambitious goal the following requirements were set:

1. No plug-ins required – it can only use features natively supported by the client
2. Compatibility – it has to work on every major browser on the market
3. Ease of use – no or near-zero configuration needed for standard use cases
4. Speed – it has to be fast, even for sufficiently large amounts of text

http://wiki.github.com/sorccu/cufon

Stop the Madness – Bring Down IE 6

October 12th, 2009

The premise is simple: Internet Explorer 6 is antiquated, doesn’t support key web standards, and should be phased out. This isn’t about being anti-Microsoft, it’s about making sure that we encourage people to move to modern browsers such as IE8, Firefox, Chrome, Safari and Opera. IE6 accounts for up to 20% of web usage, primarily via business users. Clients pressure designers to ’force’ sites to work in IE6, and designers, not wanting to lose business, comply, using hacks and workarounds. This wastes time and money. While Microsoft is encouraging companies and developers to move on from IE6, designers need to unite, and we all need to move on.

Visit: http://www.bringdownie6.com/