Viewing 6 replies - 1 through 6 (of 6 total)
  • Nobody can see your code in a picture…

    Thread Starter christinexo

    (@christinexo)

    the code is:

    function mdv_comment_plugger($before = '', $limit = 20) {
    	global $wpdb, $id;
    
    	$commenters = $wpdb->get_results("SELECT comment_author, comment_author_email, comment_author_url, UNIX_TIMESTAMP(comment_date) AS unixdate FROM $wpdb->comments WHERE comment_post_ID='$id' AND comment_approved = '1' AND comment_type <> 'pingback' AND comment_type <> 'trackback' GROUP BY comment_author_email, comment_author ORDER BY comment_date DESC LIMIT $limit");
    
    	if ($commenters) {
    		$output = '';
    		$commenters = array_reverse($commenters); // Reserve the order so most recent commenter is last in the array
    
    		foreach ($commenters as $commenter) {
    			if (!empty($commenter->comment_author)) {
    				if (!empty($commenter->comment_author_url))
    					$output .= ' <a href="' . $commenter->comment_author_url . '" title="Visit ' . $commenter->comment_author . '">' . $commenter->comment_author . '</a>, ';
    				else
    					$output .= '' . $commenter->comment_author . ', ';
    			}
    		}
    
    		echo $before . '<ul>' . $output . '</ul>';
    	}
    }
    ?>

    I meant: give us a link. We need the output and the stylesheet. And don’t paste it here – nobody will read it.
    We can look at it on your site.

    Thread Starter christinexo

    (@christinexo)

    okay, my site is
    http://lovecatalyst.org/

    Here is your problem:

    Commented: <ul> <a title="Visit janelle" href="http://phinkness.com">janelle</a>, <a title="Visit Brenda" href="http://insanitykills.org">Brenda</a>, <a title="Visit Kelly" href="http://12string.org">Kelly</a>, </ul>

    to correct:
    add in your css file

    ul {
    display:inline;
    margin:0px;
    padding0px;
    }

    Thread Starter christinexo

    (@christinexo)

    thank u so much ur a life saver!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Comment Plugin Help’ is closed to new replies.