As I was reverse integrating the WP trunk with the bbPress trunk this weekend I was thinking a lot more about this – and the more I think about it, the more I am getting confused about what is being planned.
If WP and bbPress are being coded to use to a unified function library that would definitely break wordpress hooks. But Matt would never do that as it would break 1000’s of plugins and themes for the far more popular WordPress.
In some ways, bbPress’s db/load process and hooks are slightly more thought out/evolved than WordPress because they came later and WordPress has to maintain some backward compatibility.
So then it occurred to me that to leave the WP hooks alone, I hope you are not trying to replace the core of bbPress only with WP-like functions? I don’t see how that could be done without breaking every single plugin and theme for bbPress? Will the next (non minor) release of bbPress have a nearly-unified WP core?
In trac I see BB functions being renamed to their WP counterparts. But no wrapper functions for backward compatibility are being written. I see the backend of bbPress being hammered into backPress and I imagine the next bbPress as simply a front-end being re-written to only use the backPress, ie. wordpress, hooks.
So I guess the final question is: is there a plan to write wrapper functions or is the general attitude just to abandon all third party work to date for the next bbPress release and just hope we go along for the ride?
@fel64
Typically the cost of doing a query at all is the biggest performance concern, unless the query returns many thousands of records, then the size becomes a concern. It’s really all about profiling your code to see where the performance problems lie.
The problem here is that ajax doesn’t load large amounts of data very quickly… it’s best for small requests, not loading a giant page. There are many sites that use this technique, however, including sites like Digg.
Pre-fetching everything and hiding them has other concerns, because it would make every page load huge, and potentially without reason.
Finally, there would be concerns for google indexing if you are hiding half the posts, or also if the user doesn’t have javascript enabled.
Or, just turn off permalinks in your config.php:
$bb->mod_rewrite = false;
At least at that point, things would work for you.
problem solved.. 
instead of localhost i had to enter the other thing which dreamhost told me …
but now another problem
the forum is working fine http://test.nofullstop.com/bbpress/
but the slugs arnt??
what went wrong now??
Have a look in your mysql database with phpmyadmin at the bb_usersmeta table for your user (whatever ID that is, which you can get from the bb_users table). If you find the row that has the meta_key column of bb_capabilities, you’ll probably find the meta_value is:
a:1:{s:6:"member";b:1;}
If you change that to:
a:1:{s:9:"keymaster";b:1;}
You’ll find you’re an admin and can see the admin panel.
It is most certainly a problem with the details you have entered for the database. One of the four items is incorrect: that is precisely what the Cannot select DB error is telling you.
I can help you off list of you would like to contact me (check my profile for a website where you will find contact information.) I will need access to the config.php and your Dreamhost control panel to see the database details.
i use different database for my wordpress blogs and i created new database for my test forum
database name: testforum
user: testforum
password is also correct
I doubt what I need to enter in host..currently it is localhost and i am using dreamhost to host my account… but i am sure i do not need to enter that in place of localhost..!! 
so what could be the problem?
and in that BBLANG i have written en even though i dont have any MO file..
confused …please help me
Chris: http://www.messandnoise.com/discussions/1346861 only above 40 posts or somesuch.
From what I’ve heard, *press will probably end up with jQuery.
_ck_, is the cost of fetching a fairly unlimited and variable number of posts significantly greater than the cost of fetching just 40 once? I always thought the cost of doing a query at all was the significant thing, not the amount of data you get back – but I’ve not systematically learned SQL and I don’t really know where or how to look for this information
Is there any place you can recommend?
okay I found the cause but not the reason or solution.
this produces entirely different results in WP trunk vs BB trunk:
echo wp_hash("abc". "123")." - ". hash_hmac('md5', "abc" . "123", wp_hash("abc". "123"));
So each program cannot evaluate the other’s hash/key/hmac
Still researching. The salt is identical. This is perplexing.
“Put in a plugin” means:
1. create a new file with a text editor.
2. give it a name like “bb-restrict-new-topic.php”
3. create a header in the file that tells bbPress this file is a plugin, like this:
<?php
/*
Plugin Name: Restrict New Topic
Description: Restrict new topic creation by members
Version: 0.1
*/
4. put the text from that other page into the rest of the file.
5. be sure to close the file with a ?>
6. put that new file in your bb-plugins folder.
7. activate the plugin in your admin panel
8. test test test
I think the plugin file will look like this when you’re done.
http://pastebin.com/f488c97d5
Put this code in a Plugin. The group "Member" will be affected.
function restrict_bb_got_roles() {
global $bb_roles;
unset($bb_roles->roles['member']['capabilities']['edit_topics']);
unset($bb_roles->roles['member']['capabilities']['write_topics']);
unset($bb_roles->role_objects['member']->capabilities['edit_topics']);
unset($bb_roles->role_objects['member']->capabilities['write_topics']);
}
add_action('bb_got_roles', 'restrict_bb_got_roles');
What happens If you use this? Do only members + higher be able to post here and all can reply and read?
Nice work.
Looks like there is “only” a 6k penalty on the browser side for the extra javascript and under 1k for the extra css. Bit of work on the server side but it may be worth it for a forum that deal with a lot of code being posted.
Be sure to submit it to the bbpress plugin browser
https://bbpress.org/plugins/add/
so it gets much more exposure.
> I would have no chance in coding it myself
Not if you’re thinking like that. Starting to code in PHP really isn’t so hard and there’s no genuinely nasty bits in this plugin.
But even if you really don’t want to try doing it yourself, bumping it does no good at all. The forum isn’t active enough for this to disappear off the front page immediately and plenty of people will see. There’s also far more people with ideas than people who want to write plugins but have no ideas (and that’s the way I suspect it will always be), so plugin requests are a rather long shot.
Hi there,
Well, code highlighter its here. i love iG:Syntax Hiliter plugin for WP so i modified it to work in BBPress.
you can find it here
http://klr20mg.com/bbpress-syntax-highlighter-en/
Is the 0.1 Beta version.
Enjoy.
Cheers.
1. Looks like this is the correct URL:
http://test.nofullstop.com/bbpress/bb-admin/install.php
2. Looks like the database connection details in config.php are incorrect:
Cannot select DB.
I would also love to be able to do this without hacking too much code. I’m using the current plugin for WP, but it would be even more useful with something high-traffic like a message board.
Would be even better if it played nice with the private forums plugin. I saw mention earlier in this thread about _ck_ – Feel up to the task?
There are a number of little mini-plugins in simple code form that have never been published in the plugin browser, floating around the forum.
I’ve written several myself and already use a single file called “bb-tweaks.php” to keep track of them.
Let’s publish a collective bb-tweaks.php plugin that has them all, with all the actions hooks or direct calls disabled but documented so others can take advantage of the features.
Post your code, or link to other’s code found buried on the forum, here?
This stylesheet is referenced in your html, but it’s not actually there:
http://www.wp-portal.de/my-templates/bbpress-forum/style2.css?v=8
404 Not Found
Not Found
The requested URL /my-templates/bbpress-forum/style2.css was not found on this server.
While this looks ugly, they’re just PHP warnings. PHP error messages and warnings should not be visible on a production webserver anyway. They are there because of a problem with the bbPress code and the way it is interacting with your server, but they are not preventing you from going further. If you suppress the PHP warnings (maybe you have access to your .htaccess file) you will be blissfully unaware of the warnings.
https://bbpress.org/forums/topic/php-error-messages?replies=16#post-13128
I’m seeing some interesting behavior. Though I am a php rookie it seems like what I am trying to do should work.
I include some code in the header that parses cookies and sets variables appropriately. I use the exact same code and approach in WordPress and it works perfectly.
This is at the top of my bbpress header.php:
<?php
global $research_subscriber; // '1' if user is research subscriber
global $forums_subscriber; // '1' if user is forums subscriber
if (condition) $nyquist_research_subscriber=1;
if (condition) $nyquist_forums_subscriber=1;
?>
Just to make sure, I echo’ed out the variables afterward within header.php and they are all being set as expected.
Later on, in files that include header.php (topic.php or front-page.php) by invoking bb_get_header(), I attempt to access these global variables and they are all null.
Why are these variables not being passed? Why does this work in WordPress but not BBpress? What am I missing (bangs head against wall)?
Sam, I noticed that may have changed in/after 0.8.3.1
After some tinkering I also had to add:
$bb->sitecookiepath = '/';
(there is also a related minor issue in that I can’t seem to affect the cookie domain to be undotted in the newest builds)
I have now put together some basic code which successfully interacts with OpenID servers.
Unlike other solutions it doesn’t requires any other libraries or special languages/features on the server other than CURL support (with SSL) which is fairly common.
Unfortunately during this time OpenID has upgraded to 2.0 and certain providers like Yahoo will only accept 2.0 queries and not 1.1 which is all the code can handle.
But if there is any serious interest, I could get bbPress to accept openid from wordpress.com/livejournal/aol/etc. which continue to allow 1.1
If your site is at:
http://www.example.com/
And bbPress is at:
http://www.example.com/forums/
Then you will need to add this line to your config.php file…
$bb->cookiepath = ‘/’;
That way your code in the base directory that is trying to read the cookies will be able to do so.
bb-load essentially loads the entire bbpress framework
It just doesn’t generate any template output
It’s how RSS feeds, etc. are done
You can indeed evaluate the user login via loading the entire framework. But you can also write a very small subset of code to check the cookie and then read the database directly too.
However note that if your bbpress cookies are locked to a path (ie. /forums/) as they are by default, they will not be valid outside of the path and no user will be detected. So you have to change the cookiepath in config.php
Otherwise neither method will work.