How to call the WP header from PunBB
-
I’ve been setting up a site with both a blog and a BBS. Now that WP has support for a static front page, I decided it would be useful for the simple content management that my site requires, and since I’m already using it on my personal blog, there’s zero learning curve. I finally got everything on the blog and PunBB visually consistent, and it all looks marvelous, but I’m running into a roadblock trying to get my WP header to display above the BBS, and preventing me from getting that integrated look that I’m after. I’ve scoured the web for a solution, but the best I could come up with is copying the html and relevant styles from my wp stylesheet to fudge it. This is less than ideal, obviously, because every time I add a page to my site, I have to go in and manually add it in the BBS as well. (I’m using a heavily modified version of the RoundFlow theme, which lists pages as a horizontal navbar.)
Let me be clear: I don’t know the slightest bit about php. I did find some code that was supposed to help me call the header to a static page, but that didn’t do anything. I tried using the require command with any and all important looking .php files in the WP directory, but still no dice.
Here’s what I’ve got in the main template of PunBB (main.tpl):
<body>
<div class="wpheader">
<?php
define('WP_USE_THEMES', TRUE);
require('../blog/wp-blog-header.php');
require('../blog/wp-config.php')
get_header();
?>
<div id="navigation">
<ul>
<?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?>
</ul>
</div>
</div>
<!--End Header-->
[PunBB-specific stuff]
</body>
Is this even possible? It seems like it should be relatively easy, but I’m in way over my head here. Any advice would be much appreciated.
- The topic ‘How to call the WP header from PunBB’ is closed to new replies.