 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
Damita
Joined: 26 Feb 2003 Posts: 9 Location: England
|
Posted: Tue Jul 13, 2004 10:07 am Post subject: Comment boxes and CSS?? |
|
|
No matter how hard I try I can not seem to get CSS into my comment box to change the colours and things. Any ideas where I should be the css line? Thank you soooo much!!!
Quote: | <?php // Do not delete these lines
if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2comments.php")
die ("please, do not load this page directly");
if (($withcomments) or ($c)) {
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<html>
<head>
<title>||| GAZBLOG |||</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="http://black-kitten.net/outside.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- you can start editing here -->
<a name="comments"></a>
<p> </p>
<div><strong><span style="color: #000000">::</span> comments</strong></div>
<p> </p>
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>
<a name="c<?php comment_ID() ?>"></a>
<!-- comment -->
<center><table width="200" bgcolor="#7EC318" cellspacing="1" cellpadding="6" align="center"></tr></td>
<td bgcolor="#F3FFE0" style="border: 1PX SOLID; background-image:url('green.gif');">
<p>
<b><?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
></td>
<tr><TD bgcolor="#FFFFD8"><font face="tahoma" size="1"><p align="justify">
<?php comment_text() ?>
<br />
</td></tr></td></tr>
<td bgcolor="#F3FFE0" style="border: 1PX SOLID; background-image:url('green.gif');"></center>
<?php comment_date() ?> @ <?php comment_time() ?>
</p>
<p> </p>
</center></td></table>
<p>
<!-- /comment -->
<?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>
<!-- this is displayed if there are no pingbacks so far -->
<p>No Comment on this post so far.</p>
<?php /* if you delete this the sky will fall on your head */ } ?>
<div><strong><span style="color: #000000">::</span> leave a comment</strong></div>
<p> </p>
<!-- form to add a comment -->
<form name="post" action="<?php echo $siteurl; ?>/b2comments.post.php" method="post">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" />
<p class="commentfield">
your comment<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
<br />
<table width="2000" bgcolor="#7EC318" cellspacing="1" cellpadding="6" align="center"></tr></td>
<td bgcolor="#F3FFE0"><script language="JavaScript" type="text/javascript">
function emoticon(theSmilie) {
theSmilie = ' ' + theSmilie + ' ';
if (document.post.comment.createTextRange && document.post.comment.caretPos) {
var caretPos = document.post.comment.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;
} else {
document.post.comment.value += theSmilie;
}
document.post.comment.focus();
theSmilie = '';
}
</script>
</td></table>
<?php
$newrow = 0;
$prev_val="";
asort($b2smiliestrans);
while (list ($key, $val) = each ($b2smiliestrans)) {
if($prev_val and $val==$prev_val) { }
else if(!$prev_val or ($prev_val and $val!=$prev_val)){
?>
<img src="<?php echo "$smilies_directory/$val"; ?>" alt="<?php echo $key; ?>" border="0" onclick="emoticon('<?php echo $key; ?>')" onmouseover="style.cursor='hand'" />
<?php
$newrow++;
if($newrow == 11) { //new row after specified number of smilies
echo '<br />';
$newrow = 0;
}
}
$prev_val = $val;
}
?>
</p>
<p class="commentfield">
email<br />
<input type="text" name="email" class="textarea" size="20" maxlength=100; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#020305; color:#000000; border:1px solid #000000;" onMouseOver="this.focus();" onFocus="this.select();" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
</p>
<p class="commentfield">
url<br />
<input type="text" name="url" class="textarea" size="20" maxlength=100; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#020305; color:#000000; border:1px solid #000000;" onMouseOver="this.focus();" onFocus="this.select();" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />
</p>
<p class="commentfield">
your comment<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea" cols="33" rows="7" input type="text" size="20" maxlength=100 value="comment"; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#FFFFFF; color:#947239; border:1px solid #000000;">comment</textarea>
</p>
<p class="commentfield">
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR (line-breaks become <br> tags)<br />
<input type="submit" name="submit" class="buttonarea" value="Send!"; face="tahoma,verdana" style="font-size: 7pt; font-family: Verdana; background-color:#020305; color:#000000; border:1px solid #000000;" value="ok" tabindex="5" />
</p>
</form>
<!-- /form -->
<p> </p>
<div><b><span style="color: #000000">::</span> <a href="javascript:history.go(-1)">return to the blog</a></b></div>
<?php // if you delete this the sky will fall on your head
}
} else {
return false;
}
?>
</body>
</html>
|
|
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 441 Location: Oslo, Norway
|
|
Back to top |
|
 |
