I had problems with the “search in forum” feature. The “select” input control is displayed, but it seems as if the value i choose isn’t used by the code.
When I press submit, this is he URL that is sent to the web server:
http://my.hostname.com/forum/search.php?search=nisse&forum-id=2
In this example, the forum restriction does not take effect.
However,
if i manually change the URL to:
http://my.hostname.com/forum/search.php?search=nisse&forum_id=2 (note the underscore; forum_id)
then it works!
I can track it down to the file:
/bb-includes/class.bb-query.php
and this code:
if ( $forum ) {
$r .= "t<div><label for="forum-id">" . __('Forum') . "</label>n";
$r .= "tt<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any'), 'id' => 'forum-id
' ) ) . "</div>n";
$r .= "t</div>nn";
}
Changing forum-id to forum_id here fixes the problem, but I would prefer not to tamper with core files.
is there the ability to use the WP type INCLUDE in bbPress in order to include an custom php file? What I want to do is take the repeating “sidebar” code into a separate file so I don’t have to update all the files that include the sidebar code
Thanks, I tried it with the default theme and it worked. I compared side by side and still couldn’t figure out what was causing the problem, but scrapping what I had and starting from scratch again seems to have resolved the problem.
Can’t wait until there’s a codex. 
Thanks!
I tried what Ben L. suggested and it works fine even with a forum with no topics (in which case there is no topic title shown because there is none, and it shows a view count of 0)
I implemented it this way:
<td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></a></td>
I would also prefer if bbPress and WordPress stay separate. That would make bbPress much more powerful.
What we need for new users is very clear instructions on how to integrate. The login cookies was the nightmare part when I first set it up, because of so many different threads and inconsistent advice on how to do it, so it became a trial and error thing, with a great loss of time. The same could be done with clear instructions on how to integrate a WP matching theme. If all the steps are defined clearly, and there is a codex like WP has, having bbPress as a standalone would allow for a lot more customization and expandability than if it were a plugin. Many would rather use certain plugins on WP, and others on bbPress, without bloating either one (and possibly avoid plugin conflicts between the two).
Oh! I see the problem! (Or at least one of them)
Try <?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>
I tried the code, it’s not working.
Anyone?
<tr<?php bb_forum_class(); ?>>
<td><?php forum_icon(); ?> <?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><b><?php forum_name(); ?></b></a><br /><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
<td class="lastp"><?php $topic = $GLOBALS['topic'] = get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ); ?><small>by <?php topic_last_poster(); ?><br />on <a href="<?php topic_last_post_link(); ?>"><?php echo date("D M j Y G:i:s", strtotime($topic->topic_time)); ?></small></a></td>
</tr>
results in
by
on Wed Dec 31 1969 19:00:00
Thanks, but I’ve already tried that, it still doesn’t seem to work.
I’m still unclear as to why I shouldn’t be putting my custom template in /my-templates/ rather than /bb-templates/. It’s often said that you shouldn’t, but when I put it in /my-templates/ most of the tags stop working, like the one listed above. I still haven’t got it to work.
The code to get topic titles and so forth don’t seem to work outside of the /bb-templates/ directory either?
Thanks.
You could just make the WP install part the ‘about this site’ page, or use it for a FAQ. Most forums I’ve seen end up using some plugin to force that anyway, so the loss is a little negligible.
What about having WP bothers you so? I mean that sincerely, since I suspect a good, logical argument would be beneficial to the development. You say you can’t afford a WP install, but I don’t know why (security risks? just don’t like it…)
Speaking as a coder/programmer/developer/whatever, I think that BB is most often used in concert with WP, and the integration is superficial right now. You can easily get user integration, but login can have issues and themes are often separate. While I had only minimal issues setting it all up, the difference between setting up WP and BB versus WPMU+BuddyPress+BB is obscene! It’s all of a click and done for the later, and there’s really no reason it can’t be that easy for WP. That kind of integration would really help BB get out there and be used.
This is a 5 year old app, it’s barely in V1, and it needs an injection to get it back on track. If the developers feel it’s easier, better and work on and support, well, I trust them. As far as forums go, there are other, better, stand-alones out there. If the dev team don’t want to complete against those, and want to make a niche app, that’s not a bad idea.
The forums at wordpress.org and mu.wordpress.org and wordpress.com are all using bbPress, which I suspect might be the driving force there.
@gerikg : I think that only works in their site ( Facebook ), but what a great progress ! So soon, we will only need _ck_’s OpenID plugin
The problem is that some people ( me for example ) don’t want to install a blank WordPress blog integrated with the bbPress forum just for the Facebook Connect support .
Oh and, I think it’s a really bad idea to make bbPress a WP plugin, if it’s gonna happen, there will be two choices for me : either leave bbPress and search for another easy to design forum software, or stick with the 1.0.2 or something like that and avoid to update . Because I can’t afford to install a WordPress blog just to use bbPress !
So, I think Matt is wrong when he’s saying that bbPress can’t compete in the forum software market ! IT CANS ! Just do some little improvements like default theme rewriting ( so that newbies will be encouraged to use it ), and write a Codex so that everyone sees how easy it is to customize bbPress, then, when bbPress becomes mature, try to link the two sites wordpress.org and bbpress.org together ( well yeah, when I visit WordPress.org, I don’t see any mention of bbPress ! ) to have a greater user base .
Matt had two choices :
- Listen to the non-coders ( who are requesting to make bbPress a WP plugin, because they find it “too hard” to integrate in the WP theme ) .
- Listen to the coders ( who are saying that bbPress should stay a standalone application ) .
Matt made the wrong choice ( the first one ), so I think that many coders will leave bbPress .
Sorry but… If someones wants a WP plugin, there are tons of them : SimplePress is a great example !
So please, leave bbPress as a standalone application !
@chrishajer, glad it works!
I did use the template of 1.0.2 for reference.
For 0.9.0.4 one can try to adapt it from that original template.
The reference file is tags.php of the Kakumei theme.
Add the bb_load call on top to create the page, and take off the 80 limit.
Hopefully, it will work the same way. The basic idea is to take that limit off when tags are called.
plutopsyche not yet, but they are going to work on it (codex) by 2010.
Any other suggestions?
Hi 
I have made a post at my forum, Dev:station:
“The problem with bbPages is that the customized pages are stored in an SQL Table within your bbPress Database. In effect, and based on the way it loads, the PHP code will not execute.
If, however, the plugin saved the custom page as a PHP file, it would work.
Once bbPress starts to mature with a new version, I may create such a plugin.”
Sorry, that’s:
# BEGIN BBPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
Options +MultiViews
</IfModule>
# END BBPress
So that page is current? It appeared to me that it was a bit out of date with the references to pre-1.0, but hey, glad it works!
So that solves 2) Awesome! Am still seeing 1)
Thinking this is an .htaccess issue. Is there a current link for what should appear in the .htaccess file? Still getting blank page anytime I click on Admin or access an admin page manually (via url).
: Have tried
– Deleting cookies
– Flushing cache
– various long & convoluted .htaccess files found here.
Have installed to a subdir of my root wp installation, dir is named forum.
Here is my current .htaccess for bbpress:
# BEGIN BBPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forums/
Options +MultiViews
</IfModule>
# END BBPress
Almost there!
buddha trance, works perfectly in 1.0.2.
Using 0.9.0.4, it gives me the top half of the page and no more. These are the last two things in the rendered page:
<div id="main">
<div class="bbcrumb">
Add <?php $topic = $GLOBALS['topic'] = get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ); ?> before the snippet you posted. (Untested, but I think it will work)
Dear Developers………. 
Recently I’ve used bbpages plugin .. it works fine… but I need one thing… the bbpages plugin’s editor just accept html code… so i want to execute php code .. .how it possible?… i want to include
<?php include(“filename.php”); ?>
in the editor but it does not accept php code… plz guide me how can I execute my php code in this editor … love you all
I have downloaded it, thank you.
I saw that the problem came from the fact that it was only allowing Key Masters as the minimum access. I realized that there was a problem with my database which is why it was not saving the settings when I changed them.
It al works perfectly now – thanks!
That’s awesome! I have just commented on the beta.
Thank you!
And thanks for the tips – they sound very logical, and pretty much confirm what I kept asking myself.
I really appreciate all your help.