Threaded comments and ‘if / else’
-
Using latest CVS (as of 14:00 BST)
Two issues:
1 – Am replacing plugins, one of which is LL’s Threaded Comments.
In wp-comments.php, I need to replace a line that says this:
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
It’s not there …. it’s gone ! Where would I find that now ? A search turns nothing up.
2 – To display site stats, I had this in index.php
<?php
if (! empty($display_stats) ) {
get_stats(1);
echo "
";
}
else if (($posts & empty($display_stats)) ) : foreach ($posts as $post) : start_wp(); ?>
Can anyone tell me where / how I can include this now seeing as things have altered ?
Ta !
The topic ‘Threaded comments and ‘if / else’’ is closed to new replies.