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 

Include to b2 in its own directory.

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



Joined: 09 Jun 2003
Posts: 5

PostPosted: Fri Jan 09, 2004 10:38 pm    Post subject: Include to b2 in its own directory. Reply with quote

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 -->
Back to top
View user's profile Send private message
Graam



Joined: 20 Dec 2002
Posts: 133

PostPosted: Mon Mar 01, 2004 2:46 pm    Post subject: Reply with quote

You need to change the path in b2config.php to reflect where the installation is actually located.
_________________
tin-men
powered by
Back to top
View user's profile Send private message Visit poster's website
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