Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Comment Plugin Help
    Thread Starter christinexo

    (@christinexo)

    thank u so much ur a life saver!

    Forum: Plugins
    In reply to: Comment Plugin Help
    Thread Starter christinexo

    (@christinexo)

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

    Forum: Plugins
    In reply to: Comment Plugin Help
    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 know this is alittle bit late, but… I did this to mine:

    in ur comment-plugger.php file do this

    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>comment_author_url . '" title="Visit ' . $commenter->comment_author . '">' . $commenter->comment_author . '</a>, ';
    				else
    					$output .= '' . $commenter->comment_author . '<strong>,</strong> ';
    			}
    		}
    
    		echo $before . '
    <ul>' . $output . '</ul>
    ';
    	}
    }
    ?>

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