WordPress.org

Ready to get started?Download WordPress

Forums

Comment & Post Plugins (45 posts)

  1. Mark (podz)
    Support Maven
    Posted 10 years ago #

    I use a few of them, so that's me busy for a while !
    Thank you! :)

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

    All done :)
    (Though a note for others maybe .. remove the hack before activating the plugin. If you don't - like me - you get a conflict and have to change the my-hacks using ftp. No biggie though.)

  3. Mark (podz)
    Support Maven
    Posted 10 years ago #

    With the hack, I had commenters names displayed horizontally after the Comments link.
    Using the plugin, they are listed below it.
    I have managed to undo the listing part, but I can't see where the carriage return is being generated that stop the names being listed on the same line as the link.

  4. Nick Momrik
    Member
    Posted 10 years ago #

    I went to your site to check it out, but it looks as if you have the plugin turned off.

  5. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Okay, figured it :)

  6. pstew21
    Member
    Posted 10 years ago #

    Thanks for these, a nice way to integrate stats and use these on other pages then index.php.

  7. Nick Momrik
    Member
    Posted 10 years ago #

    podz,
    What was the problem? Might help someone else along the way.

  8. Mark (podz)
    Support Maven
    Posted 10 years ago #

    http://www.tamba2.org.uk/T2/archives/2004/05/12/not-today/
    I can get the commenters on one line, and I have added a nbsp to be displayed after a hyperlinked name, but aftertrying to get the same (so commenters names are spaced) with a non-linked one, all I am getting are errors.
    Here are the last lines of the plugin:
    if (!empty($commenter->comment_author_url))
    $output .= 'comment_author_url . '" title="' . $commenter->comment_author . '">' . $commenter->comment_author . ' ';
    else $output .= $commenter->comment_author ;
    }
    echo $before . '' . $output . '';
    }

  9. Nick Momrik
    Member
    Posted 10 years ago #

    podz,
    I think what you need is some CSS with right padding. Here is the CSS I'm using:
    .feedback {
    text-align:right;
    font-size:xx-small;
    padding-bottom:10px;
    }
    .feedback ul {
    margin-left:0;
    padding-left:0;
    display:inline;
    list-style:none;
    }
    .feedback ul li {
    display:inline;
    padding:0 2px 0 2px;
    border-left:2px solid #c96;
    }
    Crow,
    I'm almost positive it can...I'll take a look at it.

  10. Mark (podz)
    Support Maven
    Posted 10 years ago #

    MDV - many thanks :) Works great !

  11. Nick Momrik
    Member
    Posted 10 years ago #

    Crow,
    The new version has that option now. :-)

  12. crow_t_autobot
    Member
    Posted 10 years ago #

    Wow, that was fast.
    I really appreciate that. Thanks!

  13. Nick Momrik
    Member
    Posted 10 years ago #

    Your welcome...it was a piece of cake.

  14. crow_t_autobot
    Member
    Posted 10 years ago #

    Um, question.
    It works like a champ, but I'm not finding where to change the excerpt text color in the style sheet. The text is black on an almost-black background.
    What tag name is the excerpt text looking to for its color?

  15. Nick Momrik
    Member
    Posted 10 years ago #

    There isn't any specific CSS being used, it just uses whatever is setup currently in your CSS...so it depends on where you are using it and what the color is set to for that "place". I went to your site to take a look but didn't see it running with the excerpts anywhere. Are you going to use it on the sidebar under Recent Site Entries?

  16. crow_t_autobot
    Member
    Posted 10 years ago #

    I created another directory to try out the 1.2 candidate.
    This is it.
    I set all of the text colors in my style sheet to white except for the block-quotes, and they're still in black. I suspect I just need to create a new category in the CSS, but I'm unsure what to call it. Just "post_excerpt"?

  17. Nick Momrik
    Member
    Posted 10 years ago #

    You don't have a color set for #menu or for body so it is using black by default. Just set a color on #menu.

  18. crow_t_autobot
    Member
    Posted 10 years ago #

    Ah. Got it.
    It's always the simple stuff that throws you for a loop.
    Thanks again.

  19. Nick Momrik
    Member
    Posted 10 years ago #

    The Recent Posts plugin now supports two styles for displaying the recent comments.

  20. foolfillment
    Member
    Posted 10 years ago #

    hello, I made my way here from this thread and might use that plugin but what I'm really looking for is something that will list the most recent posts to have been commented on, does anyone know how I can do this?

  21. Nick Momrik
    Member
    Posted 10 years ago #

    I meant to say the Recent Comments plugin... :-/

  22. Jonathan
    Member
    Posted 10 years ago #

    I've installed the Recent Comments plugin, but it's throwing a database error:

    [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN tableposts ON .ID=.comment_post_ID AND post_status = ]
    SELECT ID, comment_ID, comment_content, comment_author, post_title FROM LEFT JOIN tableposts ON .ID=.comment_post_ID AND post_status = 'publish' AND post_password ='' AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT 5

    Sorry, my SQL is somewhat rusty, and I don't think I ever did get my head around LEFT JOIN. Anyone care to help?

  23. Jonathan
    Member
    Posted 10 years ago #

    Aha! I think I've fixed it by blundering around. First, I tweaked the global line to:

    global $wpdb, $tablecomments, $tableposts;

    Then in the next line, add a $ before tablecomments LEFT JOIN. This seems to work for me.

  24. Jonathan
    Member
    Posted 10 years ago #

    Yet another followup to my own post; in the distribution v1.11, comment_approved appears to be ignored in the SQL select, so comments in the moderation queue appear in the list (though the link goes to the entry, since the comment isn't visible).
    I couldn't unpick the SQL to fix this, so added a kludge; the start of my foreach loop now reads:

    foreach ($comments as $comment) {
    $comment_approved = ($comment->comment_approved);
    if (!$comment_approved) continue;
    $comment_author = stripslashes($comment->comment_author);

    That is, if comment_approved is 0, the current pass through the loop is jumped. This produces the expected result for me.

  25. Nick Momrik
    Member
    Posted 10 years ago #

    WOW...I really messed that one up didn't I! Sorry everyone. I've made some fixes and tested it out on a fresh 1.2 install. Everything should be working properly now.

  26. Jonathan
    Member
    Posted 10 years ago #

    I hate to say this, MtDew, but there still seems to be a tiny goof in the SQL; my install throws an error unless I change LEFT JOIN tableposts to LEFT JOIN $tableposts. Then it works just fine; the AND -> WHERE substitution does exactly what it should. Dang, I should have spotted that. :)
    Big thanks for the plugin, I'd never have got near on my own!

  27. Nick Momrik
    Member
    Posted 10 years ago #

    I thought I did change that....maybe I put the wrong vesion in the download file.
    Yup, I had it working on my test blog, but didn't include that simple little character in download version. Everything should be fixed now....I hope!! Sorry again. :-)

  28. Nick Momrik
    Member
    Posted 10 years ago #

    Just made a small fix to the Recent Posts plugin. I wasn't taking the time offset into account.
    http://mtdewvirus.com/wp-hacks/

  29. Anonymous
    Unregistered
    Posted 10 years ago #

    Forgive my ignorance, I am far from understanding PHP and new to WP. I have done as the instructions require but I am having one problem. Some of my post titles are long, and I would like to use the first 10 characters of the recent post title with the recent post plugin. Any suggestions on how to do this?
    Thanks
    Bernard

  30. Nick Momrik
    Member
    Posted 10 years ago #

    Some of the code from the recent comments plugin could be used to accomplish this. Send me an email (there is a form at my site) and I'll try to whip something up for you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.