Hallihallo.
Nachdem ich auf ein neues Template umgestiegen bin, spuckt mir die comments.php merkwürdiges Zeug aus. Ich bin noch nicht dahinter gekommen, woran es liegt. Vielleicht wisst Ihr ja bescheid.
Das sieht man, wenn man eine Single Page aufruft, bei der noch keine Kommentare hinterlassen wurden:
ZitatProject-Id-Version: WordPress 1.5 POT-Creation-Date: 2005-03-06 PO-Revision-Date: 2005-05-14 18:27+0100 Last-Translator: Olaf Language-Team: WordPress.de MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit
Einen Kommentar hinterlassen
Eigentlich sollte dort ausser "Einen Kommentar hinterlassen" gar nichts stehen...
Und das ist der Quelltext der comments.php:
PHP
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<?php if ( comments_open() ) : ?>
<h3 class="kommentarhead"><?php comments_number(__(''), __('Kommentar'), __('Kommentare')); ?><a name="comments"></a></h3>
<?php endif; ?>
<?php if ( $comments ) : ?>
<ol class="comments">
<?php foreach ($comments as $comment) : ?>
<li>
<h4><?php if (function_exists("gravatar")) { ?><img src="<?php gravatar("R", 23); ?>" alt="Gravatar" class="gravatar" /> <?php } ?>
<?php comment_author_link() ?> schrieb am <?php comment_date(); ?>: <?php if (function_exists('quoter_comment')) { quoter_comment(); } ?></h4>
<?php comment_text() ?><?php edit_comment_link(__("bearbeiten"), ' |'); ?>
<?php if ($comment->comment_approved == '0') : ?><br /><p><em>Kommentar muss erst freigegeben werden - bitte Geduld.</em></p><?php endif; ?>
</li>
<?php endforeach; ?>
</ol>
<p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr>-Feed für Kommentare dieses Beitrags.')); ?></p>
<?php else : // If there are no comments yet ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<h3 id="postcomment"><?php _e('Leave a comment'); ?></h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Man muss <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet</a> sein, um zu kommentieren.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<fieldset>
<textarea name="comment" id="comment" class="commentinput" cols="25" rows="5" tabindex="1"></textarea>
<p><small>Erlaubte Tags: <?php echo allowed_tags(); ?></small></p>
<?php if ( $user_ID ) : ?>
<p>Angemeldet 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="25" class="comment_name_input" tabindex="2" />
<label for="name">Name <?php if ($req) _e('(required)'); ?></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="25" tabindex="3" />
<label for="email">E-Mail (will not be published<?php if ($req) _e(', notwendig'); ?>)</label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="25" class="comment_web_input" tabindex="4" />
<label for="web">Url</label></p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
$mcsp_info = math_comment_spam_protection();
?> <p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="25" tabindex="4" />
<label for="mcspvalue"><small>Spam-Schutz: Summe von <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?' ?></small></label>
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>
<?php endif; ?>
<p><br /><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar abschicken" class="button" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
</fieldset>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
Alles anzeigen
Wäre toll, wenn mir jemand helfen könnte!
LG,
06elf