Hallo,
bei mir funktionieren plötzlich die Kommentare nicht mehr. Da kommt dann immer folgende Fehlermeldung:
Parse error: syntax error, unexpected $end in /home/www/web53/html/wp-content/themes/silberfisch/comments.php on line 123
Hier mal die comments.php
PHP
<div id="response">
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Erst Passwort- dann Kommentare.'); ?></p>
<?php return; endif; ?>
<?php if ( comments_open() ) : ?>
<?php if (( $comments ) and ( comments_open() )): ?>
<br />
<br />
<div class="muh" id="comments">
<?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<!-- <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>-->
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ( $comments ) : ?>
<?php foreach ($comments as $comment) : ?>
<div id="comment-<?php comment_ID() ?>"></div>
<div class="clearer"> </div>
<div class="commentname">
<?php comment_author_link() ?>
</div>
<div class="commentinfo">
<?php comment_date() ?> |
<a href="#comment-<?php comment_ID() ?>" title="comment link url">
<?php comment_time() ?>
</a>
<?php edit_comment_link(__("Edit This"), ' |'); ?>
</div>
<div class="commenttext">
<?php comment_text() ?>
</div>
<?php endforeach; ?>
<?php elseif ( comments_open() ) : // If there are no comments yet ?>
<div id="nocomment">
<p>
<?php _e('No comments have been added to this post yet.'); ?>
</p>
</div>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<br />
<br />
<div class="muh" id="postcomment">
<?php _e('Leave a comment'); ?>
</div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du mußt <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet</a> sein, um kommentieren zu können.</p>
<?php else : ?>
<!--Formular zum Kommentarschreiben-->
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?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="von diesem Account abmelden">Abmelden »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) echo "(erforderlich)"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>eMail <?php if ($req) echo "(erforderlich)"; ?> (wird nicht veröffentlicht)</small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Webseite</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="47" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Teil dich mit!" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form><!--Ende der Kommentarform-->
<?php endif; // nie loeschen ?>
<p class="feeds"><?php comments_rss_link(__('<abbr title="Abonnieren?">RSS</abbr> Feed für die Kommentare')); ?> |
<?php if ( pings_open() ) : ?>
<a href="<?php trackback_url() ?>" rel="trackback">
<?php _e('TrackBack <abbr title="Trackback?">URL</abbr>'); ?>
</a>
<?php endif; ?>
</p>
<div id="commentsbottom"> </div>
<?php else : // Comments are closed ?>
<div id="commentsclosed">
<p>
<?php _e('Sorry, es sind keine Kommentare erlaubt!.'); ?>
</p>
</div>
Alles anzeigen
Und hier könnt ihr euch das ganze auf dem Blog ansehen:
silberfischsonate Blog Archiv Eieiei
Was hab ich da falsch gemacht? Wie krieg ich das wieder hin? :cry: