There’s no equivalent that I know of for bbPress. It would be the equivalent of a WordPress blog post page, where you want 9 posts (for example) listed as a default, but if there is a long post, some sort of limit kicks in. I don’t know of a way to do this in WordPress at all, other than limiting the number of posts on a blog page, or with a custom query. The nextpage tag only works on a single long post. It’s possible you could change the number of replies listed in bbPress when it encounters a long post with a tag like that, but I haven’t seen anyone do that yet.
I guess I made it a little confusing with the category reference to WordPress.
You’re on the right track, but what I’m looking for is detecting what forum a topic is in, this will be used by title in the front_page as well the titles in the topic_pages.
Illustration:
Topic Title
File under: Forum 1
Making the forum link linkable would be ideal as well. Thanks.
Hatter thanks for the lesson, even though most of it was above my head I’m very grateful for your help. Btw your code worked like a charm.
I feel like an a** since I’ve been littering these boards with newb questions. With that said, I was wondering if you could help me with another minor thing that I have been trying to figure out. In WordPress you can call the_category(); which indicates which category the post is in. I’ve been searching the forum and there was one person who asked the same question but didn’t get a reply can this be done?
Sorry for hijacking my own post
.
A bit surprised no one has chimed in yet, didn’t think it was that difficult to achieve.
Anyways here is the code that I found in another thread:
<?php
function get_post_teaser($chars = 200){
global $bbdb;
$topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic
$first_post = (int) $bbdb->get_var("SELECT post_id FROM $bbdb->posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");
$content = substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0, $chars); //gets the first 200 chars of the post
return $content;
}
?>
I figured it’s the same basis, however since I’m pretty much brain dead in regards to php I can’t for the life of me make the post_text show fully. This code strips out html code so links don’t show, how can the code be altered to allow html? I figure this code is similar to WordPress’ content_excerpt. If there is another way, I’m open to suggestions.
Sorry for all the newbie questions, I assure you I’ve tried my best to track down my issues in the forum search before asking my questions, unfortunately due to lack of a codex and documentation I’m pretty much at a lost.
I had a similar problem the first time I integrated a bbPress and WordPress site. In my case, all I had to do was clear the old bbPress and WordPress cookies, and next login went fine. Maybe give that a try?
I have what I hope is a fairly easy question to answer: On the WordPress side of my site (running 2.8.5), I have a custom script that loads a small icon showing the status of users who have donated to the site, as well as for staff members. As you’ll see below, it calls the user_id and then looks for and displays an image with the matching name.
<?php $user = new WP_User( $comment->user_id );
if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
foreach ( $user->roles as $role )
echo "<img src='/{$role}.gif' />";
} ?>
I’d like to introduce this to the forum side as well. I’m running bbPress 1.0.2, and it’s fully integrated, and I’m trying to add this to the standard Kakumei template in the post.php file, above the post_author_avatar_link line. It doesn’t appear to break anything, but it also doesn’t load the image, or show a broken image link that would hint that there’s no appropriate image to be found.
It also appears to recognize the WP_User term, but not BB_User (it breaks with an error when changed).
Any ideas how I can get this working for at least the staff levels (keymasters, admins, moderators)?
@circuit: i’ve looked at your website, and im genuinely impressed. the latest forum posts on the right hand side are visable on your wordpress pages. Was this achieved by calling bbpress header after wp header? Im wondering if this is an option as I have read some now about it being doable. It seems the code you have included brings in the latest posts in your forum, correct? My aim is to bring in latest posts in a specific forum on my catagory pages, with each forum included different dependent on catagory.
Does anyone know if what Im trying to do is possible with this software? Im going to be trying to do this with the header method for the next few days, so anyone who has some info on the subject would be a god send. I have a few threads from this forum that I’ve got saved, but they are very dated.
Hello-
For some reason when I add a custom theme to the “my-templates” directory it does not show up in the Manage Theme admin screen. If I move the theme into the “bb-templates” directory it shows up as I would expect, it’s just that I would like to have the theme in a folder that is not touched during an upgrade.
I have integrated bbpress with wordpress so that cookies are shared. Here is the structure that I have:
WordPress Root (directory)
– BBpress Root (directory running version 1.0.2)
— my-templates (directory 755)
— mycustomtheme (directory 755)
—- various php files (files 644)
—- style.css (file 644)
I’m fairly certain it’s not a theme issue, I’ve gone as far as moving the Kakumei theme from the “bb-templates” folder to the “my-templates” folder and that doesn’t work either. Can anyone give me some suggestions as to what to look at next?
Thanks–
I apologize if this is elsewhere, but I am in a panic and have to go do my real job for a few hours. I upgrades to the latest version of bbPress over the weekend and everything went fine. Today I got greedy and tried to create a WordPress blog and then link to it. I followed the instructions on bbPress “Settings” and also installed the plugin on WordPress. I was trying to check the four user things that had to match. I am sorry I can’t quote them, but I can’t log in to see that info again. It was in the “WordPress Integration” area. I had both config files open and found the mentions in the WP, but BB had a line about “Secret” instead. I swear I closed both without saving and bam, I was kicked out of bbpress. When I attempt to login it says, “user does not exist.” I have tried password reset and it sends a new one to my e-mail, but it still says that I don’t exist. I can still see, my forum, but cannot login.
Please help. I do not know .php, but I typically take things slow and careful and follow the directions. I am sure I boogered something up, but I am not sure what.
http://www.mocog.com
Thanks in advance,
-Shoe
ajsilvers – you might be better off with a WordPress forum plugin to achieve what you want.
there are a LOT of threads about this on the forum already. so much so that it’s becoming hard to find threads about anything else 
search the site (i recommend the ‘search google’ option) for ‘integration’ or ‘wordpress’.
what you want is possible but not without a considerable amount of time and some intricate theme modification.
you can see my wordpress(MU) + bbpress + buddypress install here:
http://www.copsandrobbers.net
the forum is actually entirely separate, apart from the wp_users table. what you are seeing is a shared header graphic and cloned stylesheet. that is probably what you need to do.
thanks everyone – this suggestion of mis-matching ‘www’s gave me the clue i needed to get my cookies working.
Were you successful in doing the same for migrating posts and forums from bbpress to word press?
Hey Guys, these both look interesting solutions but is there a way for a relative non techie like me to achieve the following.
I am using the thesis theme on wp 2.8.4.
I have just successfully (and I surprised myself in that it only took me 30mins) installed bbpress and followed all the bbpress integration options using bbpress integration plugin for wordpress.
The challenge for me is I expected that this would lead me to have bbpress *inside* wp or atleast to be able to display the forum in a wp page.
The integration has been successful (i.e. the bbpress install is reading the users from my wp install) but it is not quite what I thought what i was expecting.
How can I achieve my goal of having the forum be (or atleast appear) to be inside wp?
The main reason for this is that I am using wp as a membership site and I want the forum inside the membership site.
Thanks, in advance,
AJ
I’m using WordPress as my CMS and decided to go with Simple Press Forum to set up a forum. However, I’ve run into a roadblock and want to find out if BBPress can meet my needs before starting over.
I have a forum with specific users who need to be notified by email whenever a new topic is started or a reply is made to an existing topic. I’ve run across a plugin called Subscribe to Topic but want to confirm this will do what I’m looking for before starting all over with new forum software.
Bottom line- I want the small set of users to automatically be subscribed to all new topics and alerted of any updates. I do not want the users to have to subscribe to each topic.
Hi Matt,
I launched the SitePoint community theme project for bbPress (work is still underway):
http://www.sitepoint.com/blogs/2009/08/05/we-want-you-join-the-sitepoint-communitys-bbpress-theme-project/
My own background is in HTML/CSS coding mixed with a little WordPress.
Assuming the SitePoint project goes to plan I’ll likely be implementing it into a new version of my bbPress template generator which is currently in the works (albeit development is taking longer than I’d like) … http://pixopoint.com/products/bbpress-forum-theme-generator/
I see the key to bring bbPress to the masses is to add a lot of the standard functionality which most forums have by default directly into the theme. This keeps the core nice and light whilst offering maximum functionality to those who require it. I’d also like to make it easy as possible to have your WordPress and bbPress themes seamless integrate their designs by offering identically behaving WordPress and bbPress template generators.
I guess it’s better to explain what I’m trying to accomplish.
I chose bbPress because theming it is just like WordPress. I rolled my own theme from the ground up. During the building process I realized how I wish I could add this and that, but due to the lack of documentation it’s rather hard for someone like me who has limited php know how. So it got me looking into integration.
My original intention of using bbPress was to make it easier for members to submit content. I would have built this project on WordPress, but the WordPress backend is a bit too distracting for members. I know there are other solutions out there such as the TDO-mini-forms, but it lacks polish.
So basically what I would like to do is use bbPress’ ease of content submission and profile pages running in conjunction with WordPress’ familiarity. Also what happens with topics and single pages, categories and forums do they combine into one? Can I restrict access to WP backend? Can I make use of all of WP plugins and will it run harmoniously with bbPress?
So many questions not sure how to form them. But the basic gist is I want members to use the bbPress part of the integration for content submission and use WP to handle displaying of the data.
Hey Matt!
Without too much detail, I’ve been neck deep in theme development, bug patching, code re-factoring and clean-up since the Windows 3.11 and Visual Basic 3.0 days. I’ve been interested in making bbPress be better integrated with WordPress for probably a year or so now? I was a long time phpBB2.0 junkie, and moved to WordPress because I was frustrated at how forcibly linear typical forum software is. When I fell in love with the WordPress way, I quickly found bbPress, and expected it to include all of the features that BuddyPress now does, hence my shift in that direction.
I’d like to help restyle bbpress.org, maybe bring it a little more in line with the other Automattic websites. There’s no doubt that bbPress needs some TLC in the codex and source-code documentation areas too, and I have recent experience absorbing the WP Code Standards from working under Andy with BuddyPress.
Right now my focus is 100% BuddyPress, but since you asked… I’d love to be more involved in all of the WP projects and communities if there’s opportunity.
The cookies that are sent to your browser by bbPress and WordPress.
I’ve lost track of the number of topics that describe how to do this. Can someone please post the best one for synchronizing the cookie settings? Thanks.
Thanks hatter for posting that. I hadn’t heard about that plugin before.
You can use the bbPress-Wordpress Syncronization plugin for this, found at http://bobrik.name/code/wordpress/wordpress-bbpress-syncronization/. We are currently running bbPress 1.0.2 and WordPress 2.8.5 and have no issues.
Make sure your cookies are set properly and match between bbPress and WordPress. Usually, if you have to login when going between the two, the cookies don’t match. Also, when testing this, make sure you delete old cookies from your system as they may be causing a conflict.
Read this:
https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration
The plugins that used to allow this, bbPress Live (for newer bbPress) and bbSync (for older bbPress) are both broken, I believe.
You can also parse the RSS feed, going either way, but that’s a lot of work to do what you want.
Would anybody know how to display parts of bbpress in wordpress? My wordpress category pages are the same as my bbpress forums. Would it be possible to include latest 10 posts from bbpress forum ‘apple ipod’ on an apple ipod category page in wordpress?
..
Further thought, possibly the other way around? Display wordpress posts from ‘apple ipod’ category above the bbpress forum ‘apple ipod’?