Forum Replies Created
-
In reply to: *seamless* wordpress integration
I changed all of the tops to:
<?php global $forumpage;
$forumpage = TRUE; ?>
<?php get_header(); ?>
but, I am still not getting any changes to the title.
hmm, what else could be wrong?
-Baldwin
In reply to: *seamless* wordpress integrationAHHH
I’ve copied what you have above, and modified it slightly (to match my site), but I am not getting updated titles on topic pages like:
http://ppacp.org/forums/topic.php?id=1&page&replies=1
I’m assuming this has something to do with the templete files for bbpress, so I looked at the top of the files and it looks like this:
<?php get_header(); ?>
<?php global $forumpage;
$forumpage = TRUE; ?>I changed all the files that had
<?php bb_get_header(); ?>
from the “kakumei” folder.Am I doing something wrong?
“confused”
-Baldwin
In reply to: *seamless* wordpress integrationAlso, is it possible to have a “forum” header? a header that would go beneth the wordpress header, but only appear on forum pages?
Thanks!
-Baldwin
In reply to: *seamless* wordpress integrationAnouther stuipd question:
How do I make the title update to the appropriate page?
When in WordPress the title in the browsers “title bar” is updated with the title of the particular post. In bbPress this isn’t happening. I’m assuming this has to do with the header change, but this topic has the correct title in the titlebar, so there must be some way to fix it.
If Google didn’t exist I wouldn’t care…
-Baldwin
In reply to: *seamless* wordpress integrationsnakefoot, Thanks!
I fell kinda stupid, I moved this up to the top and now it works!
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );It still dosn’t work with an absolute path, which means this meathod dosn’t work for subdomains.
Now that the header and footer work, I’ll follow the rest of vilimaunula’s steps to see if I can get this looking better…
Thanks for helping a nooob!
-Baldwin
In reply to: *seamless* wordpress integrationI changed my config file to this:
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );and to this:
$bb->WP_BB = true;
if (file_exists('../wp-blog-header.php'))
require_once('../wp-blog-header.php');
else
if (file_exists('../../wp-blog-header.php'))
require_once('../../wp-blog-header.php');and in either instance I still recieve this error:
Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165
Thanks for the help!
-Baldwin
In reply to: *seamless* wordpress integrationI tryed just about everything, and I kept getting this error:
Warning: main(home/turner/public_html/ppacp/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/turner/public_html/ppacp/forums/config.php on line 62
Fatal error: main() [function.require]: Failed opening required ‘home/turner/public_html/ppacp/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/turner/public_html/ppacp/forums/config.php on line 62
So, I changed the location to this:
require_once('../wp-blog-header.php');
and now I get this error (something different, yay!):
Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165
I’m not an expert, but I think the former worked, but that there’s something else wrong.
Thanks for your help!
-Baldwin
In reply to: *seamless* wordpress integrationMine looks like this:
require_once('http://ppacp.org/wp-blog-header.php');
am I supposed to use a relative path?
Thank you,
-Baldwin
In reply to: *seamless* wordpress integrationvilimaunula, I used your method or replacing the <?php bb_get_header(); ?> and bb_get_footer. I am not a php buff by any means, but now I am reciving this error:
Fatal error: Call to undefined function: get_header() in /home/turner/public_html/forums/bb-templates/kakumei/front-page.php on line 1
Line 1 is the line I replaced, I’m just wondering why it has a promblem with it. I made sure I had the
require_once(‘path/to/wp-blog-header.php’);
set in my config.php.
The only thing I might be doing differently, is that I have my bbpress in a sub-domain. I also tryed installing in a folder on primary domain, and I ran into the same problem.
I’m using the Subte “Subvert” theme:
Any ideas?
-Baldwin
I figured it out.
I must have been missing some required hidden files. I deleted all my files from the server and then reuploaded them using my Windows machine,. Now it works like it should..
Thank you!
-Baldwin
Help Please!
-Baldwin
This is what the config file looks like:
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘turner_wrdp3’); // The name of the database
define(‘BBDB_USER’, ‘***********’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘*****************’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = ‘http://forums.ppacp.org’; // Example: ‘http://bbpress.example.com’
// There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.
$bb->path = ‘/’; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘Professional Photographers Againsts Copying Photographs’;
// This must be set before running the install script.
$bb->admin_email = ‘*********@ppacp.org’;
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = -4;
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’
// to enable German language support.
define(‘BBLANG’, ”);
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ‘*************’; // Example: ‘0123456789ab’
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave the rest as it is.
$bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ‘http://ppacp.org’; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’
$bb->wp_siteurl = ‘http://ppacp.org’; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com’
/* Stop editing */
if ( !defined(‘BBPATH’) )
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
?>