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 

Comments Form

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



Joined: 28 Sep 2004
Posts: 29

PostPosted: Mon Nov 22, 2004 7:25 pm    Post subject: Comments Form Reply with quote

I can't seem to figure out how to get the form to change for my pop up comments. Here's the link:

http://addickt3d.net/b2/b2commentspopup.php


Here's the code:

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="reply-to" content="[email protected]" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />

<style type="text/css">
html {
scrollbar-track-color: #282D4A;
scrollbar-face-color: #282D4A;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #282D4A;
scrollbar-darkshadow-color: #694501;
scrollbar-shadow-color: #FFFFFF;
scrollbar-arrow-color: #D6DCF6;
}

<!--
A:link {color:#FFFFFF};}
A:visited {color:#FFFFFF;}
A:active {color:#FFFFFF;}
A:hover{color:#282D4A;
background color:#D6DCF6}

}
-->
<!--
body {background-color:#282D4A}
-->
<!--
body,tr,td, h6, p, li
{font-size: 8pt;
font-family: times new roman;
color:#D5DAF7;
line-height:12px;
letter-spacing:0pt;
-->

<!--
body,tr,td, h6, p, li
{font-size: 8pt;
font-family: times new roman;
color:#D5DAF7;
line-height:12px;
letter-spacing:0pt;
-->

<!--
BODY
{background-image:url(none);
background-attachment:fixed;
background-color:#282D4A}
-->

<!-- h6
{font-size: 8pt;
font-weight:normal}
-->

<!--
input, textarea
{color: #D6DCF6;
background: #282D4A;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
font-family: times new roman;
text-align: left;
border-width: 1px;
border-style: solid;
border-color:#282D4A;
filter: alpha(opacity=100)}
 -->

<!--
b {color: #6C79AD;}
i {color: #FFFFFF;}
u {color: #D0D2D8;}
strike {color: #D0D2D8;}
-->
</style>

</head>
<body>



<style type="text/css" media="screen">
@import url( layout2b.css );
</style>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="alternate" type="application/rdf+xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
</head>
<body>
<div id="header"><a href="" title="<?php echo $blogname ?>"><?php echo $blogname ?></a></div>

<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"])) ? "http://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>
<p> </p>
<div><strong><span style="color: #0099CC">::</span> comments</strong></div>
<p> </p>

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


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

?>

<div><strong><span style="color: #0099CC">::</span> leave a comment</strong></div>
<p> </p>


<!-- 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">
   name<br />
   <input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1"
   onfocus="this.value=(this.value=='name') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'name' : this.value;" />
   </p>

   <p class="commentfield">
   email<br />
   <input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2"
   onfocus="this.value=(this.value=='email') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'email' : this.value;" />
   </p>

   <p class="commentfield">
   url<br />
   <input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3"
   onfocus="this.value=(this.value=='http://url') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'http://url' : this.value;" />
   </p>

   <p class="commentfield">
   your comment<br />
   <textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea"
    onfocus="this.value=(this.value=='comment') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'comment' : this.value;" >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="ok" tabindex="5" />
   </p>

</form>

<!-- /form -->


<p> </p>
<div><b><span style="color: #0099CC">::</span> <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>

<p class="centerP">
[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</p>


</body>
</html>
Back to top
View user's profile Send private message
prolific



Joined: 28 Sep 2004
Posts: 29

PostPosted: Mon Nov 22, 2004 7:54 pm    Post subject: Reply with quote

I fixed it. But if you happen to have the same problem. DOUBLE CHECK your css or create a new .css file.

Then after that go into your b2popupcomments.php file and redirect your css link to the new one.
Back to top
View user's profile Send private message
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