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 

Non-Popup comments Table Width...

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



Joined: 03 Oct 2004
Posts: 6

PostPosted: Sun Oct 10, 2004 7:04 pm    Post subject: Non-Popup comments Table Width... Reply with quote

I'm having trouble getting my comments to just show up on the same page as my blog, not in a popup. At http://remixx.net see the way when you click Comments, it pops down under the entry? I keep trying to get it to do that but I can't. I'm probably just being stupid and doing something obvious wrong, but this is the code I used ( I actually tried 2 different ones):

Code:
<?php comments_link("b2comments.php", "0 Comments", "1 Comment", "% Comment") ?>


or

Code:
<?php comments_link("0 Comments", "1 Comment", "% Comment") ?>


What am I doing wrong? When it shows up on my blog it doesn't even show up as a link, it shows as b2comments.php?p=1&c=1#comments.

Please help?


Last edited by natale on Fri Oct 15, 2004 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Mon Oct 11, 2004 9:24 am    Post subject: Reply with quote

You should use:

<a href="<?php comments_link() ?>"><?php comments_number("no comment","1 comment","% comments") ?></a>
_________________
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
natale



Joined: 03 Oct 2004
Posts: 6

PostPosted: Wed Oct 13, 2004 12:12 am    Post subject: Reply with quote

oh thanks so much!
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Wed Oct 13, 2004 8:17 am    Post subject: Reply with quote

No problem:)

There are alot of confusion about this, but the readme clearly states that the php comments_link tag only gets the adress, but no link..
_________________
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
natale



Joined: 03 Oct 2004
Posts: 6

PostPosted: Fri Oct 15, 2004 7:49 pm    Post subject: Reply with quote

Ehh... Now I'm having trouble with the width of the table.

The url is http://riotblade.org/indexx.php, just click on the comments link.

See how the tables are about 10 pixels more than the width of the frame? Any way to fix this??? No matter how big or small I make it it does that. 0.o
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Sat Oct 16, 2004 3:35 pm    Post subject: Reply with quote

I need to see your b2comments.php, pls.
_________________
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
natale



Joined: 03 Oct 2004
Posts: 6

PostPosted: Sun Oct 17, 2004 3:43 am    Post subject: Reply with quote

Code:
   <?php // Do not delete these lines
   if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2comments.php")
      die ("please, do not load this page directly");
   if (($withcomments) or ($c)) {

      $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 />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";
   $resultc = mysql_query($queryc);
   if ($resultc) {
   ?>

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

<p><div class="top">
<b>POST A COMMENT*</b>
</div>
<div class="content">

<!-- form to add a comment -->

<form action="<?php echo $siteurl; ?>/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"]); ?>" />

   

   <center><input type="text" name="author" class="textarea" value="Name" size="60" tabindex="1"
   onfocus="this.value=(this.value=='Name') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Name' : this.value;" />

<br>
   
   <input type="text" name="EMail" class="textarea" value="Email" size="60" tabindex="2"
   onfocus="this.value=(this.value=='Email') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Email' : this.value;" />
   

   <br>
   <input type="text" name="url" class="textarea" value="http://" size="60" tabindex="3"
   onfocus="this.value=(this.value=='http://url') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'http://url' : this.value;" />

      <br>
   <textarea cols="58" rows="5" name="comment" tabindex="4" class="textarea"
    onfocus="this.value=(this.value=='comments') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Comments' : this.value;" >Your comments</textarea>

<br><input type="submit" name="submit" class="buttonarea" value="Hit me!" tabindex="5" />
   </p>

</form>

<!-- /form -->

</div>


   <?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>

<a name="c<?php comment_ID() ?>"></a>
   
<!-- comment -->
<p>

<div class="top">
<b><?php comment_date() ?> @ <?php comment_time() ?></b>
</div>
<div class="content">
<?php comment_text() ?>
<p>
<b>x <?php comment_author() ?></b>
<br>
<?php comment_author_email_link("Email") ?>  <?php comment_author_url_link("Website") ?>
</div>

<!-- /comment -->


   <?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>

<!-- this is displayed if there are no pingbacks so far -->
<p>No Comments on this post so far.</p>

   <?php /* if you delete this the sky will fall on your head */ } ?>

<center><p><a href="javascript:history.go(-1)">Back to the Blog</a></b></center>

<?php // if you delete this the sky will fall on your head
}
} else {
   return false;
}
?>


Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Sun Oct 17, 2004 11:12 pm    Post subject: Reply with quote

It appears correctly in Firefox but not IE, so I'm suspecting another css issue. I do believe that sharing the .top classes might be the problem. If you make a new set of classes for the comments, without the 3pixel padding, it might be it..

I haven't seen your dollar.
_________________
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