The query is going to be run on each and every topic/reply. So a topic page with 20 authors showing would run this query 20 times on that page.
Multiply that by hundreds of concurrent users and you have a lot of queries to handle. That is why I brought up needing to cache the output.
I’m not saying that it is a bad query, actually I think that is exactly how to get it, just worried about performance for such little benefit is all.
I was actually contemplating a different approach:
1. run an initial query to count all users topics/replies and store that value in the usermeta table.
2. append the submit topic/reply form to add to the users topic count in the usermeta table.
3. simply call the value stored for the user and output that.
This means that bbpress never has to do the manual counts on page load, but just pulls the number just like any other data.
*would also need to modify system so if a topic/reply is deleted that the users count is also modified to lower their count.
good idea?
You would like to know bbPress.org jus’ have 52,283 post 
** I forgot it: Yeah buddy I would like to learnin’ manything here and share what I know
But I don’t know anything about bbPlugin
bbPress 1.x is my game
No idea why it would work on one theme and not twentyten. Might need to wait until JJ gets off the plane for help. I’d just be taking to many wild guesses 
I did go to your-site/forums/ and saw the forums just fine on the old theme.
No, I used the built in tool included with bbpress 2.0 (the importer).
There was no error provided (unless it’s logged in my server’s log files that I haven’t checked yet). After I clicked on recount and checked all of the boxes and clicked go, the browser just spun and came with a page saying there was an internal server error. Not other information was given. No error codes or anything.
So, everything appeared to import successfully from my old bbpress version to the new 2.0 version, but when I went to recount everything I got an Internal Server Error. Any help would be appreciated.
So I was able to import my old forums over from the old version of bbpress to the new 2.0 version successfully, and I can still see the forums using my old theme, but when I try to view the forums using the Twenty Ten theme, I cannot see the the bp forums or groups. There is no error message – the forums just don’t show up (or the groups that the forums were built under).
Assistance with this would be greatly appreciated. My site is http://varsitysmack.com.
ED: Just talked to AWJunkies and he said this can happen when running multiple converters strung together.
From your post it looks like you need a way to go from punbb?
(guessing you are only going from punbb -> phpbb in order to get a roundabout way to bbpress)
We are going to add punbb and phpbb3 to the list of importers.
There is no ‘easy’ way to remove the breadcrumbs as they are included in a number of templates. You would need to go through each of the bbPress templates and remove the following:
<?php bbp_breadcrumb(); ?>
ED: I’ve sent a message to AWJunkies about the mismatched topic/replies. I hope to have a solution for you quickly. Thank you for such a detailed report. It will go a long way to troubleshooting any possible issues.
Varsitysmack: Any information you can provide will help a lot. If you can get the error that was kicked out then we can jump in and see what is happening.
I can’t give details right now… I’m restoring my DB. Basically it appeared to convert the users appropriately but whene it got to converting the forums, topics and replies, the tool failed throwing an error message (which I didn’t jot down because of the need to immediately restore the db).
That’s as far as I am.
EdParticipant
OK, I solved my mismatch problem by simply removing the top level forum category.
However, the blank posts still occur.
I’ve tracked it down to:
– at the BBpress1 stage, while the POSTs show the correct author, the actual TOPIC shows “Anonymous” for every entry.
– there is a duplicate entry in the DB, one which is the topic title, and then the actual contents.
things look fine with phpbb3, so I guess the error was with the “phpbb3-to-bbpress1-converter_v2″….
not your converter.
Anyhow, thanks for your great work!!! I just need to get my data in a state where it can be pulled in. Thanks.
EdParticipant
haha. i think you need to give some more details, if you hope for any help
I tried this plugin – it didn’t work for me.
After installing the new 2.0 plugin and trying to import my old forums, I get an error after I click ‘Proceed’ when during the part where I’m asked to ‘Enter the full path to your bbPress configuration file i.e. bb-config.php:’.
The specific error says this:
Warning: require_once(/home/content/40/6611140/html/varsitysmack/bb-includes/class.bb-query.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/40/6611140/html/varsitysmack/wp-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 154
Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/40/6611140/html/varsitysmack/bb-includes/class.bb-query.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/40/6611140/html/varsitysmack/wp-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 154
I’m not sure what I need to do to fix this, but it is pretty important that I get the forums up and running as soon as possible. 99% of the content of my site is through the bbpress forums (I have a discussion forum site) and while I’m very excited about this upgrade (especially about the content now being custom post types), my site is essentially down until I get this resolved.
Any help that anyone will be able to provide is greatly appreciated.
Hmmm… If I’m using the regular wordpress registration at http://www.InsertSiteNameHere.com/wp-login.php?action=register, will the registrants be able to use the bbPress forums on that site?
This is a part where bbPress is lacking INFO. (I think)
They are still writing up a manual because most people don’t understand how to make Child Themes or just a custom bbPress theme.
Read this topic:
https://bbpress.org/forums/topic/bbpress-20-theme-compatibility
Your biggest problem is your functions.php file nobody understands what to do with it.
Because the manual how to install and make your own theme tells us to copy-/paste all files including the <bbPress> files from your plugin section inside your WordPress theme folder but in that write up they forgot about when you do so, you have to duplicate or overwrite the functions.php file. Because your WordPress theme also has a functions.php same as the bbPress plugin.
We are still hoping somebody would make a nice Blog Post about how to install bbPress and how to do it correct on a Child Theme setup.
Mine is working now (as explained in linked topic ), but i have no idea if i did it correct.
Oops! A $ is missed in the code
Use it bbp_topic_is_open( $bbp_post->bbp_topic_id )
And again I’m not sure about this code that work or no!
And, your welcome
@7i7GRiFFiN Thank you again!
Nope, that function is absolutely diffrent and not used in bbPlugin
Thank you so much for the fast reply! I guess bbp_topic_is_open() will do for me..
Might be a silly question but is it recommended not to use comments_open() in bbpress?
comments_open() function have a sister function that used in bbPress or the bbPlugin. They looks like topic_is_open( $bb_post->topic_id ) (bbPress) or bbPlugin (I’m not sure!) bbp_topic_is_open(bbp_post->bbp_topic_id)
I repeat that I’m not sure about bbPlugin!
I was fixing a certain existing WP plugin to my taste to make it work in bbpress, and experienced comments_open() function is not stably working in bbpress.
In most cases it returned true in open topics/replies. but in less than 5% cases it returned false although the topic was open and making replies were available..
I just replaced comments_open() function to (is_user_logged_in() && is_bbpress()) and it worked fine. (Thank you for this function!)
I don’t think it’s not much important in using bbpress, but just curious to know how comments_open() function works in bbpress if it’s not too complicated.
EdParticipant
Hi,
to help test this, I’ve moved my punBB forum over, and for the most part things work. However there is one major issue.
I’ve done the conversion by going from:
punbb > phpbb2 > phpbb3 > bbpress1 (standalone) > this converter > bbpress2
at the bbpress1 stage, I checked the data, forums, users etc and all looked good.
after conversion, when going through the ADMIN page/REPLIES, you see that each reply is linked to:
‘top level forum container’ (Mismatch)
and each thead that I look at, has an empty post at the start (i guess because of this issue?).
Topics are allocated correctly as they should be though.
My forum is setup as so:
– Top Level Forum Container
– forum 1
– forum 2
– forum 3
Any ideas how to fix this issue?
Thanks!!
Okidoki! I just found out that the “bb_” in the “bb_favorites” key is indeed the table prefix of your bbPress installation. That’s good news since this fixes the problems with the Post Notification plugin (if I manage to change the table prefix of a live install).
Unfortunately I was not yet able to find an answer to my second question. That’s probably where you’ll have to jump in for me.
Thanks again (in advance)!
Hello everyone,
I just recently integrated a second bbPress installation with a wp site’s user table (another bbPress was already successfully integrated) and I think I messed up:
My users currently have the problem that they get notification e-mails (via Post Notification plugin) and private messages (via bbPM) for topics from the wrong bbPress installation.
Up until now I figured out that the reason for this is that e.g. a user’s favorite topics are stored as a comma separated list of topic IDs in the wp “wp_usermeta” table under the key “bb_favorites”. Now, if both bbPress installations use the same key for this it would easily explain why user’s get notified for the wrong topics. –> both bbPress installs would get the list and see that topic 4 is in the user’s favorites. Since every install has a topic 4 both bbPress installations would send a notification for it – unfortunately topic 4 is a different topic on each installation. Meh.
So here comes the wall of questions I am trying to understand:
1) Is the “bb_favorites” key a fixed value or is it using the “bb_” table prefix?
Unfortunately both of my bbPress installations have the same table prefix, which is okay since the live in different table spaces, but not okay if bbPress puts together its “wp_usermeta” keys like this: prefix+”favorites”.
2) I took a look at the other keys in the user meta table and found out that bbPM (private messaging plugin) uses “bbPM” as a prefix to all its keys. So even if the above assumption is true and the “bb_” prefix is dynamically added according to the table prefix of the current bbPress installation, fixing the table prefixes won’t work for this plugin. That’s why I wonder if it would work to use a SEPARATE “wp_usermeta” table for the second bbPress installation but the SAME “user” table? Probably not, but I thought it’s worth asking.
Thank you very much in advance!
Holger