Hallo,
nun wende ich mich mal an euch. Ich komme nicht so richtig weiter. Habe leider von php auch nicht sooo viel Ahnung. Bei uns im Blog werden Pingbacks und Trackbacks nicht in den Commentaren angezeigt. Nun habe ich schonmal herausgefunden, dass es daran liegen kann, dass in der comments.php da was fehlt.
Kann mir jemand von euch helfen? Vielen Dank schon einmal.
PHP
<div id="comments-template">
<?php // Do not delete these lines
if('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die('Please do not load this page directly. Thanks!');
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
echo '<h2>'; _e('Password Protected','options'); echo '</h2>';
echo '<p>'; _e('Enter the password to view comments.','options'); echo '</p></div>';
return;
}
}
// Variable for alternating comments with the CSS class "alt"
$oddcomment = 'alt';
// Start editing here
if($comments) : ?>
<h3 id="comments">
<?php comments_number(__('Keine Antwort','options'), __('Eine Antwort','options'), '% '.__('Antworten','options')); ?>
<?php _e('to','options'); ?> “ <?php the_title(); ?> ”
</h3>
<ol class="commentlist">
<?php foreach($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?><?php if($comment->comment_author_email == get_the_author_email()) echo ' author'; ?>" id="comment-<?php comment_ID() ?>">
<?php if($comment->comment_author_url == true) { ?>
<a href="<?php echo $comment->comment_author_url; ?>" rel="nofollow" title="<?php comment_author(); ?>">
<?php } ?>
<?php
$comment_type = get_comment_type();
if($comment_type == 'trackback' or $comment_type == 'pingback') $avatar = get_bloginfo('template_directory') . "/images/trackback.jpg";
else $avatar = false;
?>
<?php echo get_avatar(get_comment_author_email(), '80', $avatar); ?>
<?php if($comment->comment_author_url == true) echo '</a>'; ?>
<div class="comment-meta-data">
<?php comment_author_link(); ?>
<a class="time" href="#comment-<?php comment_ID() ?>" title="">
<?php comment_date(__('M jS, Y','options')); ?>
<?php _e('at','options'); ?> <?php comment_time(); ?>
</a>
<?php edit_comment_link('<span class="edit">'.__('[Edit]','options').'</span>',' ',''); ?>
<?php if($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.','options'); ?></em>
<?php endif; ?>
</div>
<div class="comment-text">
<?php comment_text(); ?>
</div>
</li>
<?php
if('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; ?>
</ol>
<?php else : // this is displayed if there are no comments so far
if('open' == $post->comment_status) :
// If comments are open, but there are no comments.
else : // If comments are closed
?>
<p class="nocomments"><?php _e('Comments are closed.','options'); ?></p>
<?php endif;
endif;
if('open' == $post->comment_status) : ?>
<h3 id="respond"><?php _e('Antwort hinterlassen','options'); ?></h3>
<?php if(get_option('comment_registration') && !$user_ID) : ?>
<p><?php _e('Du mußt','options'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"> <?php _e('Einloggen','options'); ?></a> <?php echo ' '; _e('einen Kommentar schreiben.','options'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if($user_ID) : ?>
<p><?php _e('Eingeloggt als','options'); ?> <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('Ausloggen','options'); ?>"><?php _e('Logout','options'); ?> »</a></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" />
<label for="author"><?php _e('Name','options'); echo ' '; if ($req) _e('erforderlich','options'); ?></label>
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" />
<label for="email"><?php _e('Email (wird nicht veröffentlicht)','options'); echo ' '; if ($req) if ($req) _e('erforderlich','options'); ?></label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" />
<label for="url"><?php _e('Website','options'); ?></label>
</p>
<?php endif; ?>
<p>
<textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea>
</p>
<p>
<input class="submit-comment" name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Senden','options'); ?>" />
<input class="reset-comment" name="reset" type="reset" id="reset" tabindex="6" value="<?php _e('Löschen','options'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<div>
<?php do_action('comment_form', $post->ID); ?>
</div>
<p>
<?php echo '<strong>'; _e('Du kannst folgende XHTML tags nutzen','options'); echo ':</strong>'; ?> <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>
</p>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>
Alles anzeigen