Subscribe to this blog via RSS or email

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 on the index page. You can see it working on my own website, actually you can see it working right here on this entry – but only if you’re reading this from the homepage: just click on the link below.

To use it, download the plugin, drop mf_collapse.php in your plugin folder ( wp-content/plugins ) and activate it from the Administration Panel.
Then, you have to change your template’s index.php file ( wp-content/themes/[theme-in-use]/index.php ) as follow:

  1. open the file in your editor of choice
  2. locate the_content – or the_excerpt
  3. change it to mfc_collapse()

If you want you can personalize the link’s text using two optional parameters: the first one for the “Read More” link and the second one for the “Hide Text” link.

If you need some help, feel free to contact me.

Download MF Collapse.

This entry was posted on Friday, June 3rd, 2005 at 15:41

Tags: , ,

You can follow any responses to this entry through the RSS 2.0 feed.

Both comments and pings are currently closed.

11 Responses to “MF Collapse 1.0”

  1. Jeff Smith says:

    Great work Michele! I’ve been picking away at something like this on my own as well. I’ll definitely be giving your plugin a go sometime over the weekend.

  2. Shawn Grimes says:

    Nicely done Michele. I will be loading this up over the weekend as well. I’ve been wanting something like this for quite a bit now. There was another one that came out this week too but I don’t remember the link off hand. But I will be using this one as it seems to work pretty smooth based on the use here. Keep em’ coming buddy.

  3. Shawn Grimes says:

    Heh, couldn’t wait, I went ahead and installed it. Works like a charm Michele. Great work!

  4. Michele says:

    @ Jeff: let me know how it goes! :)

    @ Shawn: good to hear it’s working fine! And well, it should’ve taken you just a couple of minutes to install it, or not? I really tried to make it as easy as possible. ;)

    The one that came out earlier this week, IMHO, was a bit bloated for such an easy task. That’s why I coded mine. :)

  5. AdamStac says:

    Good work Michele. Not sure if I’ll use it, but none the less a fine plug-in.

  6. Shawn Grimes says:

    Michele, yeah, it was super easy to install, I had no problems at all with it. :)

  7. pm says:

    hello. just a quick note to let you know that i use your plug in and it works with the WP 2.0 :)

    thanks!

  8. Mik says:

    Just saw the plugin mentione don PM’s blog and istalled it and it is also working fine on WP 2.0.

    Thanks for making it and thanks to PM for bringing it to my attention.

    Mik

  9. Thanks for making this available. Using it with WP 2.0.2 with no issues.

    -ME

  10. [...] One I found today and tried out on a test blog is called MF-Collapse . What it does is modifies the standard link using AJAX so instead of going to the individual post page when clicked, your post expands instantly right on the main page. [...]

  11. Mad Hatter says:

    Tried to use it, but it didn’t work. The explanation on it is not enough concrete, I think :( Nice idea, though.