Hallo WPler,
ich habe nun schon hier im Forum gelesen und auch verschiedene Tutorials zum Thema Einbau von Threaded Comments gelesen. Leider haben diese mir bisher nicht weiter helfen können.
Mein WP Theme ist quasi selbsterstellt, mit Hilfe irgendeines Tutorials und ich glaube einer Art Rohling. Sicher bin ich mir leider nicht mehr genau und wie man merkt, bin ich aus der WP Materie auch ziemlich raus.
Daher bin ich mir, wenn ich die Tutorials lese, nie sicher, ob ich diese wirklich SO auf mein Theme anwenden kann. :-| Es wäre schön, wenn mir jemand auf mein Theme abgestimmt erklären könnte, was ich nun genau ändern muss. - Ich hoffe, dass ist nicht zu viel verlangt, in der Regel verusche ich wirklich, mir alles selbst bei zu bringen.
Im Header habe ich diese Zeile eingefügt:
. Ich glaube so weit ist da alles klar
Meine comments.php sieht so aus:
<?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 (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p>Dieser Beitrag ist Passwort geschützt.</p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<img class="trenner" src="<?php bloginfo('stylesheet_directory'); ?>/grafiken/equine-blog_trenner.gif" alt="---" / >
<h5> <?php comments_number('noch keine Kommentare', '1 Kommentar', '% Kommentare'); ?></h3>
<?php foreach ($comments as $comment) : ?>
<div class="kommentare" id="comment-<?php comment_ID() ?>">
<div class="float-right"><?php echo get_avatar( $comment, $size = '45', $default ='http://www.equine-blog.tote-zitrone.de/wp-content/themes/equine-blue/grafiken/equine-blog_avatar-gras.png' ); ?></div>
<div class="float-left">
<p class="autor"><?php comment_author(); ?></p>
<p class="datum">am <?php comment_date('j. F Y') ?> um <?php comment_time() ?></p></div>
<div class="clearer"></div>
<?php if ($comment->comment_approved == '0') : ?>
<p>Dein Kommentar wartet auf seine Freischaltung.</p>
<?php endif; ?>
<?php comment_text() ?>
<div class="small"><p>| <?php comment_author_url_link('Website'); ?> | <?php comment_author_email_link('E-Mail'); ?> | <?php edit_comment_link('edit',' ',''); ?></p></div>
</div>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
<img class="trenner" src="<?php bloginfo('stylesheet_directory'); ?>/grafiken/equine-blog_trenner.gif" alt="---" / >
<?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>Die Kommentarfunktion wurde f�r diesen Beitrag deaktiviert.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h4>Verfasse einen Kommentar</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">eingeloggt</a>sein um einen Kommentar verfassen zu können.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Du bist eingeloggt 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="Log out of this account">ausloggen</a></p>
<?php else : ?>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?> Name" size="30" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><?php if ($req) echo "*"; ?></label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>E-Mail" size="30" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><?php if ($req) echo "*"; ?><small>(wird nicht veröffentlicht)</small></label> <br/><br/>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>Website URL" size="30" tabindex="3" /><br/><br/>
<?php endif; ?>
<textarea name="comment" id="comment" cols="95%" rows="10" tabindex="4"></textarea>
<br/>
<input name="submit" type="submit" id="submit" tabindex="5" value="Abschicken" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?> <p class="small">mit * gekennzeichnete Felder sind Pflichtfelder</small>
</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
Gruß
.Salim