Wow - danke! Das geht ja jetzt Schlag auf Schlag jetzt... :-D
Hmm...als "SERVER_NAME" setze ich dann meine Domain, also "daniel-schlunk.de", ein?!
Wenn ich die Zeile direkt nach der ersten einsetze, kommt es zu einer Fehlermeldung.
Hier mal der gesamte Code:
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> schreibt:
<?php if ($comment->comment_approved == '0') : ?>
<em>Dein Kommentar wird demnächst moderiert.</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('j.m.Y') ?> um <?php comment_time() ?></a> <?php edit_comment_link('',''); ?></small>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
Alles anzeigen
Bietet sich da eine andere Position an?!