Keir Whitaker - Publishing occasionally since 2008

WP-Blocks now in Plugin Directory

Just a quick post to say that my most recent WordPress plugin is now available in the plugin directory. Since the beta releases I have added a couple of new necessary features.

  • Auto highlighting of the template code when you click into the input
  • Added confirmation alert when deleting a block

If you try it and find any “bugs” let me know and I’ll get on it.

Direct Link:
http://wordpress.org/extend/plugins/wp-blocks/

11 Comments

Christian Aarfing

Hi Keir,

Like your plugin. Not too bloated or too complex – simple and having a clear purpose. I did however find a small bug. If you enter HTML with an attribute in the “HTML Prepend”-box (like <div class=”foo”>) some weird behavior occurs in the input-field directly below. It seems to be because of the quotes around the attribute just mentioned.

Keir Whitaker

Hey Christian,

Thanks for checking it out. The problem you encounter is as a result of me! I was having issues with entities not rendering properly in the text areas so I put in a dummy input to try and debug. I just forgot to take it out.

I have updated the plugin now and checked it back in to the repo.

Alwyn

Hi There

When I activate the plug in all I get is the line “do_action(); ?>” in the admin panel

That correct?

Congrats by the way on the idea, superb.

Keir Whitaker

Hi Alwyn,

Thanks for the comment, simple answer is NO :(

Is your server PHP5 enabled, as this plugin does require it. It could be that as that is a call to a class function. I can only think that is the reason, feel free to send me a screenshot (my email link is top right) I will happily look at it for you.

Keir

Christian Aarfing

Hi again,

Think I found another bug. It seems your plugin adds the CSS and JS you use to style the backend to both the backend and the frontend as well. So the frontend of my site – which isn’t using jQuery – is getting an JS-error.

Matt Hill

Hi Keir

I’ve discovered a problem with either your plugin or Viper’s Video Quicktags. The latter plugin adds a bunch of icons on the TinyMCE toolbar for inserting videos into a post. If WP-blocks is active, Viper’s icons don’t appear. I guess there’s some conflict somewhere. Should I also raise this with the author of VVQ?

Cheers, Matt.

Keir Whitaker

Hey Matt, thanks for the heads up. Whilst it’s the easiest thing to say I have a feeling it might be the other plugin. I haven’t hooked into the editor in any special way. I simply call it in the template using the the_editor() function from WP itself. More on that here:

http://wphit.com/lookup/2010/03/the_editor-2/

Do let me know if it turns out to be my plugin. I have been running one of the plugins that allows you to input code snippets locally and that works in “blocks” without issue.

Always happy to help and improve things, do let me know.

Matt Hill

I haven’t had a chance to look at this in detail yet, but I’m also getting the same problem with another plugin “Link to Post”, which also adds new icons into TinYMCE. They don’t show up on the Posts or Pages WYSIWYG if WP-blocks is enabled.

It seems like WP-Blocks is somehow obliterating other changes to Tiny MCEs toolbars. I conclude that WP-Blocks is the culprit, because if I disable it, *both* the other plugins work correctly and I get all the new icons in Tiny MCE.

My conclusion may well be wrong though ;-)

Matt Hill

No problem at all, I’m just glad to help raise awareness of plugin conflicts. It’s such a mine field out there. I’d offer to help with code changes, except I’m more of a designer than a coder and try to avoid code where possible… :-)

Leave a Comment

Ads Powered by Fusion

About Me

I am a web developer based in Bath in the UK with a focus on WordPress, PHP and JavaScript. I am also the co-founder of Viewport Industries - hosts of "Insites: The Tour" and publisher of the upcoming book "Insites: The Book". I help edit Smashing Coding and am a fan of fine coffee, cocktails, F1 and slow media.

Blog Categories

Projects