this is a new installation and I think I missed something .. The links are going some where else that is not in the bbpress directory.
http://thefouragreements.rleon.net/bbpress/
Also how would I put it in the root directory ?
thanks
rleon
@mdwaffe – has there been any work on the bbpress exporter?
Has anyone else seen anything that would work to export bbpress discussion tables?
I need to switch over to a vanilla install, and so far I’ve had to manually export/import the user tables (which wasn’t too difficult), however, the discussion tables look a bit more complex.
Thanks
I’m not 100% sure this is a bbPress problem or a WordPress problem but I have a large number of spammy user signups each day. Is there anything I can do to fix this?
We build a bbpress forum integrated with WordPress and a custom template at http://www.wiatrak.nl/forum
We also have a Polish translation available for the forum if anyone is interested.
This is apparently caused by servers running the Suhosin PHP hardening patch… it encrypts cookies. I was having a simlar problem about a year ago on another site:
Can’t post. Topic turns yellow. Can’t delete.
I found this plugin for WP that fixes it (in WP).. it’s apparently a bug in WP’s AJAX handling. Perhaps something similar is going on inside BBpress’ AJAX functionality?
http://sparepencil.com/code/ajax-referer-fix/
in pluggable.php (current)
if ( !function_exists('bb_check_ajax_referer') ) :
function bb_check_ajax_referer() {
if ( !$current_name = bb_get_current_user_info( 'name' ) )
die('-1');
$cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
foreach ( $cookie as $tasty ) {
if ( false !== strpos($tasty, bb_get_option( 'usercookie' )) )
$user = substr(strstr($tasty, '='), 1);
if ( false !== strpos($tasty, bb_get_option( 'passcookie' )) )
$pass = substr(strstr($tasty, '='), 1);
}
if ( $current_name != $user || !bb_check_login( $user, $pass, true ) )
die('-1');
do_action('bb_check_ajax_referer');
}
endif;
From above mention (wordpress) plugin:
if (!function_exists('check_ajax_referer')) :
function check_ajax_referer() {
// Explode cookie data like WordPress normally does
$cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
foreach ( $cookie as $tasty ) {
if ( false !== strpos($tasty, USER_COOKIE) )
$user = substr(strstr($tasty, '='), 1);
if ( false !== strpos($tasty, PASS_COOKIE) )
$pass = substr(strstr($tasty, '='), 1);
}
// This variable is set when cookie data was sent in an encrypted fashion
// For more information:
// * http://forum.hardened-php.net/viewtopic.php?pid=616
// * http://www.hardened-php.net/suhosin/
if(isset($_SERVER['RAW_HTTP_COOKIE']))
{
// Explode the raw (HTTP) cookie data using the WP method
$crypt_cookie = explode('; ', $_SERVER['RAW_HTTP_COOKIE']);
foreach ( $crypt_cookie as $tasty ) {
if ( false !== strpos($tasty, USER_COOKIE) )
$crypt_user = substr(strstr($tasty, '='), 1);
if ( false !== strpos($tasty, PASS_COOKIE) )
$crypt_pass = substr(strstr($tasty, '='), 1);
}
// Set $user and $pass to the decrypted values if the cookies match
if($crypt_user == $user && $crypt_pass == $pass)
{
$user = $_COOKIE[USER_COOKIE];
$pass = $_COOKIE[PASS_COOKIE];
}
}
if ( !wp_login( $user, $pass, true ) )
die('-1');
do_action('check_ajax_referer');
}
endif;
Well I very much appreciate the donation (though unnecessary) but you’ve only half fixed your problem by disabling the pretty permalinks you used to have. I figured your priority was getting back online asap.
You need to check that your don’t have any higher htaccess rules interfering with your bbpress htaccess, and that bbpress’s htaccess rules are fresh and correct. Don’t use multiviews in your htaccess on godaddy, make sure you go here and get the proper rules to copy into the /forums/.htaccess
http://www.eidolonai.com/forum/bb-admin/rewrite-rules.php
I also am concerned that you mention using the word “slug” (singular) in your bb-config.php when it should be
$bb->mod_rewrite = slugs;
(plural)
I was using the Display Name plugin, and now I can’t add new forums to the bbpress. Is there anythingI should do to reverse whatever it did to screw up the permissions?
After a couple of weeks and double checking I did everthing you outlined up there,, I *still* can’t get the cookie thing straightened out. I just cant seem to get single-login to work.. I’ve tried just about everyting I’ve found on the forum. (maybe that’s it… too many things?)
It worked when I did it.
http://www.chrishajer.com/bbpress/GregJames-560.png
BTW – I just gave it 20px of whitespace on the sides. This forum here has 40px of whitespace on either side of the content. I always thought this forum looked too narrow, so I didn’t add that much whitespace when I made yours 560px wide.
Find the elements in the page that you wish to apply new styles to, then add those styles to the style.css in your bbPress template folder.
I find the web developer toolbar by Chris Pederick invaluable for this sort of thing. You can hover over the item, find out the class or ID, then edit the CSS while still viewing the page. Then, once it does what you want, make the edit permanent in your style.css.
So what I did was take my original WordPress template and put it in the templates folder and it gave me this:
http://vistarewired.com/test2/wp-content/bbpress/
This is what I want except I want to center it, add some grey boxes behind it and that is pretty much it. How do I do this? Because I’m using the same CSS I used for my original blog template which is at http://vistarewired.com
I think you might want to get on IRC and try to raise sambauers.
https://bbpress.org/forums/topic/talkpress#post-13406
I’m not sure what the best bbPress revision is for using WordPress 2.5RC1. I think when WordPress 2.5 comes out, there will be a new bbPress release to match up with it. I know WordPress 2.5 was scheduled for March 10th but that’s been held up just a little bit.
You need to determine if your host supports an .htaccess file, and if it does, you need to know if it supports mod_rewrite in the file. Maybe your host has a support page where you can find that information out. Since your website is running on Apache, it is possible you can use mod_rewrite and pretty permalinks or slugs.
Did you already try both methods of setting up permalinks described here?
https://bbpress.org/documentation/faq/#pretty-permalinks
Hey,
as the password is stored in a different way in WordPress 2.5 (RC1) you can’t log in with bbpress anymore (if u integrated both which i did).
Until the next version of bbpress comes out, what do I need to update to make this work again?
Thanks so much in advance!
WoooHooo!!
Thanks _ck_! That worked sweet. Didn’t even need to touch .htaccess.
I just donated $20 through your donate button. Sweet bbpress site by the way.
Thanks again so much.
Also, thanks for the offer, chrishajer, I really appreciate it.
For anyone who wants to know how to do that quickly, just go to your config.php file and make the following line of code look like this:
$bb->mod_rewrite = false;
(problem code was: $bb->mod_rewrite = slug;)
I’m using plugin avatar upload .
http://bbpress.org/forums/topic/plugin-avatar-upload
I want to insert avatar under username .
EX :

