Thema: WP 2.7 Kommentare
Einzelnen Beitrag anzeigen
Alt 16.12.2008, 14:58   #12 (permalink)
X-Bit
PostRank: 1
 
Registriert seit: 12.03.2008
Beiträge: 42
Hüüülfe!

Ich kann Kommentare, welche auf "Vorgemerkt" stehen nicht freigeben... Es kommt einfach eine weisse Seite!

Ich habe das Theme Travelgrunge von ElegantWPThemes im Gebrauch und habe keine Ahnung, an was das liegt...

Ich habe jetzt schon Stunden damit verbracht, irgendwelche englischen Anleitungen zu lesen und verstehe nur Bahnhof!

Kann mir da jemand helfen?!

Hier meine comments.php... an der wird es wohl liegen, oder?!

Code:
<?php // Do not delete these lines
if ('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
?>
<h2><?php _e("This post is password protected. Enter the password to view comments."); ?></h2>
<?php
return;
}
}

$oddcomment = '-alt';

?>


<div id="comments-template">

<?php include (TEMPLATEPATH . '/paginate.php'); ?>

<?php
global $bm_comments;
global $bm_trackbacks;
split_comments( $comments );
$aemail = get_the_author_email();
?>

<?php if ( $comments ) : ?>

<?php
$trackbackcounter = count( $bm_trackbacks );
$commentcounter = count( $bm_comments );
?>

<h4 id="comments"><?php echo $commentcounter; ?> Users Response In This Post</h4>

<?php foreach ($bm_comments as $comment) : ?>

<?php if ($comment->comment_author_email == $aemail) { ?>

<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp-author">
<div class="com-content-author">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom-author"></div>
</div>
</div>

<?php } else { ?>


<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>

<?php } ?>
<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>

<?php if ( count( $bm_trackbacks ) > 0 ) { ?>

<h4><?php echo $trackbackcounter; ?> Pingback &amp; Trackback On This Post</h4>

<?php foreach ($bm_trackbacks as $comment) : ?>

<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>

<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>


<?php } ?>

<?php endif; ?>

<?php if ('open' == $post->comment_status) : ?>

<?php if (get_option('comment_registration') && !$user_ID) : ?>

<h2>Sorry you must register to comments in this post</h2>

<?php else : ?>

<h4>Leave A Reply Here</h4>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if (!$user_ID) : ?>

<label>Username: <span>*required</span></label>
<p><input name="author" type="text" class="comfield" value="<?php echo $comment_author; ?>"/></p>

<label>Email Address: <span>*required</span></label>
<p><input name="email" type="text" class="comfield" value="<?php echo $comment_author_email; ?>"/></p>

<label>Homepage:</label>
<p><input name="url" type="text" class="comfield" value="<?php echo $comment_author_url; ?>"/></p>

<?php endif; ?>

<label><?php comments_rss_link('Comments RSS'); ?> | <a href="<?php trackback_url(); ?>">Trackback URI</a></label>

<?php if(function_exists("wp_grins")) { ?>
<p><?php wp_grins(); ?></p>
<?php } ?>

<p>
<script type='text/javascript'>
quicktagsL10n = {
quickLinks: "(Quick Links)",
wordLookup: "Enter a word to look up:",
dictionaryLookup: "Dictionary lookup",
lookup: "lookup",
closeAllOpenTags: "Close all open tags",
closeTags: "close tags",
enterURL: "Enter the URL",
enterImageURL: "Enter the URL of the image",
enterImageDescription: "Enter a description of the image"
}
</script>
<script type="text/javascript">edToolbar()</script>
</p>

<p>

<textarea name="comment" cols="50%" rows="8" id="comment" class="comarea"></textarea>
<script type="text/javascript">var edCanvas = document.getElementById('comment');</script>
</p>


<p><input name="s" type="submit" class="submit-button" id="s" value="Submit my comment"/><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>


</form>

<p id="respond"><?php do_action('comment_form', $post->ID); ?></p>

<?php endif; // If registration required and not logged in ?>

<?php endif; // if you delete this the sky will fall on your head ?>

</div>
X-Bit ist offline   Mit Zitat antworten