Hallo,ich habe mich eben hier angemeldet,weil ich eine Frage zu der comments.php habe.Habe mir ein Theme runtergalden es angepasst und auch schon diesen gravatarschnipsel eingefügt,allerdings möchte ich nun vor den Kommentaren die Zahlen weghaben,so dass die einfach nur so angezeigt werden und ich würde gerne den verfasser und die Uhrzeit vom Kommentar neben den Gravatr anzeigen alssen,derzeit wird das sehr unübersichtlich dadrunter dargestellt,kann mir jemand helfen?*ganzliebguck*Ich wär dafür echt dankbar,da ich echt keine ahnung habe vom ändern irgendwelcher Php-Sachen.:cry:.
Der Code der Comments sieht so aus:
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<h1 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
<?php endif; ?>
</h1>
<p>Kommentare abonnieren via <?php comments_rss_link(__('RSS')); ?>.
<?php if ( pings_open() ) : ?>
Oder setze einen <a href="<?php trackback_url() ?>" rel="trackback">trackback</a> von deiner eignen Seite.
<?php endif; ?>
</p>
<?php if ( $comments ) : ?>
<ol id="commentlist">
<?php $gravatar_default = "http://www.diva-syndrom.de/images/gravatar.gif"; ?>
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>">
<?php $gravatar_url = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5(get_comment_author_email()) . "&default=" . urlencode($gravatar_default) . "&size=40"; ?>
<img class="gravatar" src="<?php echo $gravatar_url ?>" alt="Gravatar of <?php comment_author() ?>" />
<?php comment_text() ?>
<p><em><?php comment_type(); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — On <a href="#comment-<?php comment_ID() ?>" title="Comment <?php comment_ID() ?>"><?php the_time('m-d-y') ?></a> at <?php the_time('g:i a'); ?> <?php edit_comment_link(__("Edit This"), ' |'); ?></em></p>
</li>
<?php endforeach; ?>
</ol>
<?php else : // If there are no comments yet ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<h1 id="postcomment"><?php _e('Leave a comment'); ?></h1>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <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="<?php _e('Log out of this account') ?>">Logout »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" title="What is your name?"class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" title="What is your email?" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" title="What is your website?" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<label for="url"><small>Website</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="70" rows="4" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" tabindex="5" title="Thanks for the Comment" class="ed_button" value="<?php _e("Say It!"); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?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
Achso,der Link zu einem Kommentar ist folgender (,damit ihr euch das angucken könnt,wies derzeit ist).
Diva-Syndrom.de/Diva-Alltag » Blog Archive » 2 Tage,2 Nächte...