WordPress.org

Ready to get started?Download WordPress

Forums

show recent comments without hacks? (5 posts)

  1. vitia
    Member
    Posted 9 years ago #

    I've had nothing but bad luck using the legacy hacks file to show recent comments; it never parses, even with no hacks in it.
    Is there any simple way to show the most recent x number of comments in the side menu without resorting to the hacks file? I can't believe the WP folks would ignore this as an option: dialogue is the single most important component of weblogs.
    I'm so frustrated, and I'm so ready to go back to the easy way MT configured showing comments in the side menu.

  2. charle97
    Member
    Posted 9 years ago #

  3. vitia
    Member
    Posted 9 years ago #

    Thank you -- what a great plugin!
    I have another question: the default output for the plugin looks like:
    Excerpt excerpt... [Author]
    And I'd like it to look like:
    Author: Post Title, Comment Date in m/d format
    With some php stumbling and trial and error, I'm partway there -- by doing
    echo "

  4. $comment->comment_author: ";
    echo "
    get_permalink($comment->comment_post_ID) .
    "\">$comment_short
    , $comment->comment_date('m/d')
  5. \n";
    I've got it to look like
    Author: excerpt..., long date('m/d')
    So my questions are:
    1. How do I get it to link to the post title rather than (or in addition to) the excerpt?
    2. What am I gettting wrong in trying to call a different date format?
    Thanks very much for any guidance anyone might provide.

  • jtk3
    Member
    Posted 9 years ago #

    When I try that plugin the output I get is:
    -----------
    Recent Comments:

    Database error: [You have an error in your SQL syntax near 'LEFT JOIN ON .ID=.comment_post_ID AND post_status = 'publish' AND post_password' at line 1]
    SELECT ID, comment_ID, comment_content, comment_author, post_title FROM LEFT JOIN ON .ID=.comment_post_ID AND post_status = 'publish' AND post_password ='' AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT
    -------------

    My blog was converted from pMachine. Did something go a little wrong with the conversion?

  • e-head
    Member
    Posted 9 years ago #

    I'll just throw this out cause I'm feeling spunky cause i just set up my blog ...

    There is this cool php dealy called Carp.
    It allows you to display any RSS feeds you want on your site ... it is pretty damn easy to set up and the simple version is free.

    I was using it to display comments ... but I just set my site up and don't have any comments yet (or even any posts !) , so decided to hold off ...

    anyway, here is a demonstation:
    http://dotsandloops.net/myfeeds/

    i sort of use the above page as my home page ...
    kind of like a http version of a RSS reader ...

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.