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.
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.
Yeah, it’s definitely a quick and dirty temporary hack! I didn’t even realize until now that admin_email has changed to from_email… oops! My forum’s not so busy so I’m ignoring race conditions for now. In the future I might just rip off the bbpress post functions. Or wait for someone else to fix this plugin, heh! :p
I’ve never seen or even heard of a forum with reply by email.
In theory this could be done via a unique key sent with every message to the reader.
But writing code to download and process email replies would be tricky.
Since bbPress 1.0 will have trackbacks for topics, this might open another avenue.
This kinda defeats the whole idea of a forum though, allowing people to stay away from the site entirely.