liebe leute,
Ich benutze zumindest auf einer Seite meines WP CMS die Popup Variante bei den Kommentaren, also die Comments-popuup.php......
Soweit so gut!
Allerdings wenn ich die Funktion Kommentare erst durch Admin freischalten nutze, erscheint keine Kommentar-Zeile "der Kommentar muss erst noch freigeschaltet werden" !!!????
Um das zu erreichen habe frage ich nach [COLOR=red]comment_apporoved == 0[/COLOR]
[COLOR=black]sieht im Code so aus:[/COLOR]
PHP
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
<?php if ($comment->comment_approved == '0') : ?>
<br /><br /><strong>Achtung: Der Kommentar muß erst noch freigegeben werden.</strong>
<?php endif; ?>
</li>
<?php } // end for each comment ?>
</ol>
<?php } else { // this is displayed if there are no comments so far ?>
<p>No comments yet.</p>
<?php } ?>
Alles anzeigen
na ja --- da passiert aber nu nix..........?????????
Nutze ich allerdings die "comments_template()" auf anderen Seiten kommt der notwendige Hinweis bei comment_approved Abfrage..............
Wäre ja echt dankbar für jede Hilfe --- weil ich komm an dieser Stelle nicht weiter.....
liebe grüsse
thomas