Damita
Joined: 26 Feb 2003 Posts: 9 Location: England
|
Posted: Tue Jul 13, 2004 12:13 pm Post subject: |
|
|
All fixed but it will not show what I have changed, the css is now working (I found out it was on a different page). Now the comment will not be in a box or the where you added a comment those boxes are not right there is no background image also they smilies iwll not go into a box. Any reason why???
Quote: | <?php // Do not delete these lines
if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2comments.php")
die ("please, do not load this page directly");
if (($withcomments) or ($c)) {
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<!-- you can start editing here -->
<a name="comments"></a>
<p> </p>
<div><strong><span style="color: #000000">::</span> comments</strong></div>
<p> </p>
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>
<a name="c<?php comment_ID() ?>"></a>
<!-- comment -->
<center><table width="200" bgcolor="#000000" cellspacing="1" cellpadding="6" align="center"></tr></td>
<td bgcolor="#F3FFE0" style="border: 1PX SOLID; background-image:url('green.gif');">
<p>
<b><?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
></td>
<tr><TD bgcolor="#FFFFFF"><font face="tahoma" size="1"><p align="justify">
<?php comment_text() ?>
<br />
</td></tr></td></tr>
<td bgcolor="#F3FFE0" style="border: 1PX SOLID; background-image:url('green.gif');"></center>
<?php comment_date() ?> @ <?php comment_time() ?>
</p>
<p> </p>
</center></td></table>
<p>
<!-- /comment -->
<?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>
<!-- this is displayed if there are no pingbacks so far -->
<p>No Comment on this post so far.</p>
<?php /* if you delete this the sky will fall on your head */ } ?>
<div><strong><span style="color: #000000">::</span> leave a comment</strong></div>
<p> </p>
<!-- form to add a comment -->
<form name="post" action="<?php echo $siteurl; ?>/b2comments.post.php" method="post">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" />
<p class="commentfield">
your comment<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
<br />
<table width="2000" bgcolor="#7EC318" cellspacing="1" cellpadding="6" align="center"></tr></td>
<td bgcolor="#F3FFE0"><script language="JavaScript" type="text/javascript">
function emoticon(theSmilie) {
theSmilie = ' ' + theSmilie + ' ';
if (document.post.comment.createTextRange && document.post.comment.caretPos) {
var caretPos = document.post.comment.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;
} else {
document.post.comment.value += theSmilie;
}
document.post.comment.focus();
theSmilie = '';
}
</script>
</td></table>
<?php
$newrow = 0;
$prev_val="";
asort($b2smiliestrans);
while (list ($key, $val) = each ($b2smiliestrans)) {
if($prev_val and $val==$prev_val) { }
else if(!$prev_val or ($prev_val and $val!=$prev_val)){
?>
<img src="<?php echo "$smilies_directory/$val"; ?>" alt="<?php echo $key; ?>" border="0" onclick="emoticon('<?php echo $key; ?>')" onmouseover="style.cursor='hand'" />
<?php
$newrow++;
if($newrow == 11) { //new row after specified number of smilies
echo '<br />';
$newrow = 0;
}
}
$prev_val = $val;
}
?>
</p>
<p class="commentfield">
email<br />
<input type="text" name="email" class="textarea" size="20" maxlength=100; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#FFFFFF; color:#000000; border:1px solid #000000;" style="border: 1PX SOLID; background-image:url('images/green.gif');" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
</p>
<p class="commentfield">
url<br />
<input type="text" name="url" class="textarea" size="20" maxlength=100; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#FFFFFF; color:#000000; border:1px solid #000000;" style="border: 1PX SOLID; background-image:url('images/green.gif');" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />
</p>
<p class="commentfield">
your comment<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea" cols="33" rows="7" input type="text" size="20" maxlength=100 value="comment"; face="tahoma,verdana" style="font-size: 7pt; line-height:11px; font-family: Verdana; background-color:#E5E5E5; color:#000000; border:1px solid #000000;">comment</textarea>
</p>
<p class="commentfield">
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR (line-breaks become <br> tags)<br />
<input type="submit" name="submit" class="buttonarea" value="Send!"; face="tahoma,verdana" style="font-size: 7pt; font-family: Verdana; background-color:#FFFFFF; color:#000000; border:1px solid #000000;" style="border: 1PX SOLID; background-image:url('images/green.gif');" value="ok" tabindex="5" />
</p>
</form>
<!-- /form -->
<p> </p>
<div><b><span style="color: #000000">::</span> <a href="javascript:history.go(-1)">return to the blog</a></b></div>
<?php // if you delete this the sky will fall on your head
}
} else {
return false;
}
?>
</body>
</html>
|
|
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 441 Location: Oslo, Norway
|
Posted: Tue Jul 13, 2004 7:22 pm Post subject: |
|
|
1) You're calling two css files
http://digital-damita.net/all.css
and outter.css
...whatever!
2) the <link rel> to outter.css is in <body>, should be in <head>
3) What box are you speaking of, concerning the smileys? (Smiley-pixels are annoying and take some patience to load. Drop 'em.)
4) You shouldn't smoke pre-made cigarettes. It's bad for you. Roll yourself:) _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|