| |||||||
| Registrieren | Lexikon | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
![]() |
| | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| PostRank: 0 ![]() Registriert seit: 18.02.2006
Beiträge: 4
| Ausgabe der Kommentare in GROßSCHRIFT hallo, habe folgendes problem: jeder kommentar wird auf der seite in GROßSCHRIFT ausgegeben, code: 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
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<ol id="comments">
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>">
<cite>
<span class="author"><?php comment_author_link() ?></span>
<span class="date"><?php comment_date('n.j.y') ?> / <?php comment_date('ga') ?></span>
</cite><font color="#000000">
<div class="content">
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<?php comment_text() ?>
</div>
<div class="clear"></div></font><br>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?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 class="nocomments"></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="comment-form">
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <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">logout »</a></p>
<?php else : ?>
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="60"><label class="text">Name:<?php if ($req) echo " (required)"; ?></label><br /></td>
<td><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" class="textfield" tabindex="0" /></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="60"><label class="text">eMail:<?php if ($req) echo " (required)"; ?></label><br /></td>
<td><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" class="textfield" tabindex="2" /></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="60"><label class="text">Website:</label><br /></td>
<td><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" class="textfield" tabindex="3" /></td>
</tr>
</table>
<?php endif; ?>
<textarea name="comment" id="comment" class="commentbox" rows="5" tabindex="10"></textarea>
<div class="formactions">
<span style="visibility:hidden"></span>
<br>
<input type="submit" name="submit" tabindex="55" class="submit" value="Add your comment" />
</div>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
|
| | |
| | #2 (permalink) |
| WPD-Team ![]() Registriert seit: 20.08.2005 Ort: Berlin
Beiträge: 11.003
| Der Übeltäter ist in deiner style.css, Zeile 273: text-transform: uppercase;
__________________ Wordpress FAQ (Häufig gestellte Fragen) | Themepool "Eine gut gestellte Frage ist schon halb beantwortet." |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |