Seeing the filters in bbpress.php:
// Post type identifiers
$this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' );
$this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' );
$this->reply_post_type = apply_filters( 'bbp_reply_post_type', 'reply' );
I thought this could be easily modified; however, I am struggling to get my filters to work from functions.php. I’ve tried the following solutions:
add_filter( 'bbp_forum_post_type' , function($post_type) { return 'wps_' . $post_type; } );
add_filter( 'bbp_topic_post_type' , function($post_type) { return 'wps_' . $post_type; } );
add_filter( 'bbp_reply_post_type' , function($post_type) { return 'wps_' . $post_type; } );
And,
add_filter( 'bbp_forum_post_type' , 'wps_my_custom_post_type' , 1, 1 );
add_filter( 'bbp_topic_post_type' , 'wps_my_custom_post_type' , 1, 1 );
add_filter( 'bbp_reply_post_type' , 'wps_my_custom_post_type' , 1, 1 );
function wps_my_custom_post_type( $post_type ) {
//just add prefix
$prefix = 'wps_';
return $prefix . $post_type;
}
Neither seem to work, and I am not sure what I am missing.
I’ve built a very popular forum for a particular market segment using MyLittleForum and they LOVE it. However, administering and moderating it isn’t that great. So I’m wondering if a theme could be developed for bbPress to basically mimic the MyLittleForum style?
http://mylittleforum.net/forum/
If this is possible and not yet available, and anyone is interested, please let me know your willingness, timeframe and price.
Thank you!
@tofugu – Are you using Beta 3 or RC1 from the plugin branch?
@folgerj – The only donations I’m looking for are testers and contributors.
For launch, there will probably be some auto-page creation to get the most common ones up and running right away.
Closed and unstickied. See the codex page for details.
* Forums
[bbp-forum-index] – Show the forum index/archive
[bbp-single-forum id=$forum_id] – Show a single forums topics
* Topics
[bbp-topic-index] – Show the topics index/archive
[bbp-topic-form] – Show the new topic form
[bbp-single-topic id=$topic_id] – Show a single topic
* Topic Tags
[bbp-topic-tags] – Show a tag cloud of all topic tags
[bbp-single-topic-tag] – Show the topics within a specific tag
* Replies
[bbp-reply-form] – Show the topic reply form
* Views
[bbp-single-view] – Show topics associated with a specific view
* Account
[bbp-login] – Show the login screen
[bbp-register] – Show the register screen
[bbp-lost-pass] – Show the lost password screen
Also, is there an easy way from within a theme (say in functions.php or via style.css) to change the default size of gravatars in the topic reply dialog? I’m assuming it would require a function as bbPress is setting it via a function, from what I was able to glean peeking at the bbPress code. Thanks.
I’m using 2.0 beta 3 and it’s live on my site. http://www.jeff-foliage.com I have only had one person try it and one thing I’ve noticed (which I assume will be fixed in the final RC) is up front in your face logging in or registering of users. right now the plugin uses the subscriber permissions to be able to post to the forum but to me it seems really obscure for them to get going.
I’m also using a plugin that checks ip addresses to prevent spammers from creating accounts and I’m not sure if this will affect the final RC and creating new accounts.
I’m waiting for a RC since I don’t want to mess with manually updating the files on the server.
I hope there is a RC before fall since my site is all about fall foliage in New England and from here out until 1 Nov is my busy season..
I’ts looking good and I hope you get some good donations from this…
Hi, sorry for the delayed reply, I’ve been busy with other things, and am just now revisiting the issue.
I don’t have a /wp-content folder anywhere in my hosting directory. So I’m running bbPress as a standalone install, as I understand it.
I have edited the bb-config.php file (copied from bb-config-sample.php), and it still doesn’t work.
Any other ideas? Thanks.
Forgot to add that the lang constant is just as it should be for a plugin, from the general WP config.php: (define (‘WPLANG’, ‘xx_XX’);
No need to set BBLANG anywhere.
Im trying to install bbpress for the first time and I input the database info, save configuration and it brings me to a page with just a link that says function.fopen I click on the link then it brings me to a “404 page cannot be found” What am I doing wrong? I created a completedly new db exclusively for bb via go daddy on a windows hosted site. I trying to install bb on a subdomain, does that make a different
Hi,
I was wondering how can I enable facebook connect to post replies or create topics in my bbpress forum which is installed as a wordpress plugin on my wordpress blog. Any help or a hint in right direction will be appreciated.
We have done a bit of testing with this as it’s a major issue for us.
We’ve got the translators to work on beta1 and understand the logic as follows (based on function load_textdomain()):
1.- translated po (mo) files have to be named bbpress-xx_XX.mo with the xx being the language/country combination as on standart WordPress Codex (ie es_ES) for spanish / Spain
2.- function will look for the file under the plugin directory//bbp-languages and if it’s not there will look for it at the standart WP language dir, normally wp-include/languages but this may vary.
Hope this helps anyone with this issue. Perhaps a TXT file with this info could be included under the bbp-languages folder of the plugin.
Justa a comment but I feel it would make sense to split the “old” forums regarding bbPress with the plugin related ones having so many differences in the code.
John, Thanks for the update
ok. thanks. then i use it for my blog and hope for a release soonly.
greetings
Mike
Good ideas anointed. I’ll make the auto-insertion optional.
m-jay: The code button just adds the HTML <code> tag. I haven’t done anything to prevent HTML inside the code block from being parsed or from being blocked by WordPress/bbPress. I also don’t really have any intention to do so.
Allowing <iframe> to be posted would pose a potential security risk, and the safest would perhaps use a shortcode. See if there are any plugins that give a bandcamp shortcode, there is bound to be one.
Thanks for posting that. I will give it a try as soon as possible. Thanks again.
Thanks, I’ll definitely look at it.
You can use the beta is it is now. Upgrading will be just about the same as updating any other plugin.
Nice little plugin there..
couple of suggestions.
1. only enqueue the js on forum pages
2. Don’t auto insert the bar, or at least give us the option to place it manually into our theme where we want it to show up.
I use the SEO plugin via Yoast which also supports sitemaps for custom post-types.
This is one of those MUST HAVE plugins on every site 
http://yoast.com/wordpress/seo/
Add the following code to your theme functions.php file
function wptumble_feed_request($vars) {
if (isset($vars['feed']) && !isset($vars['post_type']))
$vars['post_type'] = array('post', 'topic', 'reply');
return $vars;
}
add_filter('request', 'wptumble_feed_request');
page in question → http://textfugu.com/bb/
On my forum page index, the pages for the next topics page aren’t going to the right page for the next page.
They go to http://www.textfugu.com/page/2/ instead of http://www.textfugu.com/bb/page/2/
I saw something about this that I think is fixed by changing forums → forum, or vice versa, but looks like my code for this was right, plus I have the most updated version (actually, this stopped working after I updated, it seems).
Anything else I should check / change?
Thanks much!
Hi All,
hope you’re doing well.. I’m using the latest beta and implemented custom login/register/forgot pages using the page templates which come with the theme. my only problem is when there’s an error (email exists, empty password etc.) the form redirects to /wp-login.php , I can’t seem to find the way to override this url and return the user to the page he came from along with the notices/erros.. any ideas?
thanks in advance!
Thanks JJJ. This clarifies things and I understand the priorities.
And I’d be very interested to see bbPress 2.0’s perf on one of the big .org forums.
BTW, I think this issue is orthogonal to deep integration. It is really about…
1. The size of the posts table relative to a typical WordPress blog posts table
2. The fact that there is no denormalization to eliminate huge complex queries
This isn’t an issue for a Worpress blog, even a massive multisite installation like WordPress.com, because the posts table for each blog is separate and there is seldom a need to do a cross-blog query. This means that WordPress for blogs can scale nicely without too many tricks.
One potential solution is to create a helper table that denormalizes the things you need and points to the actual post in the wp_post table.