Because for some reason the bbdb object must not be created when deeply integrated under 1.0
Must have something to do with backpress which re-uses wp functions.
That is with bbPress 1.0 right? the object_type is for 1.0
Yes, it is bb 1.06a with wp 2.7 
I tried with get_var and I get the same error for get_var;
Fatal error: Call to a member function get_var() on a non-object in….
but then I changed $bbdb for $wpdb and it works. Why? I don’t understand this.
That is with bbPress 1.0 right? the object_type is for 1.0
You get nothing using get_results because it returns an array – use get_var instead
<?php
global $bbdb;
$result=$bbdb->get_var("SELECT SUM(meta_value) FROM bb_meta WHERE object_type='bb_topic' AND meta_key='views'");
echo $result;
?>
Hi,
I ended up deleting everything and then starting over. It seems to be ok now. I don’t understand however, why when asked to use my wordpress login to login to the forum, I am told the login failed. Can you explain?
Thanks!
I need more info than “didn’t work”
Fatal error: Call to a member function get_results() on a non-object in wordpress/wp-content/themes/mytheme/header.php on line 149 (line where I placed the code)
Try replacing $bbdb with $wpdb
no error but what I want is to query bbpress data base. Whenever I echo $results there is no answer.
Norwegian translation of 0.9.0.4 -> here
Norsk oversettelse av 0.9.0.4 -> her
—
Rune
Norsk WordPress og bbPress forum
I need more info than “didn’t work”
Try replacing $bbdb with $wpdb
and remember to use $wpdb on WordPress pages, vs $bbdb on bbPress pages
I want to query $bbdb from a wp page. In particular, I want to fetch the total amount of views from your bb Topic Views plugin. This code didn’t work;
<?php
global $bbdb;
$results=$bbdb->get_results("SELECT SUM(meta_value) FROM bb_meta WHERE object_type='bb_topic' AND meta_key='views'");
$results=$bbdb->get_results($query);
?>
WordPress is installed in /wordpress/ and bbpress in /wordpress/bbpress/ both deep integrated. What’s missing?
I’m going to try this today! I hope it works, because I love WordPress and BBpress..
Thanks Ann, so far so good…..no problems on that end.
If you undo the integration (don’t include WordPress inside the bb-config.php) does it still happen?
Also, are you using a language other than English?
What version bbPress are you using? Is it integrated with WordPress, and if so, what version? Are you using a language file other than English?
When I post code samples in my bbPress install, all quote marks show up like this:
"
This includes when I use backticks and/or buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>
It becomes:
<div class="box">This is a box</div>
I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
[code] buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>
It becomes:
<div class="box">This is a box</div>
I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
What versions did you integrate? What bbPress or WordPress plugins have you installed?
oops johnjamesjacoby: must have missed your reply a month ago. I am using the Fold Page List plugin for WordPress. I suspect those classes come from that.
http://www.webspaceworks.com/resources/wordpress/30/
Chris-
I am attempting to build a VERY similiar navigation to what you have linked to. As in, tabs along the top and a growing tree down the side, with the current tab selected for child pages. Could you expand a bit on your previous post on how you achieved this?
-Westy
Thanks Chris,
Simple mistake. I just had an extra folder in there somewhere!
Hi,
I recently setup a bbpress forum (http://dphs.com/wp-content/plugins/bbpress/) and integrated it with my wordpress site (http://dphs.com). My admin login works fine (same as my wordpress login), but my keymaster login is not recognized (login failed). I deleted my cookies to see if that helped, but may just have made it worse. Any insight?
Thanks!
You have the URI to the site wrong somewhere, I think. Your forum is here:
http://gpsobsessed.com/forum/bbpress/
But I think you want it in one of these two places:
http://gpsobsessed.com/bbpress/
http://gpsobsessed.com/forum/
So, somewhere it’s gotten mixed up. At the full URI, the path to the stylesheet is wrong as well, which is why it looks so strange there.
Btw, when you do cookie integration please keep in mind that there are some login hooks in pluggable that might not be called in either WP or bbPress depending on which side your user logged in from. This might affect the functionality of some plugins.
For example, after rerouting all my bbPress logins to WP I realized that the ‘bb_set_current_user’ action hook on a bbPress plugin I used was no longer being called, so I had to incorporate it in on the WP side using the ‘set_current_user’ hook.
Hey there:
I’ve search through the forums and found quite a few 404 issues but mine is preventing me from login right off the bat. My integration with WP 2.7.1 was successful, but when i try to login to http://gpsobsessed.com/forum using my WP login I’m returned a 404. How do I fix this?
Thx,
Justin
Got the problem…..when copying the secret from the options.php in wordpress to enter into the WP INtegration in BBpress, on submit bbpress (or something) was stripping the final character off the secret string. I checked this twice to make sure it was happening, and then edited the record by just pasting in the “).” Voilla. Ann’s cookie worked!
Do not even “try” the alpha as you can then never go back to 0.9
Many plugins will not work with the alpha and won’t for some time.
You want to downgrade the wp cookies. Use Ann’s plugin.