In my case, I have not created any plug-ins or templates.
I changed Permissions on ‘my-plugins’ and ‘my-templates’ to 755 (from 750) but I still get the error every time I click on a topic.
The bug seems to be in ‘functions.bb-template.php’ which is exactly as it was downloaded from bbPress.
This is the important part of the error message –
Warning: include() [function.include]: Filename cannot be empty in /home/…/public_html/members/bbpress/bb-includes/functions.bb-template.php on line 45
Can we get a techo from bbPress to checkout the code, particularly, why are the brackets empty?
Thanks
Derek
Notice my “kakumei black” theme:
http://heroesonly.com/heroes/bbpress/
Hi, I have finally converted over from phpBB2. I wanted to do this for a long time, and had done some trial runs in the past, but only now have I committed myself to bbPress. I think it’s for the better. phpBB3 still uses the brain-dead “mod” system of editing the code instead of using a plugin API. (Yes I did write phpBB mods.)
Now I’m hearing all this talk about bbPress going away, etc. etc. I think it’s ridiculous that people are getting worried about this. bbPress is awesome.
I don’t know how to tag this post… any suggestions?
It’s possible to have both… I hacked Support Forums to display whether these user-submitted Ideas were Under Review, Reviewed, or Implemented:
http://ideas.weddingbee.com/
And both the Support Forum “status” and the “closed” label appear… is that what you’re going for? If so let me know, and I can post the code I used to display the labels.
gerikg, I just committed the patch to fix this. I believe bbpress.org is running trunk and it updates on some sort of schedule/cron, so that fix will be present here tomorrow probably. Could you test again tomorrow?
I don’t know when or how the code gets updated here, but I am seeing my changes here a day or two after committing to trac.
Thanks
@chishajer ~ thk u for your efforts here on bbpress. i second your opinion! open source doesn’t die, it just forks..
and with 9 active tickets 1.0.3 is just around the corner.
I’m working on a little plugin that is a rework of Hidden Forums. It will allow the user to hide topics as well of forums. I will post the code after some testing.
This is a fix just to solve your problem:
- Open
/bb-includes/backpress/class.wp-http.php
- At the starting, after
<?php put (on a new line):
if ( !class_exists( 'WP_Http ' ) ) {
- And at the end put:
}
I would probably report this issue on the BackPress trac
/bb-includes/backpress/class.wp-http.php (bbPress 1.1-alpha revision 2412)
BBPRESS functions:
function &_wp_http_get_object() {
function wp_remote_request($url, $args = array()) {
function wp_remote_get($url, $args = array()) {
function wp_remote_post($url, $args = array()) {
function wp_remote_head($url, $args = array()) {
function wp_remote_retrieve_headers(&$response) {
function wp_remote_retrieve_header(&$response, $header) {
function wp_remote_retrieve_response_code(&$response) {
function wp_remote_retrieve_response_message(&$response) {
function wp_remote_retrieve_body(&$response) {
conflict with WORDPRESS (WordPress 3.0-alpha revision 13909) /wp-includes/http.php the same functions
The tricky thing with Hidden Forums is the lack of a frontend. The plugin doesn’t have a frontend at all… there are only manual settings which let you set individual forums as hidden or not. The frontend is handled through bbPress’ built-in “move topic” pulldown…
That said, someone might be able to hack Hidden Forums to add an extra frontend toggle that lets admins hide individual topics!
from SAM
“A first attempt at getting WordPress 2.7 and bbPress 1.0 to play nice again is now in trunk [1862].
I’m specifically talking about “deep” integration, i.e. when you include WordPress inside bbPress to gain access to WordPress’ functions.
This will need a lot of testing, so please post any issues you have on the relevant Trac ticket, #972 (which will stay open until some more testing has occurred).
I recommend using the following code at the top of your bbPress bb-config.php file to include WordPress inside bbPress:
if ( !defined( ‘ABSPATH’ ) ) {
include_once( ‘/Full/Path/To/wp-load.php’ );
}
Note that this includes “wp-load.php” not “wp-config.php” or “wp-blog-header.php”. This avoids running WordPress’ template loader which presumably isn’t needed inside bbPress. Some implementations may want it though, so if you find you need it then give it a go and let us know how that goes.
Also note that all filters and actions set in WordPress whether default or added by plugins or themes are cleared out completely. That means that plugins and themes installed in WordPress cannot add filters or actions to bbPress at all. This may have some implications I’m not aware of yet.
Go nuts! “
Does adding:
define( 'COOKIEHASH', '9999999999999999999999' );
define( 'COOKIE_DOMAIN', '.website.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );
to bb-config.php do anything or it’s just dead weight?
I think that Hidden Forums can be modified in order to hide individual posts. It’s just a matter of changing the hidden_forums_filter filter function but it seems that the author doesn’t update her plugin no more.
Still looking forward to the codes……
I have a similar problem –
I installed bbPress today and logged in as administrator then tried to move around the initial post.
Whenever I try to ‘Send Post’ (also when I try to ‘edit’ a post/topic; or click on a topic as administrator), I get the following error msg –
Warning: include() [function.include]: Filename cannot be empty in /…../public_html/members/bbpress/bb-includes/functions.bb-template.php on line 45
Warning: include() [function.include]: Filename cannot be empty in /home/…/public_html/members/bbpress/bb-includes/functions.bb-template.php on line 45
Warning: include() [function.include]: Failed opening ” for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/…./public_html/members/bbpress/bb-includes/functions.bb-template.php on line 45
I have re-FTPed ‘functions.bb-template.php’ but I still get the same problem.
There seems to be a bug in the code of ‘functions.bb-template.php’ – i.e. there is nothing within the brackets after the include function ().
Any way of resolving this quickly?
Thanks
Derek
After some more testing, i’ve managed to get it working exactly how I wanted. You’ll need to change it in front-page.php.
If you want the code, here it is: http://pastie.org/896738.txt.
Hope it works for anyone who wishes to use it.
edit: i mentioned that you need to replace forum.php with the above code, this was a mistake so you will need to revert the forum.php back to it’s original state and only change the front-page.php.
Does anyone know how much time there is between official releases, approximately? I’m just wondering if I’ll be waiting weeks, months, or years.
don’t work this code and nothing appear
hi guys,
thanks gerikg’s instrucition,very helpful!
i followed gerikg’s instruction,but meet a problem.
on task 7 after i clicked on save changes,
i should get the code below:
define( ‘COOKIEHASH’, ‘9ff1a614da865684d07223b202d18708’ );
define( ‘COOKIE_DOMAIN’, ‘.10.10.1.20’ );
define( ‘SITECOOKIEPATH’, ‘/wordpressmu/’ );
define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );
define( ‘COOKIEPATH’, ‘/wordpressmu/’ );
but actually i lost
define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );
so when i log into bbpress then
i can log into wordpressmu automatically
but i cant log into wordpressmu admin automatically
does anybody have an idea what i have missed?
your help will be much appreciated.
thanks guys
One thing, not sure if it matters. The forum pages all return a 404 code, even though the page is displayed. This was an old problem with WordPress integration.
Here is something:
http://www.adrogen.com/blog/wordpress-wp-blog-headerphp-causes-404-in-ie/
Also, are you including wp-load.php or wp-blog-header.php? Should be wp-load.php.
There is another post on these forums on how to fix it but I cannot find it right now.
I wasn’t able to add a tag either
Something like:
<object width="300" height="200">
<param name="movie" value="your_file.swf">
<embed src="your_file.swf" width="300" height="200">
</embed>
</object>
File rss.php at line 182. It seems that bbPress retrieves the last 35 posts if called like /rss
if ( !$posts = bb_get_latest_posts( 35 ) )
die();
you can add a new case on top of that file but I don’t think that it’s a wise choice expecially if you have a huge forum.
@ miruru.. I’m happy that you are also interested in this issue… I was also searching the same thing.. but I’m depressed and left if..
yes you are right this issue is two year old… “but we are new on bbpress”
I know its not good to highlight someone but It was hurting …
I was interested in this post https://bbpress.org/forums/topic/forum-list-alterations .. because the Micheal has been successful to solve this issue.. I also tried it… but i had failed.. so then I decided to contact Micheal to solve this issue… I had registered on his site ( http://www.inniosoft.co.cc/devstation ) and ask him to solve this problem… but it was amazing that he is not interested to solve bbpress issues.. and said his forums not just for bbpress.. ( that’s why he is not accessible to his server and he was unable to show the code )…
he said he will show the code will soon when he will get his server .. so after some weeks I contacted him again becoz its had been toooo late.. huh then he said even he was not able to access his server.. and you know what happed “he deleted me from his forums
” and kick me off by saying that I was against his forum’s term and condition .. and its a “continues ignorance” to ask questions…
please don’t go there.. its my humble request to all
otherwise you’ll be depressed like me 
we will be happy if someone solve this issue except “Micheal “.
your well wisher
Pagal
Here are some more detailed instructions for you:
1) First, create a new forum and call it “Hidden” or something similar.
2) Upload and activate the Hidden Forums plugin.
3) Get the forum id number here: http://yoursiteurl.com/forums?forumlist
For the sake of this example, let’s say the forumid of your new forum you want to hide is #3.
4) Now edit the settings manually at the top of the plugin:
http://svn.automattic.com/bb-plugins/hidden-forums/trunk/hidden-forums.php
Use the settings below, at the end of this post.
5) Reupload your plugin with the new settings, and see if it works!
Hope that helps! 
$hidden_forums=array(3); // hide these forums, list by comma seperated number
$hidden_forums=array(‘keymaster’,’administrator’); // these roles can always see ALL forums regardless
$hidden_forums[3]=array(‘administrator’,’moderator’); // exact formal role name, *not* ability
$hidden_forums=array(1); // these users can always see ALL forums regardless
$hidden_forums=”[H] “; // text, html, css or image to indicate hidden forums/topics, make it =””; if you don’t want any label at all