hallo.
ich krieg das irgendwie nicht gebastelt.
kann mir da irgendwer auf die sprüunge helfen?
mein theme comments.php sieht jetzt so aus (s.u.).
hab ich noch irgendwo etwas vergessen?
in der anleitung steht noch folgendes....
3.1 You need to make sure that "<?php do_action('comment_form', $post->ID); ?>" is just after the </div> and just before
the </form> lines at the bottom of the comments.php file in your theme's folder.
3.2 Open up your comments.php file and find the same area as you did in step 3 above. Now if you notice in my example
above, the <textarea></textarea> line has 'name="comment" id="comment"' settings. Now you need to make sure that both
the name and id are "comment" like above (the default theme is like this).
die beiden punkte verstehe ich irgendwie nicht.
punkt 3.2 ist doch punkt 3 oder wie? oder gibt es noch eine andere comments.php?
hilfe !!!
hier meine comments.php
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>Enter your password to view comments.</p>
<?php return; endif; ?><?php if ( $comments ) : ?>
<h3>Read the Comments</h3>
<?php foreach ($comments as $comment) : ?><div class="comment">
<p><strong> <img src="<?php bloginfo('url'); ?>/wp-content/themes/Tiju/images/comment.png"></img> <?php comment_ID(); ?> <?php comment_type('Comment','Trackback','Pingback'); ?></strong> from <strong><?php if ('' != get_comment_author_url()) { ?>
<a href="<?php comment_author_url(); ?>"><?php comment_author() ?></a><?php } else { comment_author(); } ?></strong><?php edit_comment_link('Edit',' | '); ?> <img src="<?php bloginfo('url'); ?>/wp-content/themes/Tiju/images/date.png"></img> <small><?php comment_date() ?>, <img src="<?php bloginfo('url'); ?>/wp-content/themes/Tiju/images/clock.png"></img> <?php comment_time(); ?></small> </p><div style="background:#333; border:1px solid #666;padding-left:4px; overflow:auto; width:500px;position:relative;"><?php comment_text() ?> </div><?php if ($comment->comment_approved == '0') : ?><p>
<strong>Thanks for your comment! It has been placed in the moderation queue, and if it is approved it will be published here soon!</strong></p>
<?php endif; ?></div><?php endforeach; ?><?php endif; ?><?php if ( comments_open() ) : ?><?php endif; ?><?php if ( comments_open() ) : ?><div id="commentsection">
<h3> <img src="<?php bloginfo('url'); ?>/wp-content/themes/Tiju/images/leaveit.png"></img> Write a comment</h3>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p><label for="author">Name:</label>
<br />
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /><input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" /><input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER['REQUEST_URI']); ?>" /></p>
<p><label for="email">E-mail:</label>
<br />
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /></p><p><label for="url">Website:</label>
<br />
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /></p>
<p><label for="comment">Your comment:</label>
<br />
<?php if(function_exists(wp_comment_quicktags_plus)) { wp_comment_quicktags_plus(); } ?>
<textarea name="comment" id="comment" cols="45" rows="7" tabindex="4"></textarea></p>
<p><input name="submit" id="submit" type="submit" tabindex="5" value="Submit" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<?php else : // Comments are closed ?>
<?php endif; ?>
Alles anzeigen