View previous topic :: View next topic |
Author |
Message |
Jody
Joined: 12 Jun 2004 Posts: 2 Location: Glasgow
|
Posted: Sat Jun 12, 2004 2:15 am Post subject: popup Comment bckground |
|
|
I'm new to b2, i've had no problems installing, or changing the main temp but when it came to the comment popup one i had alot of problems. The main one being that i cant get the bckground to change from being white no matter how many different css's i try. Help please.
Code: | <?php /* Don't remove this line, it calls the b2 function files ! */
$blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) { start_b2();
?><!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>
<title><?php echo $blogname ?> - comments on '<?php the_title() ?>'</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<style type="text/css">
<!--
body {background-color:#141414}
-->
</head>
<body>
<div id="contentcomments">
<div class="storyContent">
<?php
$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 />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<!-- you can start editing here -->
<!-- form to add a comment -->
<form action="b2comments.post.php" method="post">
<div align="center">
<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"]); ?>" />
<br />
<input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" />
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
<br />
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="40" tabindex="3" />
<br />
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
</div>
<p align="center" class="commentfield">
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" />
<font color="#CCCCCC" size="1" face="verdana">Auto-BR (line-breaks become <br> tags)</font><br />
<input type="submit" name="submit" class="buttonarea" value="ok" tabindex="5" />
</p>
</form>
<!-- /form -->
<a name="comments"></a>
<p><strong><span style="color: #0099CC"><font color="#CCCCCC" size="1" face="tahoma">Comments</font></span></strong><br />
<br />
<?php // these lines are b2's motor, do not delete
while($rowc = mysql_fetch_object($resultc)) {
$commentdata = get_commentdata($rowc->comment_ID);
?>
<a name="c<?php comment_ID() ?>"></a>
<!-- comment -->
</p>
<p> <b>
<?php comment_author() ?>
<?php comment_author_email_link("email", " - ", "") ?>
<?php comment_author_url_link("url", " - ", "") ?>
</b> <br />
<?php comment_text() ?>
<br />
<?php comment_date() ?>
@
<?php comment_time() ?>
<br />
<br />
<!-- /comment -->
<?php //end of the loop, don't delete
}
?>
</p>
<div><b><span style="color: #0099CC"><font color="#CCCCCC" size="1" face="tahoma">::</font></span> <font color="#CCCCCC" size="1" face="tahoma"><a href="javascript:window.close()">close
this window</a></font></b></div>
<?php // if you delete this the sky will fall on your head
}
?>
</div>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?>
</div>
<p align="center" class="centerP"> <font color="#CCCCCC" size="1" face="tahoma">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</font> </p>
</body>
</html> |
_________________ Jody x |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 441 Location: Oslo, Norway
|
Posted: Mon Jun 14, 2004 10:59 am Post subject: |
|
|
You could "overrun" the problem by making a 1x1 pixel gif image containing the colour you want, upload it and add a backgroun-image to your css files. 1x1 px images takes 0.0000001 seconds to load:P
Just an idea. _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
Jody
Joined: 12 Jun 2004 Posts: 2 Location: Glasgow
|
Posted: Wed Jun 16, 2004 4:56 am Post subject: |
|
|
i figured out that if i removed the xss tag, it works _________________ Jody x |
|
Back to top |
|
 |
|