My header title tag reads like follows, I think you can modify it to fit your setup:
<title>
<?php if ($forumpage == TRUE) {
bb_title();
echo " :.: AKNI";
} else { ?>
<?php wp_title(' '); ?>
<?php if(wp_title(' ', false)) { echo ' :.: '; } else { echo "AKNI: "; } ?>
Akira Kurosawa News and Information
<?php if (is_utwtag()) { echo ': '; UTW_ShowCurrentTagSet('tagsettextonly'); } ?>
<? } ?>
</title>
The last condition with UTWTAG is for the Ultimate Tag Warrior plugin — remove it if you don’t use it.
To see how the title works across the site, I think it’s easiest if you just visit http://akirakurosawa.info/
I would like to know if someone can install and integrate BBpress with my WordPress site. I know that people install wordpress on non-commercial sites for free. My site is a blog for professionals, that I may ad some advertising just to pay for the site space. Can someone help me?
However I read (http://bbpress.org/forums/topic/1140?replies=28#post-7450 atomAstro wrote) that there were some problems with integrating it. Any suggestions? I don’t know much about php and the like. I know minimal html and most of that has been depracated (I assume).
I am good at following instructions though. As long as they are step by step
If you have the same code for the header then I think you need some conditional if statements in there to check if it’s wp or bb. This isn’t really straightfoward I’m afraid, but then I’m in the dark here (haven’t done it myself) so perhaps it is and I don’t know about it.
Also, 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
It will be fine. From WordPress 2.0.4 to WP 2.2 there were no changes in the wp_users and wp_usermeta tables that would give you an issue using bbPress that I am aware of. I guess the easiest thing to do would be to install bbPress in a directory off WP and see how you make out following all the integration instructions. You can always move folders later by just changing the config.php to have the address that you eventually would like.
Trent
Things certainly seem to be quiet. I’m also guessing that mdawaffe is busy with WordPress work, I saw a few notes mentioning him in some of the recent WordPress commits.
I haven’t been doing much bbPress work recently either, I’ve been too busy on another open source project that is actually my full-time employment. I only have one outstanding ticket on the bbPress dev site without a patch attached (I don’t have commit access), and I have already developed a plugin for that. I only pick up tickets that interest me though, and none have come up recently that I have liked the looks of and thought I could commit time to.
I do plan to hit the bbpulp.org documentation site with a few more updates soon though.
Anouther 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
Thanks for comments guys, I was just wondering how are the things going in bbPress camp, by the way I suppose the paying attention to this project is growing day by day so I can wish you nothing but luck… Ooh, and thanks of course.
snakefoot, 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
Remember that the include of wp-blog-header.php should happen in the beginning of the config.php file.
Our TRAC development has come to a grinding halt, so I can assume that mdawaffe has been crazy busy on other Automattic projects and we went to the backburner! So10 and Sam might be working on things, but we haven’t had any commits in almost a month…..hopefully soon!
Trent
I 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
http://www.ppacp.org/forums/
Baldwin, looks like your second error is a good error because it’s loading! I believe that the problem is that WP and BB are not set up to synchronise. Have you got this in your config.php?
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );
This is probably a nasty hack, and I hope a better solution comes around soon:
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’);
Fixed my wp-blog-header when in the root and when in bb-admin.
*Edit* Weird cannot seem to get the markup tags to work, why not use standard html tags like in wordpress instead of backticks (‘, ยด, `) too much confusion and none of them works.
I 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
Yes! In many cases using a relative path is essential to the require and include functions.
Maybe it’s like this? You’ll know what I mean, anyway.
/home/turner/public_html/wordpress/wp-blog-header.php
Mine looks like this:
require_once('http://ppacp.org/wp-blog-header.php');
am I supposed to use a relative path?
Thank you,
-Baldwin
MMember
I find it a bit insulting that all I get is Google links. Don’t get me wrong… for most people who don’t search the forums that’s a great solution. I have searched the forums and Google extensively however, and I’m not seeing a whole lot of helpful stuff when it comes to WordPress’s custom wpAjax class. I’ve gone over prototype tutorials, documentation pages, and more and I haven’t found a solution.
Also, please explain yourself a little further regarding your “function call” comment. Are you referring to commodAjax.request(commodAjax.url);? Because I believe that’s correct. At least that’s how other people have been doing it. If you’re talking about alert(commodAjax.responseText); that was for debug purposes only. I’m trying to get the value. That’s my original request.
Just to make sure, you don’t actually use “require_once(‘path/to/wp-blog-header.php’);”, but rather have the “path/to/” bit modified to correspond with the correct folder path to your WordPress installation, right?
As far as I can see (and I am no real coder, either), somehow your current setup still fails to connect to WordPress, and therefore the WP functions, including get_header, are unavailable to bbPress.
vilimaunula, 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:
http://www.gluedideas.com/
Any ideas?
-Baldwin
I would personally prefer to have a completely new profile page, not just a revamped bbPress one. The ultimate solution would of course be to allow the admin to choose whether to use the WordPress, bbPress or completely new page for user profiles. But that would again make the whole thing even more complicated.
It’s a good point about redirection — the plugin should indeed make sure that all links to profile pages would go to the one set by the admin as the one to be used. (Whether WordPress, bbPress, or a totally separate page.)
How’d I overlook this?!
From https://bbpress.org/documentation/integration-with-wordpress/
If you would like to pull user information from a different database, define USER_BBDB_NAME, USER_BBDB_USER, USER_BBDB_PASSWORD, and USER_BBDB_HOST.
My dbs are limited to 100MB and I’ve watched a spam attack add 20-40MB in a heartbeat on WordPress alone. Granted part of the solution is having SpamKarma purge more frequently.
I was concerned that if I added bbpress to the same database, and if it received any significant traffic, that I would find myself faced with running out of space in my database.
Naturally, the solution seems to be to have wordpress and bbpress use two separate databases but pull user information from the wordpress db. (Or find a hosting provider that doesn’t limit the db size to 100mb)
I’ve been struggling with exactly the same problem myself.
I tend to think that the bbPress profile is the correct place to store and edit this information. Here’s what I see as the requirements:
1) Plugin for WordPress to redirect the “Profile Edit” link to the bbPress profile edit screen, as well as link the profile view to the bbPress profile view.
2) Plugin for bbPress to allow for editing of WordPress profile fields as well as a customizable list of new/extra fields. I believe that there is a plugin that does at least part of this already.
3) The bbPress plugin would need to either know about WordPress settings like notifications, or would need to run the wordpress plugin filters that apply to profile edit. I’m not sure that the latter would be easy.
If you have integrated your bbPress with WordPress, you must have at least once thought about the problem of your users having two separate interfaces for modifying their profile settings.
Furthermore, if your bbPress and WordPress both use a good deal of plugins, you end up with a situation where some settings (say, email notifications for new WordPress posts) have to be set on a WordPress profile page, whereas other settings (for example email notifications for new forum topics or replies) must be set through the bbPress interface. This will confuse your average user so much that they will simply not use any of your website’s fancy features at all.
It would therefore be good to have just one user profile page that would merge everything from the two together. Preferably, this should also be a page that could be displayed within the website template, so that it would really look like being part of the website, and not behind a completely different-looking interface as is the case with WordPress user pages. (Those also scare people.)
Would this be doable?
I am personally not much of a coder, so I don’t know all the details of what is going on when the WordPress and bbPress profile pages get served, and how various plugins get to modify that process by adding new fields and buttons on those pages.
I assume, however, that the most difficult thing for a “one profile page to rule them all” sort of an approach that I am thinking about here would be to keep track of additions to those profile pages. It should somehow be able to notice that some new bbPress or WordPress plugin has modified one of those user profile pages, and incorporate those changes to the merged profile page that is actually displayed to the end user.
I would love to hear some input from those of you who know more than I do about the behind-the-scenes activity when it comes to user profiles in bbPress and WordPress. What do you think, how difficult would a plugin like this be to code?