I keep gettin a parse error
"Parse error: syntax error, unexpected '<', expecting ')' in /home/ronpaulf/public_html/wp-content/themes/illacrimo/functions.php on line 21"
and it won't let me get back to my blog to try and fix it 9although I'm so new at this I don't know if i could or not!}
Can you please help? It seems the problem is on line 21. There is a new version of this template with the problems fixed but i can't get out of this to one click install to try and fix it.
Thanks so much
'Sidebar_left',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar_right',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
?>
', $after = '', $show_pass_post = false, $comment_style = 0) {
global $wpdb;
$request = "SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, post_title FROM $wpdb->comments LEFT JOIN $wpdb->posts ON $wpdb->posts.ID=$wpdb->comments.comment_post_ID WHERE post_status IN ('publish','static') ";
if(!$show_pass_post) $request .= "AND post_password ='' ";
$request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments";
$comments = $wpdb->get_results($request);
$output = '';
if ($comments) {
foreach ($comments as $comment) {
$comment_author = stripslashes($comment->comment_author);
if ($comment_author == "")
$comment_author = "anonymous";
$comment_content = strip_tags($comment->comment_content);
$comment_content = stripslashes($comment_content);
$words=split(" ",$comment_content);
$comment_excerpt = join(" ",array_slice($words,0,$comment_lenth));
$permalink = get_permalink($comment->ID)."#comment-".$comment->comment_ID;
if ($comment_style == 1) {
$post_title = stripslashes($comment->post_title);
$url = $comment->comment_author_url;
if (empty($url))
$output .= $before . $comment_author . ' on ' . $post_title . '.' . $after;
else
$output .= $before . "$comment_author" . ' on ' . $post_title . '.' . $after;
}
else {
$output .= $before . '' . $comment_author . ': ' . $comment_excerpt.'' . $after;
}
}
$output = convert_smilies($output);
} else {
$output .= $before . "None found" . $after;
}
echo $output;
}
}
?>