Just taking a shot at this:
I am guessing that you are talking about the single-topic page which displays the first topic followed by all the replies.
If this is the case:
Add the following line to your functions.php file
add_filter( 'bbp_show_lead_topic', '__return_true' );
What this is going to do is separate out the lead topic from all the replies. It creates a great separation where you can then style the first topic completely different than the replies. Pretty cool actually.
*Make sure to use the default theme to see this in action. You don’t have any of the needed logic in your code above, so your code wont output the separation. You can find the needed logic in the template files.
This is a lot more elegant than counters and it’s built in.
Hope it helps. (there are tons of cool hidden ‘secrets’ like this within the code, thnx JJ!)
I would probably start by finding a good heat map plugin which creates a widget for output. I would then modify the plugin to use topic_tags instead of post_tags. Then it would be a matter of placing the widget into a sidebar and your good to go.
*I am not currently aware of a heat map for bbpress, but modifying one for blog post topics should be just a matter of changing a few lines of code.
== Installation ==
1. Place the ‘bbpress’ folder in your ‘/wp-content/plugins/’ directory.
2. Activate bbPress.
3. Visit ‘Settings > Forums’ and adjust your configuration.
4. Create some forums.
5. View your site.
6. Adjust the CSS of your theme as needed, to make everything pretty.
You have to do plenty more than these steps if you want to install and have some forums up and running on your blog.
I think it’s a bit of a cheat to suggest this is so easy to complete. Absolutely hellish in my experience. 2 days in and still nothing.
You make no mention of setting up pages with the shortcode tags, no mention about issues with sign up conflicts and documentation is non existent if you want to add it to wordpress.
Is this another case of tech people making a great system and then just forgetting that people have to use it?
Where are the wordpress installation instructions?
Please someone just tell me if any exist as I’ll go for another system if not.
Bob
sorry about the garbled code above. I tried to edit it so that it shows up clean, but bbpress won’t let me.
Investigating further, this seems to be a known memory leak in PHP:
http://paul-m-jones.com/archives/262
I see the culprit is in the importer:
<br />
$topics_query = new BB_Query( 'topic', array(<br />
'forum_id' => $forum->forum_id,<br />
'per_page' => -1,<br />
'topic_status' => 'all',<br />
'order_by' => 'topic_start_time',<br />
'order' => 'ASC'<br />
) );<br />
Instead, it should be something like:
<br />
$page=0;<br />
$per_page=50;<br />
$topics_query = new BB_Query( 'topic', array(<br />
'forum_id' => $forum->forum_id,<br />
'per_page' => $per_page,<br />
'page' => $page,<br />
'topic_status' => 'all',<br />
'order_by' => 'topic_start_time',<br />
'order' => 'ASC'<br />
) );<br />
Strange thing is that even when you step through the pages it still doesn’t free the memory. You can test it with:
while (isset($topics_query->results)) {
echo "<p>Mem usage=" . memory_get_usage(true)/1024/1024 . "</p>";
//echo "
"; print_r($topics_query->query); echo "
";
//echo "<p>" . $topics_query->results[0] . "</p>";
$page++;
$topics_query->query = $page;
//thought following might help, but doesn't
//unset($topics_query->results);
$topics_query->query();
}
exit;
I found the solution for this problem. The root cause is the qtranslate plugin which only displays topics marked with <!–:en–> and <!–:–>.
Changing the post_content for all topics fixed my problem. Here’s the SQL code I used to fix this.
UPDATE wp_posts
SET post_content = CONCAT(‘<!–:en–>’,post_content,'<!–:–><!–:nl–>’,post_content,'<!–:–>’)
WHERE post_type = “topic”
AND post_content NOT LIKE “%:en%”
This is my forum layout.
<div id="wrapper">
<header> header stuff </header>
<div id=”content”>
<aside> Topic of Forum info (like a sidebar) </aside>
<section>
<header><h1>Topic title</h1></header>
<hgroup class=”reply-ID” id=”-1″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-1″> reply content </article>
<hgroup class=”reply-ID” id=”-2″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-2″> reply content </article>
<–! repeats of the above code –>
</section>
</div><!– end #content –>
<footer> footer stuff </footer>
</div><!– end #wrapper –>
It would be very helpful to have an (extra) counter on my first <hgroup> and <article> pair of tags. This way i could only style the starting topic content and make it stand out, because the first author always-/most of the time has a question and i would like to make it stand out more from the other replies.
I don’t want a topic or forum ID because those are too unique.
I need something that starts counting by Zero or One on every new topic like a Reply counter 1, 2, 3, 4, 5, I could add them to an ID or Class (shown above) to make it unique.
Something like a WP-comments counter.
You’re right, BJ, and I removed my additional call that I’d placed in there, and it still works. I’d LOVE a tutorial…once I get this finally figured out and down perhaps I’ll try and write one.
I was just getting comfortable using BBPress 1.0 and now it’s a whole new game. 
I already much prefer the plugin though, if only for the unified backend and easier integration of users.
1. How can I show something after the last post?!? You know that the last post has no id to use that. I wanna show the Closed Topic messege after the last post but it come under topic title
http://up8.iranblog.com/images/61frq7cfblw4039p3jvv.png the code is this:
<div id="entry">
<h2<?php topic_class( 'topictitle' ); ?>>
<span id="topic_labels"><?php bb_topic_labels(); ?></span><?php topic_title(); ?> <span id="topic_posts">(<?php topic_posts_link(); ?>)</span>
</h2>
<?php do_action('under_title', ''); ?>
<?php if ($posts) : ?><?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php bb_post_template(); ?>
<?php endforeach; endif; ?>
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php if(bb_is_user_logged_in()) { echo post_form();} ?>
<?php else : ?>
<div id="closed">
<h1>موضوع قفل شدهاست</h1>
<p>شما نمیتوانید به موضوعهای قفلشده پاسخی دهید.</p>
</div>
<?php endif; ?>
</div>
2. How can I fix this problem? http://up8.iranblog.com/images/6z4otkp479qzah6tr5.png
I’ve installed a spoiler plugin which uses html tags as bbpress does not accept shortcodes within posts. The spoiler plugin is called enhanced-ss.
The plugin works fine within WordPress Posts but does not seem to work within bbpress posts. I am using the latest wordpress version, buddypress version and bbpress 2.0.
The code is available here –> http://pastebin.com/AkH7eNJ4
Is there a reason why it does not display within a bbpress post?
I want to use ‘bbPress Topics list’ widget, outside widget.
I’d very happy that someone let me know the code to use it outside widget.
Thank you in advance.
@ Clicknathan,
Did you copy-/paste all files from the plugins (bbPress folder) to your Child Theme folder?
If you did so, you have the functions.php file from bbPress inside the Child Theme folder and i have been looking inside that functions.php file and at line: 120 there is already a code that says:
public function add_theme_support() {
add_theme_support( 'bbpress' );
}
Thats why i didn’t added the add_theme_support code.
Everything seems to work for me but i really have no idea if i’m doing it correct.
If somebody has a tutorial website that explains it better (how to setup a Child Theme bbPRess) post it here.
I would like to learn it the right way, not that i’m telling other people wrong info.
Thanks JJJ.
I love how easy it is to understand the WP Codex.
At this point i’m looking at this page:
http://phpdoc.ftwr.co.uk/bbpress-plugin/
But it’s not as easy as the WP codex.
Thanks JJJ.
I love how easy it is to understand the WP Codex.
At this point i’m looking at this page:
http://phpdoc.ftwr.co.uk/bbpress-plugin/
But it’s not as easy as the WP codex.
I’ll be putting together a codex in the coming weeks. Just dropping an update that eventually we can unsticky these topics and have a real place for documentation.
I’ll be putting together a codex in the coming weeks. Just dropping an update that eventually we can unsticky these topics and have a real place for documentation.
If you have a custom theme (one which you control and maintain yourself) you can create a file named ‘bbpress.php’ in the root of your theme to act as the “wrapper” template for all of your forum content.
Template files prefixed with ‘page-‘ are for WordPress pages, and also reserved for actual Page Template designs. It’s a bit confusing, but you quickly adapt. 
WordPress custom post types use the ‘archive-‘ prefix to denote the default fallback template file if you have not created a WordPress page using the page template in its place.
You could also create a WordPress page with the slug ‘forums’ and make a template called ‘page-forums.php’ and bbPress would default to that too. There are several ways to skin this cat, and bbPress comes with the ones that are tho most flexible.
I’ll be on a work related trip through October 1, so my availability to help will be diminished. In the meantime be sure to keep your eyes out for plugin conflicts, and please document any duplicatable bugs you find at http://bbpress.trac.wordpress.org.
Moderators, the power is yours.
Use the code in the bbp-core-widgets.php file as your guide. It is it’s own tutorial.
The function it serves is allowing Groups to have a discussion forum. 
Currently groups cannot have multiple forums. They will be able to in future versions.
Here’s an update. I was able to get further by adding the following to ‘step3’ of the bbpress.php file.
ini_set("memory_limit", "500M");
but, it seems the import script lags behind incredibly.
Is there no way to run this on the command line?
Is there any reason why it is so inefficient with memory usage?
We are creating a custom theme and have been trying to activate “hot tags” like those being used on wordpress.org/forums and other boards. I’ve searched around the board and found threads that are pretty dated and the code isnt working. BBPress has probably moved past most of the old suggestions.
What do I need to do to add the tag heat map to an area on my custom theme on mysite.com/discuss?
It worked! Thank you so much, anointed! Now just have to sort out how to format those pesky Gravatars, but I hope I can handle it on my own (wouldn’t want to waste your time!)
Anonymous User 8347663Inactive
But i am a really bad css coder. 
Is it possible to pay anyone or get some extended tutorials?