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 

popup comment's template issue! help..

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



Joined: 11 Jun 2004
Posts: 12
Location: OK

PostPosted: Wed Aug 04, 2004 4:45 pm    Post subject: popup comment's template issue! help.. Reply with quote

Could someone post the code for the default (or any) popup comments template (b2commentspopup.php) that works? I'll be editing it to fit my details.

My popup comment template works somewhat, but there seems to be an issue, and I can't figure out what's wrong. I've already left another post about the issue, with no replies.

So I'm hoping you could just post the code for the default popup comments for b2commentspopup.php ... thanks in advance. You'll get a permanant link on my page too! Very Happy
_________________
Posted by : Marlana

http://brokenlove.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Thu Aug 05, 2004 10:06 am    Post subject: Reply with quote

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 on '<?php the_title() ?>'</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://www.sigg3.net/menu/index.css );
</style>
<link rel="stylesheet" type="text/css" media="print" href="http://www.sigg3.net/pics/comments.css" />
<link rel="alternate" type="text/xml" title="XML" href="<?php echo $siteurl ?>/b2rss.php" />

</head>
<body bgcolor="#FFFFFF">
<h2>Comments on</h2><h1>'<?php the_title() ?>'</h1>

<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 DESC";
$resultc = mysql_query($queryc);
if ($resultc) {
?>



<!-- you can start editing here -->

<a name="comments"></a>
<div class="menu"><br>comments:</div>

<?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_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
<?php comment_text() ?>
<br />
<?php comment_date() ?> @ <?php comment_time() ?>
</p>
<!-- /comment -->


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

?>

<div class="menu">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"]); ?>" />
   
   <p class="commentfield"><div class="commentfield">
   name:<br />
   <input style="background-color: #3399CC; color: #000000; border: solid 1 black;" type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" /><br /><br />

   email:<br />
   <input style="background-color: #3399CC; color: #000000; border: solid 1 black;" type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" /><br /><br />

   url:<br />
   <input style="background-color: #3399CC; color: #000000; border: solid 1 black;" type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" /><br /><br />

   your comment<br />
   <textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea" style="background-color: #3399CC; color: #000000; border: solid 1 black;">comment</textarea>
<br />
   <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="Go ahead!" tabindex="5" />
   </div></p>
</form>

<!-- /form -->


<p> </p>
<div align="center"><b><a href="javascript:window.close()">close this window</a></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>

</body>
</html>

_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
urbneyes



Joined: 11 Jun 2004
Posts: 12
Location: OK

PostPosted: Thu Aug 19, 2004 11:33 pm    Post subject: Reply with quote

Thanks, Sigg3.

I used parts of your template to recode mine in places where it was messed up, and it works now. Thank you again.
_________________
Posted by : Marlana

http://brokenlove.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Fri Aug 20, 2004 8:47 am    Post subject: Reply with quote

No problem:)

Glad to be of any help.
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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