boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

url not showing up in my comments popup

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
aitercal



Joined: 17 Dec 2003
Posts: 2

PostPosted: Wed Dec 17, 2003 11:41 am    Post subject: url not showing up in my comments popup Reply with quote

I think I deleted something, because when people post comments it shows there name, email, & comment - but not their url. I've tested it, and it didn't work.

here's my b2commentspopup.php :

<?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 HTML 4.01 Transitional//EN">
<html>
<head>
<title>CMNTS</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( ../layout2b.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>

<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 -->

<a name="comments"></a>
<div>comments</div>
<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 -->

<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() ?>
</p>
<p> </p>
<!-- /comment -->


<?php //end of the loop, don't delete
}

?>

<div>leave a comment</div>
<!-- form to add a comment -->

<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="20" tabindex="1" />

<br>


<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />


<br>

<input type="text" name="http://" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />

<br>


<textarea cols="20" rows="2" name="comment" class="textarea">comment</textarea>


<br>
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR<br />
<input type="submit" name="submit" class="buttonarea" value=" enter " tabindex="5" />
</form>
<!-- /form -->

<b>(<a href="javascript:window.close()">close</a>)</b>
<?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 } ?>
</div>
</body>
</html>



can someone please help me?

http://www.lacretia.net

there's my url if you want to give it a try.
Back to top
View user's profile Send private message Visit poster's website
aitercal



Joined: 17 Dec 2003
Posts: 2

PostPosted: Wed Dec 17, 2003 11:50 am    Post subject: Reply with quote

nevermind i should have looked at it closer

<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() ?>
</p>
<p> </p>
<!-- /comment -->


<?php //end of the loop, don't delete
}

?>

<div>leave a comment</div>
<!-- form to add a comment -->

<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="20" tabindex="1" />

<br>


<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />


<br>

<input type="text" name="http://" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />

<br>




---

thanks anyway Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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