where i must insert code.
sorry if my english isn’t good.Because I’m thai people.
Oh, goodie! I’ve already upgraded one of my sites to 2.5 and I love it, but another is integrated with WP (after much heartache and pain) and I don’t want to upgrade if it’s going to break it!
Is it possible the files were corrupted upon uploading? Seems like it’s a server configuration thing, not even related to PHP or CGI. You should be able to view this file, for example, but you cannot:
http://www.kreativoase.at/taufkerze/forum/bb-images/bbpress.png
In fact, it’s an internal server error code 500, but the server is configured to show this error message, which might be misleading. If you have access to error logs, that will help determine what’s causing the 500 error.
If it’s something applying to that directory and all lower lever directories, maybe there is a problem with the .htaccess file (if you are using one) in the forum directory. Do you have a proper .htaccess file? Please post the content here. I am starting to think an error in the .htaccess file is the problem for it to cause a 500 error on the forum directory or any subdirectory you try to access.
Permalinks on false is good.
bbPress does not need its own database, but it does need a database, and the table prefix will be bb_ by default. So long as that doesn’t conflict with any other tables you already have, it’s OK to use an existing database.
Hi,
i have installed how it will be described in the documentation.
When i go to my install.php (http://www.kreativoase.at/taufkerze/forum/bb-admin/install.php) I am getting this:
The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory.
I have CGI on my webserver. I looked in my database. There are no new tables. This is the same database where my wordpress is.
What can I do? I have the permalinks on “false”.
Must I install bbpress in a own database?
Mfg
Proko
I’ve had problems with godaddy hosting and with other applications in the past. (caching of htaccess files)
What if you took a copy of bbpress/db and created a local test site and see if things work properly? (xampplite)
Hey Chrishajer;
1. Yes, the conversations are still there – topics are listed and viewable in phpmyadmin – see this update post: https://bbpress.org/forums/topic/will-pay-to-get-our-forum-fixed
2. Host is Godaddy – not sure if they changed any php configs… I tried adding “Options +Multiview” to the .htaccess – no luck. Again please see this update post: https://bbpress.org/forums/topic/will-pay-to-get-our-forum-fixed
Hello All;
I have posted my problem in this post: http://bbpress.org/forums/topic/had-50-topics-now-getting-no-input-file-specified-error
…but I’m not getting any help, the problem is getting weirder and I need this fixed ASAP, so I’m willing to pay anyone who can help me.
Our forum at http://www.eidolonai.com/forum/ has been working for months, now when you click to view a topic you get a “No input file specified” error. I tried reinstalling, shutting off plugins, everything, with no luck. I then thought there might be something in the most recent post that was causing the problem. So, I went into the database with phpmyadmin and deleted the most recent post (titled: “Eidolon finished?”) Now, as you can see – that post is still in the list – AFTER I deleted it from the DB???
So, if anyone can figure this out and get our forum running – I’ll pay your price.
Please reply here and I’ll get back to you.
Please help me!
I need the help or i cant finish making my new project!
The login menu must be in the “wordpress section” and in the “bbpress section” of my homepage!.
Thanks for the help
Most of this code was taken directly from the bbsync plugin (I’ve attempted to remove need for configuration, and some of the bbsync functionality/flexibility).
There are really truly NO errors logged anywhere for this.
here is my plugin in it’s entirety:
define('CRBBFORUMID', 1);
function cr_post($post_id) {
global $bbdb, $wpdb, $current_user;
require (dirname(__FILE__) . '/../../bbpress/config.php');
// get the post
$post = wp_get_single_post( $post_id );
if(!$current_user) {
return;
}
bb_set_current_user($current_user->ID);
$post_title = $bbdb->escape($post->post_title);
$bb_topic_arr = get_post_meta($post_id, 'bb_topic', $true);
$bb_topic_id = $bb_topic_arr[0];
// if bb has this post already, update the topic
$topic_exists = false;
if ($bb_topic_id) {
if(bb_update_topic($post_title, $bb_topic_id)) {
$topic_exists = true;
}
$reply = bb_get_first_post($bb_topic_id);
bb_update_post($post_text, $reply->post_id, $bb_topic_id);
}
// if not, create a new topic
if (!$topic_exists) {
$topic_id = bb_new_topic($post_title, CRBBFORUMID, $tags);
$reply_id = bb_new_post($bb_topic_id, $post_text);
$r = false;
if ($topic_id && $reply_id) {
bb_update_topicmeta($bb_topic_id, 'wp_post', $post_id);
if (!update_post_meta($post_id, 'bb_topic', $topic_id)) {
add_post_meta($post_id, 'bb_topic', $topic_id, true);
$r = true;
}
}
$oldcoms = get_approved_comments($post_id);
if($oldcoms) {
foreach($oldcoms AS $oldcom) {
if($user = bb_get_user($oldcom->comment_author)) {
$time = strtotime($oldcom->comment_date);
$text = '<em><strong>This comment was originally posted at ' . date('G:i', $time) . ' on ' . date('jS F Y', $time) . ".</strong></em>nn" . $oldcom->comment_content;
bb_set_current_user($user->ID);
bb_new_post($topic_id, mysql_real_escape_string($text));
}
}
}
}
return $r;
}
function cr_comment($comment_id, $approval_status) {
global $bbdb, $wpdb;
require_once(dirname(__FILE__) . '/../../bbpress/bb-load.php');
$comment = get_comment($comment_id);
$topic_id = get_post_meta($comment->comment_post_ID, 'bb_topic', $true);
if(($topic_id) && ($approval_status == 1) && ($comment->user_id) && bb_set_current_user($comment->user_id)) {
//topic linked, genuine comment, actual user, bb likes user
bb_new_post($topic_id, $comment->comment_content);
return true;
} else {
return false;
}
}
add_action('publish_post', 'cr_post');
add_action('comment_post', 'cr_comment');
Thank you for the help. So what I did was take my original WordPress template and put it in the templates folder and it gave me this:
http://vistarewired.com/test2/wp-content/bbpress/
This is what I want except I want to center it, add some grey boxes behind it and that is pretty much it. How do I do this? Because I’m using the same CSS I used for my original blog template which is at http://vistarewired.com