Also, ich bin zwar etwas weitergekommen, aber nicht besonders viel. Also, wenn ich die comments.php eines anderen Themes hereinkopiere, dann funktioniert es. Aber dann ist ja alles falsch dargestellt, weil es ja für ein anderes Theme ist. Ich verstehe bloß nicht, was der unterschied ist, zwischen den beiden comments.php-Dateien
Ich poste mal das Ender der Files, da das ja wohl das wichtigste ist:
Mein Theme:
PHP
<?php endforeach; /* end for each comment */ ?>
</ol>
<?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. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments"></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post-> comment_status) : ?>
<div class="post_comment">
<a name="respond"></a><h3>Einen Kommentar schreiben:</h3>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p><input type="text" name="author" id="author" class="styled" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
<label for="author"><small>Name</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 (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>Website</small></label></p>
-->
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<br>
<p><span class="button"><button type="submit" name="submit" tabindex="5" value="Kommentar abschicken">Kommentar abschicken</button></span></p>
</form>
</div>
<?php // if you delete this the sky will fall on your head
endif; ?>
Alles anzeigen
Das andere (hat funktioniert):
PHP
<?php else : ?>
<div id="comment_login">
<p><label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p>
<label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /></p>
<label for="url"><small>Website</small></label>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /></p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
$mcsp_info = math_comment_spam_protection();
?> <label for="mcspvalue"><small>Spam protection: Sum of <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?' ?></small></label>
<p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="3" />
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>
</div>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p style="text-align:center;"><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value=" Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?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
Weiß jemand eine Lösung?