PDA

Voir la version complète : Code : espace qui ne se supprime pas


Mystic Matt
07/03/2006, 14h44
Bonjour à tous,

Voilà j'ai un tout petit problème avec mon wordpress.
Dans ma boite de commentaires, je voudrais que ceux-ci apparaissent de cette manière :
- posteur
- message
- date & heure

Mais cela apparait comme ça :
- posteur
- message
- rien
_date & heure

Et j'aimerai effacer ce blanc. J'ai eu le même problème dans mon index, mais en insérant un top-margin=0 dans la css, cela a été réglé, mais là ça ne change rien.

Comment dois-je m'y prendre ?

Voici mon code



<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<style>
<!--select {font-family: tahoma; font-weight: normal; font-size:7pt; color:#000000}



textarea, input{
font-family: tahoma;
font-size: 7pt;
color: #000000;
background: transparent;
border-style: normal;
border-width: 1px;
border-color: #000000;


}-->

<!--body {
color: #000000;
font-family: tahoma;
font-size:7pt;
text-align:justify;
background-color: transparent;
background-attachment: fixed;
cursor:default;
font-weight: none;
line-height:98%;
letter-spacing:0px
direction:rtl;

}-->


<!--body tr, td, font {
color: #000000;
font-family: tahoma;
background-color: transparent;
font-size:7pt;
text-align:justify;
cursor:default;
font-weight: lighter;
line-height:95%pt;
letter-spacing:0px
direction:rtl;

}-->




}--


.input {
font-family: tahoma;
font-size:7pt;
color: #000000;
background-color: transparent;
border-style: solid;
border-width: 1 1 1 1;
border-color: #EE89BC;
}

p {
margin-top: 0;
}

.button {
font-family: tahoma;
font-size:7pt;
color: #000000;
background-color: transparent;
border-style: solid;
border-width: 1 1 1 1;
border-color: #EE89BC;

}-->






body
{

scrollbar-base-color: #FF9900;
scrollbar-track-color: #FF9900;
scrollbar-face-color: #FF9900;
scrollbar-highlight-color: #FF9900;
scrollbar-3dlight-color: #FF9900;
scrollbar-darkshadow-color: #FF9900;
scrollbar-shadow-color: #FF9900;
scrollbar-arrow-color: #000000;
}

#ziou
{
background-color: #000000;
color: #FFFFFF;
text-align: right;
font-family: tahoma;
font-size: 7pt;
}

<!--
body
{
scrollbar-base-color: #FF9900;
scrollbar-track-color: #FF9900;
scrollbar-face-color: #FF9900;
scrollbar-highlight-color: #FF9900;
scrollbar-3dlight-color: #FF9900;
scrollbar-darkshadow-color: #FF9900;
scrollbar-shadow-color: #FF9900;
scrollbar-arrow-color: #000000;


}
-->


<!--a:link{color: ???#EE89BC; text-decoration:none}-->
<!--a:visited{color:#EE89BC; text-decoration:none}-->
<!--a:hover{COLOR: #EE89BC; background-color:#000000; text-decoration:italic; font-weight:none }-->


</style>
<title><?php echo get_settings('blogname'); ?> - Comments on <?php the_title(); ?></title>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />


</head>
<body>
<?php if ('open' == $post->ping_status) { ?>
<?php } ?>

<?php
// this line is WordPress' motor, do not delete it.
$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';
$comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
$comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';
$comments = get_approved_comments($id);
$post = get_post($id);
if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
echo(get_the_password_form());
} else { ?>

<?php if ($comments) { ?>
<div >
<?php foreach ($comments as $comment) { ?>
<!-- comment -->
<b>
<?php comment_author() ?>
<?php comment_author_email_link("email", " - ", "") ?>
<?php comment_author_url_link("url", " - ", "") ?>
</b>
<?php comment_text() ?>
<br />
<?php comment_date() ?>
@
<?php comment_time() ?>
<br />
</div>
<?php } // end for each comment ?>

<?php } else { // this is displayed if there are no comments so far ?>

<p>Pas de commentaires encore.
<?php } ?>
<?php if ('open' == $post->comment_status) { ?>
</p>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<br />
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author">Name</label>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />
<br />


<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<label for="email">E-mail</label>
<br />


<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<label for="url"><acronym title="Uniform Resource Identifier">URI</acronym></label>
<br />


<label for="comment">Your Comment</label>
<br />
<textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>


<br />
<input name="submit" type="submit" tabindex="5" value="Say It!" />
<br />
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php } else { // comments are closed ?>
<p>Sorry, the comment form is closed at this time.</p>
<?php }
} // end password check
?>

<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>

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

<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php //} ?>
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>Wordpress</strong></a></cite></p>
<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
<script type="text/javascript">
<!--
document.onkeypress = function esc(e) {
if(typeof(e) == "undefined") { e=event; }
if (e.keyCode == 27) { self.close(); }
}
// -->
</script>
</body>
</html>


D'avance merci

Mystic Matt
07/03/2006, 18h08
Quelqu'un pour m'aider, svp ? c'est assez urgent, merci