Archive

Archive for March, 2009

How to add WordPress meta boxes to the sidebar

March 27th, 2009 2 comments

Unfortunately, the WordPress online documentation is a mess of old, outdated API information and when I tried to make a little plugin today and have it put a little meta box in the sidebar of the edit/new post admin pages, I had one hell of a hard time getting things to work the way it was documented.

Everywhere I looked, it told me to hook on to the “admin_menu” event when I wanted to queue up my meta box using add_meta_box().  After a bit of messing around, it seemed as though I had it working for the edit post page, but then it wasn’t showing up on the add new post page.  I did a bit of debugging and ensured that it was the fact that the add_meta_box() call wasn’t being queued properly – I assume it had something to do with when it was being added to the meta box queue… ultimately meaning that the “admin_menu” event was too early of an event for me to hook on to.
Read more…

Remove Java’s system tray icon – permanently.

March 26th, 2009 8 comments

If you have the Java Runtime Environment installed on your Windows (Vista) system – and chances are you do – you may have tried disabling that Java system tray icon without much luck.  The problem lies in registry permissions, and the solution lies right here!

As the Administrator user in Windows, you can easily go in to the Java control panel and disable the “Place Java icon in system tray” setting and it will stick (meaning the setting actually gets saved in the registry).  Problem is though, the setting seems to be per-user, so you’ve only disabled it for your Administrator account – not much use for your normal user account(s) in Windows now is it.
Read more…