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 

comment links

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



Joined: 01 Dec 2004
Posts: 20

PostPosted: Tue Dec 21, 2004 5:15 am    Post subject: comment links Reply with quote

When I click on the comments thingy, the first one opens into my layout and its fine. The other 2 open up as new pages. How do I fix this? Well =\ it works fine in IE but opens up as a new page in Mozilla.

http://lana.vibical.com
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Tue Dec 21, 2004 9:04 am    Post subject: Reply with quote

What code(s) are you using?
And - it is supposed to _call_ the post in "comment mode" (&c=1) and that may be the "new page" you're talking about. If you mean a new window, there's something wrong.

Anywho.. paste the codes pls.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Tue Dec 21, 2004 2:35 pm    Post subject: Reply with quote

Quote:
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>

<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date(); ?>

<p>
<?php permalink_anchor(); ?>

<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
Posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a>

<?php comments_popup_link("Comment", "[1]Comment", "[%]Comments") ?>

</p>

<?php include ("b2comments.php"); ?>


<!-- // this is just the end of the motor - don't touch that line either Smile -->
<?php } ?>

</body>
</html>


It doesn't open in a new window. It opens up in the same one, but only the comments page shows up and not the rest of the layout. I don't get why it's fine in IE and not in Mozilla
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Tue Dec 21, 2004 10:11 pm    Post subject: Reply with quote

You're calling both scripts, no wonder:)
This is a common error. See the stuff marked in red?

<?php comments_popup_link("Comment", "[1]Comment", "[%]Comments") ?>

That whole line should be

<a href="<?php comments_link() ?>"><?php comments_number("no comment","1 comment","% comments") ?></a>

Please check out the readme!
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Tue Dec 21, 2004 10:19 pm    Post subject: Reply with quote

It works =] Thanks so much! Sorry for not re-reading the file =\
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