View previous topic :: View next topic |
Author |
Message |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Tue Dec 21, 2004 5:15 am Post subject: comment links |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 909 Location: Oslo, Norway
|
|
Back to top |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Tue Dec 21, 2004 2:35 pm Post subject: |
|
|
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 -->
<?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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 909 Location: Oslo, Norway
|
Posted: Tue Dec 21, 2004 10:11 pm Post subject: |
|
|
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 |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Tue Dec 21, 2004 10:19 pm Post subject: |
|
|
It works =] Thanks so much! Sorry for not re-reading the file =\ |
|
Back to top |
|
 |
|