The MU forums have moved to

Sitewide Recent Posts by User plugin (5 posts)

  1. fredcode
    Posted 16 years ago #

    Howdy MU-hackers. I needed to be able to show recent posts in all blogs per user on a profile page for a community site I'm working on. Here's the MU-plugin version:

    To use:

    <?php recent_posts_by_user($user_ID); // Show last 10 posts sitewide for user #$user_ID ?>

    <?php recent_posts_by_user($user_ID, 15); // Show last 15 posts sitewide for user #$user_ID ?>

    Output is an unordered list of the form:
    * blogname -- post title

    Test it, break it, hack it -- have fun! Email me if you find bugs or improvements.

  2. suleiman
    Posted 16 years ago #

    thanks fredcode!

  3. ctrl8
    Posted 16 years ago #

    This plug in is great. No fuss, it just works :)

  4. kornpong
    Posted 16 years ago #

    Why don't work ?

  5. Hidoshi
    Posted 15 years ago #

    Hi, I'm just wondering how I would add stripslashes to this plugin? I'm only a PHP amateur, and I'm not sure how to do this. I have a blog with an apostrophe in the title, so it's coming up with a forward slash before it.

About this Topic

  • Started 16 years ago by fredcode
  • Latest reply from Hidoshi