Hi,
Mein Wordpress-Theme hat momentan ein echt hartes Problem =(
Egal von welchem Post ich einen Kommentar abschicke, dieser wird dann auf ALLEN anderen Posts auch angezeigt, das heißt also ALLE Comments werden in JEDEM Post angezeigt >__>
Beispiele:
A4F VIDEO :: GESCHLOSSENE BETA He Said She Said
A4F VIDEO :: GESCHLOSSENE BETA test
A4F VIDEO :: GESCHLOSSENE BETA Hallo Welt!
Versucht es selber! Ihr werdet merken, das ihr in jedem Post euren Comment bewundern könnt >__>
Ich hoffe IRGENDWER da draußen weiß wieso >__>
Hier der comments.php Quellcode:
PHP
<?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; ?>
<div style="margin-top:17px;">
<span style="color:#615F5F;font-size:15px;">Kommentare</span><span style="font-weight:normal;font-size:15px;"> (<?php comments_number(__('0'), __('1'), __('%')); ?>) </span>
</div>
<?php if ( $comments ) : ?>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<table style="border-top:solid #DADADA 1px;width: 100%;">
<tr>
<td class="commentsauthor" valign="top" style="width: 100px" align=""><?php $urlHome = get_option('home'); echo get_avatar( $comment, $size='70', $default = $urlHome . '/wp-content/themes/a4fVIDEO/images/avatar.png' ); ?><br><a style="font-weight:normal;font-style:italic;" href=""> <?php comment_author() ?> </a> </td>
<td class="comments" valign="top" align="left"><div><span style="font-weight:normal;color:#00b1dd;"> <?php comment_date() ?></span></div><div style="font-weight:normal;font-size:10px;"><?php comment_text() ?></div>
<div class="clearfloat"></div>
</td>
</tr>
</table>
<?php endforeach; ?>
</ol>
<!--ende #comments-->
<?php else : // If there are no comments yet ?>
<p><?php _e('Keine Kommentare bis jetzt!'); ?></p>
<?php endif; ?>
</p>
<div id="commentstyle">
<?php if ( comments_open() ) : ?>
<h3 id="postcomment"><?php _e('Kommentar hinterlassen'); ?></h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php printf(__('<a href="wp-register.php">Anmelden</a> oder <a href="%s">Einloggen</a> um einen Kommentar zu hinterlassen!'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p>
<?php else : ?>
<input class="farbe" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label>
<br><br>
<input class="farbe" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label>
<br><br>
<input class="farbe" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small><?php _e('Website'); ?></small></label>
<br><br>
<?php endif; ?>
<p><textarea class="farbe" name="comment" id="comment" cols="30" rows="5" tabindex="4"></textarea></p>
<p><input class="farbe" name="submit" type="submit" id="submit" tabindex="5" value="<?php echo attribute_escape(__('Submit Comment')); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form></div>
<?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