Plugin transition from WP to Habari

8 views
Skip to first unread message

benmillett

unread,
Jan 9, 2008, 10:13:42 PM1/9/08
to habari-dev
As someone working with Habari on my localhost so that when I switch
my actual site to Habari everything works, I'm really interested in
getting the plugins with which I am familiar adapted for Habari. Back
in April, hightow...@gmail.com asked about a tutorial for
converting WP plugins to Habari and was told by Kristin Pishdadi that
"Habari plugins have way different standards and guidelines than
Wordpress plugins do. Not sure if that is possible." Is this still
the case? Looking over the "Creating a plugin" on the habariproject
wiki, it's clear that things are different. Just trying to figure out
the best way to transition.

On a side note, with some wordpress plugins, you can have multiple
instances, such as flickrrss (I can have the feed of my photos as well
as those of my wife) by indicating the different usernames with
flickrrss(username) or something like that. Can Habari plugins be
made to do this, or are we stuck with one instance per site.

Thought this should go in -dev instead of -user as I'm more concerned
about the writing/adapting of plugins and thought you all would know
the best answers.

Owen Winkler

unread,
Jan 9, 2008, 11:33:49 PM1/9/08
to habar...@googlegroups.com
benmillett wrote:
> As someone working with Habari on my localhost so that when I switch
> my actual site to Habari everything works, I'm really interested in
> getting the plugins with which I am familiar adapted for Habari. Back
> in April, hightow...@gmail.com asked about a tutorial for
> converting WP plugins to Habari and was told by Kristin Pishdadi that
> "Habari plugins have way different standards and guidelines than
> Wordpress plugins do. Not sure if that is possible." Is this still
> the case? Looking over the "Creating a plugin" on the habariproject
> wiki, it's clear that things are different. Just trying to figure out
> the best way to transition.

Yes, plugins in Habari are somewhat different from WordPress. Even
though the same sort of "hook" system is used, its implementation is
different, and the names and features of all of the hooks are different
between the two. It is very unlikely that a converter could be written
to automatically convert any WordPress plugin into one for Habari.
Similarly, it's difficult to say if you are implementing a specific hook
in WordPress that it would translate directly to a specific hook in Habari.

> On a side note, with some wordpress plugins, you can have multiple
> instances, such as flickrrss (I can have the feed of my photos as well
> as those of my wife) by indicating the different usernames with
> flickrrss(username) or something like that. Can Habari plugins be
> made to do this, or are we stuck with one instance per site.

Habari plugins can do anything WordPress ones can, they just have to be
coded that way. I don't know of any plugins that consume multiple feeds
and differentiate them for output right now, but one could easily be
written using code from plugins that are already available.

> Thought this should go in -dev instead of -user as I'm more concerned
> about the writing/adapting of plugins and thought you all would know
> the best answers.

No worries. I'd guess that if you posted a few of the plugins that you
were looking for, people would either take them on as their own project
or collaborate with you to get them written.

Owen

benmillett

unread,
Jan 10, 2008, 3:43:51 PM1/10/08
to habari-dev
I would assume that since there are no quicktags in the post-writing
page, that there is no current plan to add them. For myself, I rely
on them so that I can easily embed youtube and vimeo videos, as well
as make dealing with images easier for my wife.

I am sure that once I gave myself some time and looked at some of the
other plugins, I'd be able to figure out how to use them for Habari.
The ones I am most interested in are:
<a href="http://www.1pixelout.net/code/audio-player-wordpress-
plugin/">audio player</a>
<a href="http://eightface.com/wordpress/flickrrss/">flickrrss</a> so I
can have multiple instances of the plugin (my photos, my wife's
photos) (I realize there is a flickr feed plugin already, but it's
currently set up for one flickr user only, as far as I can tell)
<a href="http://blog.tijs.org/archives/2005/11/01/lastfm-recent-tracks-
wordpress-plugin/">last.fm recent tracks</a>
A netflix queue indicator (Jimmy Oliver did the code originally, I've
modified it to have three feeds with one call of the plugin)
Alex King's <a href="http://alexking.org/projects/wordpress">twitter
tools</a>
<a href="http://www.raproject.com/wordpress/wp-ajax-edit-
comments/">AJAX edit comments</a> - but something even simpler than
this would be great - where the commenter can simply edit the comment.
<a href="http://www.jonas.rabbe.com/archives/2005/05/08/super-archives-
plugin-for-wordpress/">super archives</a>
<a href="http://ben.momillett.org/vimeorss/">vimeoxml</a> that I made
to parse an xml feed with vimeo's api.
<a href="http://dev.wp-plugins.org/wiki/LiveCommentPreview">live
comment preview</a> (without the gravatar support)
<a href="http://aboutme.lmbbox.com/lmbbox-plugins/lmbbox-comment-
quicktags/">comment quicktags</a>
<a href="http://www.nosq.com/blog/runphp/">runphp</a>

I realize that most of these deal with RSS or XML feeds, so I would
imagine that changing them shouldn't be <em>that</em> difficult (I say
that now...).

There are a couple others that I use with WordPress that I realize
would not easily be converted, such as <a href="http://robm.me.uk/
projects/plugins/wordpress/now-reading/">Now Reading</a>, <a
href="http://paulgoscicki.com/projects/wp-movie-ratings/">WP Movie
Ratings</a>, and <a href="http://soderlind.no/
ImageManager">ImageManager</a> that are so complex that I wouldn't
dream of asking the community to attempt to convert. When it comes
down to it, the plugins I listed above are not necessary, but they
just add a little more. Again, hopefully when I have a little more
time and things got settled (just got my Ph. D. and will be starting a
job in the next week or two), I'll have a go at trying to get the feed
ones swtiched.

benmillett

unread,
Jan 10, 2008, 3:44:51 PM1/10/08
to habari-dev
Sorry for the mess - I thought the links would have worked.
Reply all
Reply to author
Forward
0 new messages