Subscribe to this blog via RSS or email

Posts Tagged ‘wordpress’

MF Collapse 1.0

Being unsatisfied with what was available and having a few spare minutes on my hands, a couple of days ago I decided to work on a new WordPress plugin: MF Collapse.

What it does is simply collapse the text after Read the rest of this entry »

My first WordPress plugin

Today, I was supposed to go snowboarding, but since nobody would’ve come and as I feel a little sick, I was home all morning with not much to do.

In that free time I decided to write a little plugin for WordPress I wanted for a long time, but was unable to find anywhere else. Michael promised to release it, but never did so, and same did Chris.
So, here it comes my favorite posts plugin: MF Favorites.

It lets you add a little heart to mark favorite posts and, if you’re an admin, you can click on the heart to toggle the status of a particular post.
It comes with two images — a-favorite-heart and not-a-favorite-heart — that suit my color scheme, but you can change them with almost every image-editing software simply by changing the hues saturation.

I tested it only on my weblog, so you should consider it as alpha software. But since it’s a very tiny script, there should be no problem.
Please, let me know if you find bugs or have problems.

++UPDATE++ 2005/04/02: Version 0.2 of MF Favorites released!
I’ve added a way to show a list of your favorite posts and fixed a couple of bugs.

To show the list, simply call mff_show_favs() wherever you want the list to appear. By default, it will show the last 10 posts wrapped in <li></li>. So you’ll have to put it in an unordered list: <ul></ul>.
You can alse change a couple of parameters: mff_show_favs( number_of_posts_to_show_zero_for_all, before_each_post, after_each_post ).

As always, let me know if you have problems, suggestions or comments.