Forums

Comment Plugin Help (7 posts)

  1. christinexo
    Member
    Posted 2 years ago #

    Okay, I got everything to work, but, i can't seem to make it align right with the word Commented does anybody know what I should do ??

    http://img517.imageshack.us/img517/2457/pluginup5.jpg
    ^^ thats the picture

  2. moshu
    Member
    Posted 2 years ago #

    Nobody can see your code in a picture...

  3. christinexo
    Member
    Posted 2 years ago #

    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>';
    	}
    }
    ?>
  4. moshu
    Member
    Posted 2 years ago #

    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.

  5. christinexo
    Member
    Posted 2 years ago #

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

  6. hanifb
    Member
    Posted 2 years ago #

    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;
    }
  7. christinexo
    Member
    Posted 2 years ago #

    thank u so much ur a life saver!

Topic Closed

This topic has been closed to new replies.

About this Topic