WordPress.org

Ready to get started?Download WordPress

Forums

|NEW PLUGIN| Show recent posts :) (26 posts)

  1. mcmike
    Member
    Posted 9 years ago #

    I created a small and prety straight forward show recent posts plugin for WordPress 1.5 (Strayhorn)

    You can download it at: http://www.mcmike.nl/lastposts.zip

    Unzip in the plugins directory and read the README.txt that is attached :)

    Hope this is what you wanted :)

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    And there is a similar one from mtdewvirus:
    http://mtdewvirus.com/code/wordpress-plugins/

  3. mcmike
    Member
    Posted 9 years ago #

    lol thnx people should look better then before they post here :) :)

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    On that issue, I agree totally.
    But then as someone who knows no php, I guess it's cool to be able to see how two authors approach the same issue so in that case, having two plugins is a good thing :)

  5. mcmike
    Member
    Posted 9 years ago #

    well basicly I just "borrowed" the code from the admin-site of WordPress...

    Simple and easy but if you want a change, let me know and I can edit it :) Since I am a prety expert on PHP

  6. jgarciag
    Member
    Posted 9 years ago #

    what about a plugin for recent posts in a specific cat and within the current month.?.

    eg :5 recent posts in cat 1 for this current month.

  7. mcmike
    Member
    Posted 9 years ago #

    Could be done, but you would need to know the ID of the cat

    But that would not really be a problem now would it :)

    Let me fiddle with that idea :)

  8. mcmike
    Member
    Posted 9 years ago #

    well I reprogrammed / hacked into it and it does both now :)

    You can edit the php file (read the lines in there :P)

    You can find the script -> http://www.mcmike.nl/lastposts.zip

    Sorry about the dutch weblog, but since I am dutch :) :)

  9. jgarciag
    Member
    Posted 9 years ago #

    great!!!, just what I was waiting for..thanks

  10. mcmike
    Member
    Posted 9 years ago #

    np ;) always there to help out ppl :)

  11. grumpy
    Member
    Posted 9 years ago #

    i have installed the plugin and it works but gives a whole lot of errors in the admin screen when you activate the plugin.

    Warning: Cannot add header information - headers already sent by (output started at /home/XXX_xxx/html/wp-content/plugins/recentposts.php:48) in /home/XXX_xxx/html/wp-admin/admin.php on line 6

  12. Johnny2001
    Member
    Posted 9 years ago #

    Yes I get all of the errors in admin too...hope we can fix that.

  13. Mark (podz)
    Support Maven
    Posted 9 years ago #

  14. khaled
    Member
    Posted 9 years ago #

    Nothing like someone saying he's an expert at php for me to jump on and ask, could you possibly make a plugin to seperate trackbacks and comments :). Here's a start of the thread :).

    http://wordpress.org/support/topic.php?id=28792

    Let's see some php magic mcmike :)

  15. mcmike
    Member
    Posted 9 years ago #

    Let me look into that when I am not so drunk as now (its 2331 here and I finished some wine already :P :P ) Though I never looked into the trackback system before....

  16. mcmike
    Member
    Posted 9 years ago #

    By the way is that header problem solved yet ???

  17. kjda
    Member
    Posted 9 years ago #

    This is a great plugin--thanks! Had the error above, too--fixed with the Trouble-shooting link, no problem.

    Current problem is that it's double-posting. Of recent posts, it lists five--the most recent one three times, the one before that twice. I had thought it was tagging it every time I edit, but that's not it. ANy thoughts?

  18. mcmike
    Member
    Posted 9 years ago #

    Odd ? Never had that problem before. Are you sure the posts are not posted tripple / double times ??

  19. Erwin
    Member
    Posted 9 years ago #

    Remove the two empty lines in the plugin (recentposts.php) and the 'Cannot add header information' errors will disappear magically! ;-)

    Well, at least they did on my blog. :-)

  20. residualforces
    Member
    Posted 9 years ago #

    My site went white again! I have to stop trying these, I can't follow the simplest instructions.

    I was following the fixes in this thread. I was at the bottom, and now its gone.

    I had this happen before, and I had to remove plugins via ftp

  21. residualforces
    Member
    Posted 9 years ago #

    I'm back up now, I had to remove the plugin.

    I tried to add this like this:

  22. <h2><?php _e('Latest Activity'); ?></h2>
      <? show_recentposts() ?>
  23. It is the same as for my archives. It was fine til I tried to fix the double posting. It showed up and seemed fine.

    How would one fix the double posting?

  • residualforces
    Member
    Posted 9 years ago #

    The li's and ul's didn't come through on that post, but are exactly like the "archives" in Kubrick

  • residualforces
    Member
    Posted 9 years ago #

    I just redid the install.
    Here's what I noticed. After I inserted the code into the sidebar, and ckicked update, the page I was on went white.

    In a new browser window, I can still see my site, and the recent posts are there.

    Any suggestions on what I did wrong?

  • residualforces
    Member
    Posted 9 years ago #

    BTW.
    I noticed: The double posting seems to be if you have comments or pingbacks.

  • residualforces
    Member
    Posted 9 years ago #

    Once I deactivated the plugin I don't get the white pages after updating, in the dashboard anymore.

  • mcmike
    Member
    Posted 9 years ago #

    Hmmzzz

    Reckon there must be something I did wrong, basiclyu the recent-posts I wrote here was an exact copy of the DASHBOARD sql-query and output....
    </lu>

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.