Problem:
Statt der Eingabefelder für die Identität des Kommentierwilligen (Name, E-Mail, URL) wird nur angezeigt
ZitatSie müssen angemeldet sein, um einen Kommentar zu schreiben.
[Das ist die hartcodierte Übersetzung in der [FONT=Courier New]comments.php[/FONT] von You must be loggen in...]
Die Einstellungen sind:
Bevor ein Kommentar erscheint,
x muss der kommentierende Autor Name und E-Mail-Adresse hinterlassen.
Ich komme einfach nicht darauf wieso nicht wie auf anderen Blogs auch die Eingabefelder angezeigt werden :?. Die Suche hier hat mir leider nicht weitergeholfen.
Danke für jede Hilfe und jeden Ansatz.
Die [FONT=Courier New]comments.php[/FONT] (der relevante Teil):
PHP
(...)
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respond"><?php echo (isset($_GET['jal_edit_comments'])) ? "Editieren Ihres Kommentars" : "Kommentar schreiben"; ?></h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Sie müssen <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet</a> sein, um einen Kommentar zu schreiben.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<fieldset>
<legend>Ihr Kommentar:</legend>
<p><textarea name="comment" id="comment" cols="100%" rows="8" tabindex="4"><?php jal_comment_content($jal_comment); ?></textarea></p>
</fieldset>
<fieldset><legend>Ihre Identität:</legend>
<?php
if ( isset($_GET['jal_edit_comments']) ) :
$jal_comment = jal_edit_comment_init();
if (!$jal_comment) : return; endif;
?>
<?php elseif ( $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="Abmelden">Abmelden »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="5" />
<label for="author"><small>Ihr 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="6" />
<label for="email"><small>Ihre E-Mail (wird nicht angezeigt, <?php if ($req) echo "erforderlich)"; ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="7" />
<label for="url"><small>Webseiten-<acronym title="Uniform Resource Identifier">URI</acronym></small></label></p>
<?php endif; ?>
<p><input type="checkbox" name="subscribe" id="subscribe" value="subscribe" tabindex="8" />
<label for="subscribe"><small>neue Kommentare automatisch per E-Mail erhalten (E-Mail-Adresse [oben] erforderlich)</small></label>
</p>
<p><input name="submit" type="submit" id="submit" tabindex="9" value="Kommentar absenden" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</fieldset>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
Alles anzeigen