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 

?php comments_popup_link HELP PLEASE

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



Joined: 10 Dec 2003
Posts: 2

PostPosted: Wed Dec 10, 2003 3:01 pm    Post subject: ?php comments_popup_link HELP PLEASE Reply with quote

Hi everyone , first time poster here.

Been Setting up B2 for about a week now. Come accross a problem with my comments. The Comments link at the bottom of my posts takes me to the same index.php with just that post and the comments below it on the page (ie c=1) whereas it should be coming up in the popup box. Before i setup the template it worked fine so i can only assume its someting ive done.


Heres the page code


<html>

<head>
<link REL="stylesheet" TYPE="text/css" href="187style.css">
<title>[187] - Home/News</title>
</head>

<body text="#DF0000" bgcolor="#000000">

<div align="center" style="width: 770; height: 353">
<center>
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="770" id="AutoNumber2">
<tr>
<td>
<p align="center">
<img border="0" src="Banner.jpg" width="720" height="154"></td>
</tr>
</table>
</div>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="770" id="AutoNumber1" height="37">
<tr>
<td width="100" bgcolor="#DF0000" height="18">
<p align="center"><b><font size="2" color="#000000" face="Arial">
NAVIGATION</font></b></td>
<td width="3" height="18"></td>
<td bgcolor="#DF0000" height="18"> </td>
<td width="3" height="18"></td>
<td width="100" bgcolor="#DF0000" height="18"> </td>
</tr>
<tr>
<td width="100" height="18">
<p align="center"></td>
<td width="3" height="18"></td>
<td height="18">

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

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


<?php the_date("","<h2>","</h2>"); ?> <span style="font-size: 6pt">
213.232.110.28:27015</span><div class="storyTitle"><?php the_title(); ?>
<a href="?cat=<?php the_category_ID() ?>" title="category: <?php the_category() ?>"><span class="storyCategory">[<?php the_category() ?>]</span></a>  <span class="storyAuthor"><?php the_author() ?> - <?php the_author_email() ?></span><span class="storyCategory"> @ <?php the_time() ?></span></a>
</div>

<div class="storyContent">
<?php the_content(); ?>

<div class="rightFlush">
<?php link_pages("<br />Pages: ","<br />","number") ?>
<?php comments_popup_link("Comments (0)", "Comments (1)", "Comments (%)") ?>
<!-- this includes the comments and a form to add a new comment -->
<?php include ("b2comments.php"); ?>
</div>

</div>


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


</div>

<font size="1">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]</font>
</p>

<h4>archives:</h4>

<?php include("b2archives.php"); ?>
<br />


<a href="b2login.php">login</a><br />
</div>
</font></td>
<td width="3" height="18"></td>
<td width="100" height="18" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3" height="31">
<tr>
<td width="100%" height="16">
<p align="center"><u><font face="Verdana" style="font-size: 8pt">
Servers</font></u></td>
</tr>
<tr>
<td width="100%" height="5">
<p align="center"></td>
</tr>
<tr>
<td width="100%" height="12">
<p align="center"><font face="Verdana" style="font-size: 7pt">UK2 181</font></td>
</tr>
<tr>
<td width="100%" height="12" valign="top">
<p align="center"><span style="font-size: 6pt">213.232.110.28:27015</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="18"></td>
<td colspan="3" height="18"></td>
<td height="18"></td>
</tr>
</table>
</center>
</div>

</body>

</html>

Ive been through it several times and i for the life of me cant see the problem. The page is viewable here http://www.187.org.uk.

Any help you could give would be appreciated, and i apolagise if this has been asked before, casue i couldnt see it in the search.

Many THanks

Steve
Back to top
View user's profile Send private message
yann



Joined: 05 Dec 2003
Posts: 10
Location: London

PostPosted: Wed Dec 10, 2003 3:47 pm    Post subject: Reply with quote

Hi,

I think that's because you removed the
Code:

<?php comments_popup_script() ?>


in the headers part.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bloggster



Joined: 10 Dec 2003
Posts: 2

PostPosted: Wed Dec 10, 2003 4:05 pm    Post subject: Reply with quote

Thansk for the reply

placed the line <?php comments_popup_script() ?> in the head correct?

got this

Fatal error: Call to undefined function: comments_popup_script() in /home/power187/public_html/news/index.php on line 6

So obviously it dont know what the comments_popup_script is

So if it needs defining, where and how?

Steve
Back to top
View user's profile Send private message
yann



Joined: 05 Dec 2003
Posts: 10
Location: London

PostPosted: Wed Dec 10, 2003 5:57 pm    Post subject: Reply with quote

Oups sorry I forgot a few things...

Leave the
Code:

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


at the beggining of the file...
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