INVERT3D
Joined: 09 Jun 2003 Posts: 5
|
Posted: Fri Jan 09, 2004 10:38 pm Post subject: Include to b2 in its own directory. |
|
|
I used fantastico to install b2. It asked me to install it to a directory so i put /b2. Now i have edited them templates and i get my 404 page when you click on the comments link. I know why this is happening...it should say http://flip-side.org/b2/b2commentspopup.php but instead it says http://flip-side.org/b2commentspopup.php.
Another thing is when i use a php include to include b2 i get an error on my index.php on the line of the include, but then it shows the blog like normal.
here is my index template...
Code: |
<!-- // This is B2 -->
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); //private cookie check
$private = setprivate($password);
?>
<?php comments_popup_script() ?>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2();
$isprivate = isprivate($password, $private);
?>
<TABLE cellSpacing="2" cellPadding="2" width="100%">
<TD style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid" width="100%" bgColor="#FFCFAC">
<?php the_date(); ?> | <?php
if ($isprivate == 0) {
the_title();?> | <?php get_words();
}
else {
echo 'Private Entry';
}
?>
</td></table>
<TABLE cellSpacing="2" cellPadding="2" width="100%">
<TD style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid" width="100%" bgColor="#733100">
<?php
if ($isprivate == 1) {
?>
This is a private entry. To view, please enter the password in the field below:<br>
<form action="<?php echo $siteurl.'/'.$blogfilename.'?p='.$id.'&c=1&more=1'; ?>" method="POST">
<input type="password" name="private"><input type="submit" value="OK">
</form>
<?php
}
else {
the_content();
}
?>
</td></table>
<TABLE cellSpacing="2" cellPadding="2" width="100%">
<TD style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid" width="100%" bgColor="#FFCFAC"><div align="right">
<?php the_author() ?> @ <?php the_time() ?> | <?php
if ($isprivate == 0) {
comments_popup_link("Are you a Punker?", "1 Punker", "% Punkers");
}
else {
echo 'public comments disabled';
}
?>
</div>
</td></table>
<br /><br />
<?php include ("b2comments.php"); ?>
<?php } ?>
<center>
[<a href="http://cafelog.com" target="_blank"><b>b2</b></a> Rocks]
</center>
<!-- // B2 has left the building -->
|
|
|