Hallo,
ich möchte meine comments.php so haben, dass erst das Eingabefeld kommt und dann die Kommentare.
Das ist doch bestimmt möglich, nur ich krigs nicht ohne Anzeigefeher hin.
Hier meine comment.php:
PHP
<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments">Dieser Eintrag ist Passwort geschützt. Geb das Passwort ein um den Eintrag zu lesen.</p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<ol class="commentlist">
<?php wp_list_comments('avatar_size=40'); ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
<div class="fix"></div>
</div>
<?php else : ?>
<?php if ('open' == $post->comment_status) : ?>
<?php else : ?>
<div id="comments_wrap">
<p class="nocomments">Kommentarfunktion deaktiviert.</p>
</div>
<?php endif; ?>
<?php endif; ?>
<div id="reply_form">
<div id="respond">
<?php if ('open' == $post->comment_status) : ?>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst eingeloggt sein <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> um einen Kommentar abzu geben.</p>
<?php else : ?>
<form class="form" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comments">
<?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 wp_logout_url(get_permalink()); ?>" title="Log out of this account">Ausloggen »</a></p>
<ul class="fieldset">
<li class="field">
<textarea class="textarea" name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
</li>
</ul>
<?php else : ?>
<ul class="fieldset">
<li class="field">
<input class="text" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
</li>
<li class="field">
<input class="text" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
</li>
<li class="field">
<input class="text" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
</li>
<li class="field">
<textarea class="textarea" name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
</li>
</ul>
<?php endif; ?>
<?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?><br>
<input class="btinput" name="submit" type="submit" id="submit" tabindex="5" value="" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
<?php endif; ?>
</div> <!-- respond -->
</div> <!-- reply-form -->
Alles anzeigen
Lg, DANKE!