bei mir funzt das nicht
Also der code
[COLOR=Red]<?php comment_author_ratings(); ?>[/COLOR]
muss in Kommentare (comments.php) im Adminbereich unter Design unter Theme-Editor ?
PHP
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('So nicht!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e("Dieser Beitrag ist Passwortgesch�tzt, gib das Passwort ein um die Kommentare zu lesen!"); ?><p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = "alt";
/* This variable is for the depiction of comment numbers */
$commentNO = 0;
?>
<div id="comments">
<?php if ($comments) : ?>
<?php comment_author_ratings(); ?>
<h3 id="comments"><?php comments_number('Keine Kommentare', 'Ein Kommentar', '% Kommentare' );?></h3>
<?php foreach ($comments as $comment) : ?>
<?php $commentNO++; ?>
<div id="comment-<?php comment_ID() ?>" class="comment">
<?
if (function_exists('gravatar')) {
if ('' != get_comment_author_url()) {
echo "<a href='$comment->comment_author_url' title='Besuche $comment->comment_author'>";
} else {
echo "<a href='http://www.gravatar.com' title='Speichere Deinen eigenen Gravatar auf gravatar.com!'>";
}
echo "<img src='";
if ('' == $comment->comment_type) {
echo gravatar($comment->comment_author_email);
} elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) {
echo gravatar($comment->comment_author_url);
}
echo "' alt='' class='gravatar' /></a>";
}
?>
<h4><a href="#comment-<?php comment_ID() ?>" class="commentnumber" title="Permanenter Link zu Kommentar <?php comment_ID() ?>"><?php echo $commentNO; ?>.</a> <img src="<?php echo bloginfo('template_url'); ?>/images/user_comment.png" class="contentimage" /> <?php comment_author_link() ?> schrieb am <?php comment_date('d. F Y') ?> um <?php comment_time() ?></dt></h4>
<p><?php comment_text() ?></p>
</div>
<?php endforeach; /* end for each comment */ ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<h1>Noch keine Kommentare!</h1>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<h1>Kommentare deaktiviert!</h1>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if ('open' == $post-> comment_status) : ?>
<div id="commentform">
<a name="postcomment"></a><h1>Schreibe einen Kommentar</h1>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
<?php if ($user_ID) : ?>
<p>Eingeloggt als: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</a></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="35" tabindex="1" class="text" />
<label for="author">Name</label>
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="35" tabindex="2" class="text" />
<label for="email">E-Mail (wird nicht angezeigt)</label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="35" tabindex="3" class="text" />
<label for="url">Website</label>
</p>
<?php endif; ?>
<?php comment_author_ratings(); ?>
<p class="commentforminfo">Folgende Tags sind erlaubt: <?php echo allowed_tags(); ?></p>
<p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4" class="text"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar schreiben" class="text" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<?php endif; ?>
Alles anzeigen
???
zeigt aber nichts an