[CODE4LIB] Today at the Library WordPress plugin: advice?

2008-11-06 Thread Genny Engel
I've written my first WordPress plugin (woohoo!) that displays a Today
at the Library list of the current day's events.  I have the left
sidebar of our Library News blog set to call the plugin function, as
seen here:

http://sonomalibrary.org/news/

It's been suggested that I post this as a publicly available plugin, but
it's so kludgey it's not fit for public consumption -- I can't find a
WordPress hook that will call it, so I have PHP code in the sidebar to
call it.  Also, it's currently so specific to libraries with WebEvent
calendars it's not likely to have much audience.  In theory, it could be
generalized, but that would take some time.  Is it worth it?

I thought I'd check with the Code4Librs.  Anyone out there think this is
indeed worth pursuing and if so, want to take some time to help me
de-kludge?

Thanks a bunch.


Genny Engel
Sonoma County Library
[EMAIL PROTECTED]
707 545-0831 x581
www.sonomalibrary.org


Re: [CODE4LIB] Today at the Library WordPress plugin: advice?

2008-11-06 Thread Casey Bisson

Genny,

I would encourage you to release your plugin, though writing plugins  
can be an addictive behavior ;-)


You might consider widgetizing the sidebar component of your plugin so  
that nobody but you needs to muck around in PHP to make it work.  
There's a good template for making the widget and the dashboard  
controls for the widget in the WordPress source. Take a look at the  
bottom of this file, starting around line 1440:


http://trac.wordpress.org/browser/tags/2.6.3/wp-includes/widgets.php

And the easiest way to release your plugin is via the WordPress plugin  
directory. You can register your plugin here:


http://wordpress.org/extend/plugins/about/

--Casey

__

Information Architect
Plymouth State University
Plymouth, New Hampshire
http://Plymouth.edu/
http://about.Scriblio.net/
http://MaisonBisson.com/
ph: 603-535-2256



On Nov 6, 2008, at 4:23 AM, Genny Engel wrote:

I've written my first WordPress plugin (woohoo!) that displays a  
Today

at the Library list of the current day's events.  I have the left
sidebar of our Library News blog set to call the plugin function, as
seen here:

http://sonomalibrary.org/news/

It's been suggested that I post this as a publicly available plugin,  
but

it's so kludgey it's not fit for public consumption -- I can't find a
WordPress hook that will call it, so I have PHP code in the sidebar to
call it.  Also, it's currently so specific to libraries with WebEvent
calendars it's not likely to have much audience.  In theory, it  
could be

generalized, but that would take some time.  Is it worth it?

I thought I'd check with the Code4Librs.  Anyone out there think  
this is

indeed worth pursuing and if so, want to take some time to help me
de-kludge?

Thanks a bunch.