Well, I totally can’t figure it out. I took the ultimate cop-out hack and in front-page.php, I removed
<?php new_topic(); ?>
and replaced it with ADD NEW
<a href="http://www.endsofearth.com/forum/?new=1">ADD NEW</a>
which works just fine, so I am happy with it.
I’ve just synced cookies on bbPress 0.9.04 and WordPressMU for the second time. I’ve read a few places that it doesn’t work or is difficult, so I wanted to share my solution. It’s really very easy. I wrote it up in a blog post:
http://www.callum-macdonald.com/2009/05/17/bbpress-09-and-wordpressmu-27/
It was remarkably simple (at least to me) to get it all working. Summary of steps:
1) Set all _KEY values to the same in WordPress and copy to bbPress.
2) Repeat for _SALT values.
3) Set COOKIE_DOMAIN and COOKIE_PATH
4) Settings > WordPress Integration > Show manual config settings, copy into bb-config.php.
5) From 4, change the authcookie value to wordpress_logged_in_
Step 5 won’t work exactly on WordPress standalone because it uses a hash in the cookie name. You can probably check the WordPress cookie in your browser and set it manually. Or maybe it’ll “just work”.
Then I whipped up a plugin to set / unset the other 2 WordPress cookies on bbPress login / out. It only works for WPMU right now. Somebody could probably improve it to work for WordPress. Code here:
http://www.callum-macdonald.com/download/wpmu-cookies.php-0.1.zip
This might be useful to somebody…
Oh, I forgot, add this to your bb-config.php
define('WP_AUTH_COOKIE_VERSION', 1);
When you upgrade to WordPress 2.8 later, you will need to remove that line.
Looking forward to using this plugin.
For those of us who are a little slow on the PHP stuff, what and where do you have to insert code into profile.php?
Thanks for your help
During installation, when I tried to access the intended URL, I got the following error code. What do I need to correct?
Any help in layman’s language is much appreciated in advance.
gm
Warning: require_once(../bb-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/xxxxxxxxxxxxxxxxxxxxx/admin.php on line 4
Fatal error: require_once() [function.require]: Failed opening required ‘../bb-load.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxxxxxxxxx/public_html/xxxxxxxxxxxxxxxxxxxxxxx/admin.php on line 4
Here is an untested variation of Mark’s WP plugin for bbPress, it’s a little more sophisticated in that it tries to return the person back to the topic they were in if it exists or if they were starting a topic, to the forum they were posting in.
<?php
/*
Plugin Name: Moderation Notification
Author: _ck_
*/
add_action( 'bb_post.php', 'moderation_notification', 999);
add_action( 'bb_head', 'moderation_notification_alert', 999);
function moderation_notification($post_id) {
if (empty($post_id)) {return;} // invalid post
$post = bb_get_post($post_id);
if ($post->post_status==0) {return;} // not moderated
if ($post->post_position>1) {
$link = get_topic_last_post_link($post->topic_id); // return them to the last known good post in the topic
} else {
$link = get_forum_link($post->forum_id); // return them to the forum that they posted in since there's no valid topic yet
}
$link=add_query_arg('moderated','true',$link); // set the flag
wp_redirect($link);
exit;
}
function moderation_notification_alert() {
if (!isset($_GET['moderated'])) {return;}
$out = <<<EOF
<script type="text/javascript">
<!--
alert ("You post was successfully processed, \n\n however it was placed on hold and will appear once a moderator verifies that it is not spam.\n\n Please be patient and do not resubmit your comment.");
//-->
</script>
EOF;
echo $out;
}
?>
You can see the notice by putting ?moderated=true
on one of your urls
I don’t recommend trying to purposely cause spam to test it because akismet might flag you globally as a spammer and you’ll end up being bozo’ed across multiple forums/blogs.
bump
Sam’s code works but still it displays the time in GMT rather than in my timezone. That doesn’t seem right cause it display the proper time since. How do I get that correctly?
(same thing with _ck_’s code – off the time zone and into GMT)
EDIT:
looking through some bbPress code I think I’ve got it right at last! The time has to be filtered through bb_offset_time, so the code should be(for post times):
echo date("date-format-goes-here", bb_offset_time(strtotime($bb_post->post_time)));
Still wonder why isn’t the time filtered when using sam’s code…
EDIT again:
and it does not localize – the date is in English… wonder how to set that up?
I’ve resolved the problem. Thanks.
Ah, that might be it, thanks. I had only checked the bbpress repository 
Is this needed/required for the dreaded WPMU/BP/BBpress integration as well?
Sorry, I copied the wrong message…
The problem is not that they SUPPORT PHP4, it’s that you WANT PHP5. Add this to your .htaccess if you’re at 1&1.
AddType x-mapp-php5 .php
That will force *.php files to be processed by PHP5. That should resolve the problem for you.
How do I do that? I am not great with coding so I’m not really sure what to do.
Quote:
X-Powered-By: PHP/4.4.9
Are you using PHP4? I thought that was the source of this problem.
What version did you install?
How do I do this?
I have downloaded the files, extracted them and uploaded them to my site, each and every one of them but when I go to the link of my forum to install it in step one I have reems of the same kind of message saying:
Warning: cannot yet handle MBCS in html_entity_decode()! in /homepages/41/d23308234/htdocs/PRBSPORTS/bbpress/bb-includes/wp-functions.php on line 113
It goes on for quite a while with the installation info at the bottom. Any ideas what it could be?
Several plugins add options to the topic submission and edit forms (Support Forum, bbcode-buttons, etc).
I know how to add to the end of those forms with add_action(‘hook’,’function’), but I don’t understand how they add their fields to specific areas of the form, such as below the Topic title field, above the post text field, above the tag field, etc.
Is there a proper way to do this so it remains theme agnostic?
I have the following:
Version 1.0-alpha-6 and WordPressMU 2.7.1 The problem lies with the instructions: Your video is excellent but when you read other posts they approach it different, and everyone has different ideas about this token, and the plug ins. Its just so dam confusing. I have two con fig files that have so much different code I just have no idea what is going on.
How exactly do you go about redirecting? Can it be done through a plugin or does one have to hard-code files? Which files need to be edited? I am trying to do the same thing, (almost… I’d like profiles, etc. to be managed through bbpress, but registration through wp only since I use invite codes).
Thanks.
When I go to phpMyAdmin, I do see bunch of tables under XXX-forum. For example, when I open bb_usermeta, it shows some entries such as umeta_id, User_id; but when I try to ‘browse’ them , I don’t see the the contents where I can see user name etc, instead I see something like:
SQL query:
SELECT COUNT( * ) AS Rows
, user_id
FROM bb_usermeta
GROUP BY user_id
ORDER BY user_id
LIMIT 0 , 30
Is there a guide as to how I can work with this. Or do you know what is the best way to delete bbpress without affecting my wordpress, I will try to re-install it.
Thx.
You have to tell bb, when you set it up, where wp is
Default assumption is that it’s the same folder. You’re going to need phpMyAdmin or something to fix it.
Go into your XXX_forum database and open up the bb_meta
table.
Look for:
user_bbdb_name
user_bbdb_user
user_bbdb_password
The first one is the NAME of your WordPress database (so XXX_wrdp1
), the second is the ID used to access said database (sounds like XXX_wrdp1
from your post) and the third is (heh) your password for that ID.
Set those up to point to WP and you should be able to log in.
Hi
I am running WP 2.7.1 and bbPress 0.9.4 and have completed “deep” integration of the two (cookies, logins, users, wp functions).
A major component I use is a WP Plugin called “Featured Content Gallery” and I am trying to fuse it into bbPress. I have added the code and it *half works*. That is; none of the images, nor the description appear but oddly enough the title shows.
My question is then, has anyone actually done this? If so how OR Is it even possible?
frooyo, mine doesn’t look like that at all (my admin panel alignment is fine). Did you change the /bb-admin/style.css
file?
chrishajer you are my hero. My host is also 1&1 and I was really wondering why I couldn’t make these permalink work on my host while it was working perfectly on a local installation. Got really depressed about that. And then I tried to add the line Options -MultiViews
and now it works.
You really made my day!!
Actually this topic is very old and the openid plugin has been out for some time now.
https://bbpress.org/plugins/topic/openid/
In most of my plugins I use curl with a fallback to a solid fsockopen routine I wrote awhile back that works well. I can’t remember if I have it in openid.
I avoid api as much as possible because of how they tend to change and break my plugins 
Plus you learn nothing when you just use someone else’s black box…
You can potentially use “special” characters in usernames via a plugin, but with the ability to have separate “display” names it is not enabled in the core.
Putting this in a plugin might work on it’s own actually…
function my_sanitize_user( $username, $username_raw, $strict ) {
if ( $strict ) {
return sanitize_user( $username_raw, false );
} else {
return $username;
}
}
add_filter('sanitize_user', 'my_sanitize_user', 10, 3);
FYI, the .htaccess file is never included in the distro. Nor are your my-* folders. It’s SOP to copy those, and your config file, over in WP and BB. Probably considered ‘understood’ for anyone using the RC.
I can’t paginate through my users on the admin side. The links give me the URL of:
/bb-admin/users.php?page=2
HOWEVER if I manually put in this, it works:
/bb-admin/users.php?userspage=2
Still can’t paginate from that page, though. Then ALL the links become the userspage=2 (yes, the 2, if I change it to 3, the links are 3, etc etc). I reset my .htaccess (just in case) but no help there.
Logged in #1076