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.
Thank you rmccue! bb-load.php was the only file required to make those functions work. I guess that was the source of the chain of includes. Thanks a bunch
It sounds like just including the bbPress function files and using those functions would be the easiest. I couldn’t figure out which files needed to be included for the login functions to work though.
I tried doing if (bb_is_user_logged_in()), which required /bb-includes/pluggable.php and /bb-includes/functions.php, but after I included both those files I was left with the following error:
Fatal error: Call to a member function get_row() on a non-object in /bb-includes/functions.php on line 1228
Am I missing some other file, or is it just not possible to use this function outside of the actual bbPress build?
Without going through the bbpress functions or mimicing the login authentication system (look in pluggable.php) you could never tell if a user is actually logged in, or being spoofed.
However the bbpress/wp cookie will persist and if the cookie path is set to the website root (instead of locked to “/forums/” – you’d have to change the default cookiepath) you could read the cookie and see if the visitor has a bbpress username. But if several people used the same computer there possibly could be several cookies.
In theory you could force sessions to always be on via a plugin for bbpress and watch it that way too. But note that sessions slow down server performance if it’s an active site.
Best bet is to change the cookiepath and decode the cookie with a smaller subset of code.
That topic header sounds dumb but I’m wanting to have it on my bbpress forum that each topic has only one page, with say 30 posts shown. When there are more than 30 posts, the page divides in two and in between the two sections (each with 15 posts) there is a button or something that says ‘View Posts 15-74’ and when you click on that it loads up the rest of the comments in its place.
Pretty much you can have a thread where you only have 30 posts shown, the first bunch and the most recent bunch and if you want to read all the other posts in between you just click on the divider bit in the middle.
Example? Exactly like the topics on this forum: http://www.messandnoise.com/discussions/
Hopefully someone else thinks that this is a great idea and would consider making a plugin or something. I’ve got no idea how hard it would be but I’d really, really like to see it and I would have no chance in coding it myself
Hi,
I decide to give it a shot to bbPress and i like it. 
See my theme in http://klr20mg.com/foro/ is a spanish blog/forum
see ya.
Another fix for another caching bug:
The query below is never cached – hence if the avatar is for a user other than the current one and is shown multiple times on a page, it causes a query each time since it does not pass through the bbpress caching mechanism.
(around line 117)
$bb_query = "SELECT meta_value FROM $bbdb->usermeta WHERE meta_key='avatar_file' AND user_id='$id' LIMIT 1";
if ( $avatar = $bbdb->get_results($bb_query) ) {
replace with this code to properly cache and radically reduce queries on a busy topic:
if ( $avatar = bb_get_usermeta( $id, "avatar_file")) {
$a = explode("|", $avatar);
note that $avatar[0]->meta_value is then simply replaced with $avatar
This may require newer versions of bbpress (build 904+) but that was seven months ago as of my post now.
I think I am going to whip up a little “import gravatar” feature for this.