Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Can not post ‘New Topic in this Forum’


simpleanecdote
Member

@simpleanecdote

Still got them.

I’m not a php newbie.

Not an expert, but in a comfortable place in the middle :D

I think I’ve pretty much got over all the bugs in the system.

If anyone wants my style of integration – this is what I did:

Installed bbPress in root/forums/

in header.php of forum template put the following before everything else:

<?php include('../lib/includes/header.php');//Website template ?>

in header.php of your own website:

$forumexplode = explode('/', $_SERVER);

if($forumexplode == "forums")

{

bb_feed_head();

?>

#You can also put in here you own, relative path style sheets from the main website.

<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

<?php if('rtl' == bb_get_option('text_direction')) : ?>

<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

<?php endif;

bb_head();

}

else

{

?>

Anything you want to load from normal relative path (if not forums)

<?php

}

?>

</head>

<body id="<?php ($forumexplode == "forums" ? bb_location() : ""); ?>">

in footer.php of forum template put the following after everything else:

<?php include('../lib/includes/footer.php');//Website template ?>

I also prefixed all the forum template’s XHTML id tags with forum_ so they won’t mess with my website’s structure.

After you’ve done all that, you’re free to style your forum via the css file in the templates directory like you would normally, as well as the structure via the other files.

And your website, via your own stylesheets.

Or you can load everything from either stylesheet as long as you remember to load them from their relative path in the header.

Hope this helps someone ;P

Peace everyone, hope bbPress will release a version soon which will be easier to integrate.

Because my system doesn’t really allow for easy user authentication integration on the rest of the website. Can be circumvented via regular user auth integration but that’s more work.

SMF (Simple Machines Forum) has ssi.php file which you just load into any page and everything is integrated right there and then. Maybe in future versions?

Me.

Skip to toolbar