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 

Modifying Popup Comment Page

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



Joined: 10 May 2004
Posts: 11

PostPosted: Tue Jul 06, 2004 9:13 pm    Post subject: Modifying Popup Comment Page Reply with quote

Alrite, Well, I want to make a background for the Pop up Comment back and just a header kinna thing...
Nothing is working! Im sooo damn frustrated!
lol
All the time, I see the stupid white background, not the background I made Sad

heres what I got in b2commentspopup.php:

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();
?>
<html>
<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, td, table, p
{font-family: Times New Roman; font-size: 12px; color="#000000"; font-style: italic;}
A:link   {font-weight: bold; text-decoration: none; color: #000000;}
A:visited {font-weight: bold; text-decoration: none; color: #000000;}
A:hover   {font-weight: none; color: #000000;}
A:active  {text-decoration: none; color: #000000;}
--></style>
<style type="text/css">

<!--
BODY {
scrollbar-face-color: #DA2B29;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #DA2B29;
scrollbar-darkshadow-color: #DA2B29;
scrollbar-shadow-color: #000000;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #DA2B29;
}
-->
</style>
<style>
A.menulink {
display: block;
width: 200px;
text-align: center;
text-decoration: none;
font-family: Times New Roman;
font-size:12px;
font-style: italic;
color: #DA2B29;
BORDER: ;
border: solid 1px #DA2B29;
}

A.menulink:visited {
background-color:#000000;
color=#DA2B29;
border: solid 1px #DA2B29;


}

A.menulink:hover {
border: solid 1px #000000;
background-color:#DA2B29;
font-family: Times New Roman;
font-size:12px;
font-style: italic;
color: #000000;

}


</style>

<script>

/*
CSS Menu highlight- By Marc Boussard ([email protected])
Modified by DD for NS4 compatibility
Visit http://www.dynamicdrive.com for this script
*/

var ns4class=''
</script>
</head>

<body scroll="auto"; body background="http://livin-lankan.vonetwork.com/b2/images/b2bgcomment.png">
<center>
<IMG SRC="http://livin-lankan.vonetwork.com/b2/images/commentstitle.gif">
<div id="contentcomments">

<div class="storyContent">

<?php
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "Name/Nic" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "E-Mail Addy" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "WWW" : 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
}

?>
<br><br>
<div><b><font size=1; color="000000"; face="verdana">Leave a Comment:</b></font></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">
   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>

PLEAAAAAAAASE HELP!
Back to top
View user's profile Send private message
fifaifo



Joined: 16 Mar 2004
Posts: 1

PostPosted: Wed Jul 07, 2004 6:25 am    Post subject: original codes for b2comments.php and b2commentspopup.php Reply with quote

Unfortunately I deleted the zip file containing all the original b2 files so now I can't figure out what's wrong with the code for b2comments.php and b2commentspopup.php which i edited. It used to work before so i'm quite sure I messed up the html. Can someone please give me the original codes for these two files so I can start from scratch again?? Many thanks in advance.

also.. does anyone know where I can download the b2 files.. I can't find them anymore.
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