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 -> How to ?
View previous topic :: View next topic  
Author Message
trelement



Joined: 10 May 2004
Posts: 11

PostPosted: Tue Jul 06, 2004 9:49 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

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
Sigg3



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

PostPosted: Wed Jul 07, 2004 8:50 am    Post subject: Reply with quote

body background="http://livin-lankan.vonetwork.com/b2/images/b2bgcomment.png">

the background tag should go into the css

check: http://www.w3schools.com/css/css_background.asp

and <center> is obsolete, btw:)
_________________
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
trelement



Joined: 10 May 2004
Posts: 11

PostPosted: Wed Jul 07, 2004 5:33 pm    Post subject: Reply with quote

Well, I did what you said to Siggs..
But still, No luck...Please, Help Sad

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>

<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>
<style type="text/css">
body
{
background-image:
url("http://livin-lankan.vonetwork.com/b2/images/b2bgcomment.png");
background-repeat:
no-repeat;
background-attachment:
fixed
}
</style>

</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://" : 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
trelement



Joined: 10 May 2004
Posts: 11

PostPosted: Wed Jul 07, 2004 5:56 pm    Post subject: Reply with quote

..I think I know whats wrong..

When I load up the comments pop-up page, and right click and go to properties.. it says the url is
http://www.livin-lankan.vonetwork.com/b2/index.php?p=1&c=1#comments

but I did the same on my friends pop-up comments page and this is what came up:

http://theirsite.com/b2/b2commentspopup.php?p=52&c=1
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Thu Jul 08, 2004 12:58 pm    Post subject: Reply with quote

The first one has got to do with integrated comments, not the popup:)
You've probably messed with b2commentspopup, while b2comments.php have been active.

To use the popup, simply use these ones:

in the <head> section add:
<?php comments_popup_script(400, 600) ?>
(first variable is width, the second is height)

and, in the b2 loop where you want the link to be, use:
<?php comments_popup_link("comments?", "a single comment", "% comments!") ?>


And you should avoid splitting up the css like this
<head>
<style type="text/css">
whatever: whatever
</style>
<style type="text/css">
whatever: whatever</style>
</head>

Capisce?
_________________
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 -> How to ? 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