@Jonathan – No. You should *never* modify core files, ever. If you’re modifying the core, you should share what you’re changing and why, so someone can show you a better way, or we can improve the core. If you’re creating a custom theme based on the core files, then until 2.0 drops you’re on your own to monitor the traclog and see what changes might impact you.
I’ve resolved it. Apparently, the WP theme I’m using (Thematic) has a constant named THEMATIC_COMPATIBLE_BODY_CLASS defined as TRUE. I disabled it and now I can see “bbPress” added to the body class in all forum pages.
But that’s just it – all I did was run the update from within my WP admin. That’s all. I was running a stock bbP beta 1 install (my customizations are just to the various template pages and a few minor edits to files within mytheme/bbpress). When next I looked, the folder was gone.
Nobody at all was working on the server during this time but me, and nothing else happened in between. I ran the update, saw it completed, walked away, came back after a couple of hours, and the directory was gone.
I suppose I could back it up now and try again just to test it, but I’d really kinda rather not. I can’t come up with any logical explanation of how my entire theme directory could have spontaneously deleted itself right after running the plugin updater.
If I’m the only person this ever happens to, then great… we can write it off as an unexplained mystery. Personally though I’m never updating again without first backing up my theme directory.
Jonathan
When are adding your theme compatibility? If you are hooking in on the ‘init’ or ‘wp’ actions, then it is too late for theme compatibility to pick it up.
function anointed_theme_setup() {
add_theme_support( 'bbpress' );
}
add_action( 'after_setup_theme', 'anointed_theme_setup' );
Can you confirm the bbpress.css is inside the bbPress plugin directory and bbp-twentyten theme?
If it wasn’t working at all, then your custom theme’s bbPress template files wouldn’t be getting loaded either.
@Johnathan – Can you use a tool like Firebug or Inspector, and look at the hidden input fields in your reply form?
Should look like the following
<input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="Reply To: Updated to bbPress 2.0 pre-beta 2" />
<input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="138" />
<input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="439" />
<input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply" />
<input type="hidden" id="_wpnonce" name="_wpnonce" value="0b78bb87eb" />
<input type="hidden" name="_wp_http_referer" value="/discussion/topic/updated-to-bbpress-2-0-pre-beta-2/" />
Also, some details about your configuration would be great. WordPress version, Multisite/single-site, custom theme/theme compatibility, etc…
There’s absolutely no way that bbPress is responsible for doing anything inside your wp-content/themes/ directory. If you made changes to files inside the bbPress plugin folder, then you broke the first rule of using a WordPress plugin.
For some reason the function theme_compat() -line 189 bbpress.php is not respecting the add_theme_support( ‘bbpress’ ); in my theme’s functions.php file.
The reason I don’t think it’s working is because the bbpress.css is still being injected into my header.
*btw the function definition says it also enqueues the topic.js, however it’s not in the arguments, not sure if that matters though, as I am doing that on my own.
I’m no sysadmin, so understanding what is happening is a bit beyond me right now.
Here’s what I was doing to cause the 403 error:
1. I wanted to test to see what bbpress does with a really long forum post title, so I tried the following:
Let’s create a really crazy long title name to see if the table properly removes any extra text from the title or not
The body of the post says:
Well I hope that title above was long enough, I can’t imagine any forum titles being longer than this one.
When I click submit, I get a 403error below:
[Fri May 27 20:21:10 2011] [error] [client 76.121.8.129] mod_security: Access denied with code 403. Pattern match ":space:+(select|grant|delete|insert|drop|alter|replace|truncate|update|create|rename|describe):space:+[A-Z|a-z|0-9|\\*| |\\,]+:space:+(from|into|table|database|index|view):space:+[A-Z|a-z|0-9|\\*| |\\,]" at POST_PAYLOAD [severity "EMERGENCY"] [hostname "mysite.com"] [uri "/forum/prayer-requests/healing/"] [unique_id "TeA-9kUuJUQAABVAGuk"]
I am unsure of how to interpret the error, and what steps I need to take in order to resolve the problem. Hope this error helps identify something.
Gotcha…
Its because of bb_config integration.
/** WP Theme **/
define(‘WP_BB’, true);
if ( !defined(‘DB_NAME’) ) {
require_once( dirname(__FILE__) . ‘/../wp-config.php’);
}
Hmmm… Last time is not happening, why its happened now ?
Is there any solution to integrate the theme without having to hardcode the theme itself ?
Currently I installed bbpress on separate database.
and I intend to separate the user too.
So I want only to integrate the theme….
Any better solution for this ?
Checking that box fixed my problem. Thanks.
The sanity check that I do in the breadcrumb is to check if the root slug is being included in the forums or not. If there’s no root slug, in the URL, then there’s no definitive breadcrumb that bbPress could know about. My logic may still be flawed here though.
Yup, I am more than comfortable with modifying this for my own needs. I was just thinking that the standard should go to the forums, as people browsing forums wouldn’t expect to jump to the homepage via forum breadcrumbs.
Either way, life is good LOL
You can manipulate the inclusion of the links on customized setups (such as the one I know you have.)
Check out the plugin code and adjust it to suit your needs in your custom theme.
Suggestion:
I noticed that beta2 changed the breadcrumbs to include a ‘Home’ button as the first level. The suggestion would be to have the ‘Home’ button link to the forum home page and not the site root home page.
It is rather confusing even to myself to be kicked from the forums when clicking the home breadcrumb link. I would expect to be sent to the forum homepage instead.
Could we get a list of files that have changed in the changelog? For those of us who have had to make certain modifications to some core files, it would be extremely helpful.
Thank,
Jonathan
Are you sure? I can’t see bbPress added to the body class here:
http://barcelonaphotobloggers.org/forums/forum/general-2/
But using bbPress 2.0 when it is final – won’t that be up to date?
Hallo, I’m using bbpress 2 and i have a multi-site installation, but how do I do to active bbpress on each site? BBpress is network actived but I can create forums only from the admin network panel.
Hallo, I’m using bbpress 2 and i have a multi-site installation, but how do I do to active bbpress on each site? BBpress is network actived but I can create forums only from the admin network panel.
Ah ha. That’ll do it. WordPress doesn’t have built in collision detection for these manually entered slugs. Mind creating a trac ticket and I’ll look into preventing this in the next release.
Has anyone got any ideas on this? It’s very odd as it seems to only affect the main forum list subsequent forum / topic lists seems to be fine width wise and adjust with the page in different resolutions / as the browser gets resized.
I’ve tried fiddling about with the CSS for the .bbp-forums class but it seems to take no notice (however the subsequent topics / forums seem to do so)
I’ve had to install bbpress a little differently than @jjj specified in his sticky thread I had to do the following:
Create a ‘Forums’ page of template type bbPress – Forums (Index)
As I’m using a child theme of twenty ten I can’t use the child theme method as it complains about having too many functions.php s. So I copied the contents (except the functions.php and style.css) of the bbp-twentyten folder into my child theme then added the theme support in twenty-ten’s function.php. This seemed to work but no styles were being applied so i copied the bbpress.css contents into my style.css and now everything looks great I just can’t get the main forum index to resize with the page and it looks really messy under the side bar.
Using chrome’s ‘Inspect Element’ I can see the table.bbp-fourms takes up more width than the #content div but I have no idea how to restrain it to using only the width of #content.
Any help at all greatly appreciated and Thank you for a fantastic plugin.
http://barnstormers.org.uk/forums
Has anyone got any ideas on this? It’s very odd as it seems to only affect the main forum list subsequent forum / topic lists seems to be fine width wise and adjust with the page in different resolutions / as the browser gets resized.
I’ve tried fiddling about with the CSS for the .bbp-forums class but it seems to take no notice (however the subsequent topics / forums seem to do so)
I’ve had to install bbpress a little differently than @jjj specified in his sticky thread I had to do the following:
Create a ‘Forums’ page of template type bbPress – Forums (Index)
As I’m using a child theme of twenty ten I can’t use the child theme method as it complains about having too many functions.php s. So I copied the contents (except the functions.php and style.css) of the bbp-twentyten folder into my child theme then added the theme support in twenty-ten’s function.php. This seemed to work but no styles were being applied so i copied the bbpress.css contents into my style.css and now everything looks great I just can’t get the main forum index to resize with the page and it looks really messy under the side bar.
Using chrome’s ‘Inspect Element’ I can see the table.bbp-fourms takes up more width than the #content div but I have no idea how to restrain it to using only the width of #content.
Any help at all greatly appreciated and Thank you for a fantastic plugin.
http://barnstormers.org.uk/forums
Update: the error message only occurs when I am logged in. It occurs when anyone is logged in to bbpress and click on the forum links in the left hand sidebar.
I think this started when I upgraded the beta version this morning. After clicking on a forum I get the correct screen with this message at the bottom,
Fatal error: Call to undefined function bbp_current_user_can_create_topic_in_forum() in /hermes/bosweb26a/b1658/d5.savethec/public_html/stc/wp-content/themes/bbp-atahualpa366/bbpress/form-topic.php on line 17
This does not seem to effect anything.
Here is the link. http://www.savethecolors.com/?forum=test2-2
I managed to get past the fatal error by adding these two lines in my bp-config.php file:
define('BB_DATABASE_CLASS', 'BPDB');
define('BB_DATABASE_CLASS_INCLUDE', false);
Now I’m getting more errors:
Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 3 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 4 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Fatal error: Cannot redeclare bb_cache_users() (previously declared in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in .../forum-svn/bb-includes/functions.bb-users.php on line 39
This is using bbPress plugin 2.0-beta-2b and bbPress standalone trunk.