Ok, thanks for your help
I’m going to try more of these queries. I find them very useful to integrate small details.
To be clear, both bbPress and WordPress for that matter still work fine under PHP 4.4.x and technically 4.4.x is still supported officially.
It’s just the specific i18n problem they are encountering, where the fix in 1.0 hasn’t been backported to 0.9
Sam is unlikely to make any further changes to 0.9 unless it’s a security fix or serious performance problem.
I haven’t looked at the fix for 1.0 but I suspect someone could make a patch to make 0.9 do the same thing if they really wanted.
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.
Yup! _ck_ did a great job with this plugin:
https://bbpress.org/plugins/topic/instant-password/
I’ve been using it for a while, and it’s really great…
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;
?>
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.
Does anybody know of some good BBPress tutorials for creating plugins?
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?
Okay, have been searching google and this forum for long time and find there is no occurrences of it.. not even mention of it. So, wanted to ask everyone out here if they know what is happening..
I am using double quotes in the code and trying to paste the code within backticks and while everything looks okay few html characters are rendering their ASCII code or something (html escape characters ??)
For example,
double quotes ( ” ) are rendered as &q uot;
ampersands ( & ) are rendered as &a mp;
ignore the spaces. I have disabled all the plugins, switched themes and looked over everything, but I still can’t figure out what is causing this. I saw several forums including bbpressshowcase which suffers from same problem. I don’t see that problem here in this forum.
Can anyone shed some light for me?
Thanks for all your help.
Oh… it’s the Mass Edit plugin: https://bbpress.org/plugins/topic/mass-edit/
As usual, _CK_ has got it covered!
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
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!
I always pull this out for discussion when the topic comes up:
https://bbpress.org/forums/topic/email-notifications#post-20324
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.