View previous topic :: View next topic |
Author |
Message |
urbneyes
Joined: 11 Jun 2004 Posts: 12 Location: OK
|
Posted: Wed Aug 04, 2004 5:31 am Post subject: Comment problem! Help me!! |
|
|
http://brokenlove.org/b2
My b2 is located ^ there. The problem is that I can't view my comments without commenting first - and neither can anyone else. Can you help? The code is below! thanks in advance to those that reply.
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>++Comments</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="[email protected]" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<style type="text/css" media="screen">
@import url( http://brokenlove.org/bw.css );
</style>
<link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
<link rel="alternate" type="text/xml" title="XML" href="<?php echo $siteurl ?>/b2rss.php" />
</head><body><body background="http://host.never-stops.com/marlana/brokenlove/laceey.gif">
<?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 -->
<?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>
<b><?php comment_author() ?> <?php comment_author_url_link("url", " - ", "") ?></b>
<br><?php comment_text() ?><br><b><?php comment_date() ?> @ <?php comment_time() ?></b>
<!-- /comment -->
<?php //end of the loop, don't delete
}
?>
<p><!-- form to add a comment -->
<center>
<form action="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"]); ?>" />
<input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="40" tabindex="1" /><br>
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="40" tabindex="2" /><br>
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="40" tabindex="3" /><br>
<textarea cols="20" rows="5" name="comment" tabindex="4" class="textarea">comments</textarea><br>
<input type="submit" name="submit" class="buttonarea" value="submit" tabindex="5" /> or <input type="reset" name="reset" class="buttonarea" value="reset" tabindex="5" />
</form></center>
<!-- /form -->
<?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 } ?>
</font>
</body>
</html> |
_________________ Posted by : Marlana
http://brokenlove.org |
|
Back to top |
|
 |
Brigitte
Joined: 04 Aug 2004 Posts: 16 Location: California~
|
Posted: Mon Aug 09, 2004 5:49 am Post subject: |
|
|
I just commented, and everything seems fine, but then again, someone already commented. Hmm, maybe try pasting the PHP/HTML to the index.php if you still have problems. _________________ ~ Brigitte ~ |
|
Back to top |
|
 |
urbneyes
Joined: 11 Jun 2004 Posts: 12 Location: OK
|
Posted: Thu Aug 19, 2004 11:36 pm Post subject: |
|
|
Thanks anyway, but I've already fixed the problem.  _________________ Posted by : Marlana
http://brokenlove.org |
|
Back to top |
|
 |
|