bbPress 2.0 (the plugin) has built-in support for tinymce. I guess bbPress 1 would not see any more feature additions.
bbPress uses the default WordPress registration page.
DOMAIN/wp-login.php?action=register probably works.
I just wanna ask, how did you add the latest discussion at the very top? Im kinda a newbie about this
I was troubleshooting an issue with a rather large migration to bbPress (1.6MM posts) and bbPress 2.0.2 is very slow to load thread pages.
It looks like bbPress (WP_Query) is trying to do an unindexed query lookup:
CAST(wp_postmeta.meta_value AS CHAR) = '787852'
The query takes quite some time and does a full table scan:
# Time: 120518 19:23:53
# User@Host: db[db] @ localhost []
# Query_time: 9.688145 Lock_time: 0.000050 Rows_sent: 3 Rows_examined: 1623367
SET timestamp=1337387033;
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type IN ('topic', 'reply') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed') AND ( (wp_postmeta.meta_key = '_bbp_topic_id' AND CAST(wp_postmeta.meta_value AS CHAR) = '787852') ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date ASC LIMIT 0, 25;
Here’s a simple stack trace:
/home/site/public_html/wp-includes/query.php 2498 get_sql () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-includes/query.php 2913 get_posts () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-includes/query.php 3000 query () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php 129 __construct () -- /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/
/home/site/public_html/wp-content/themes/site/bbpress/content-single-topic.php 35 bbp_has_replies () -- /home/site/public_html/wp-content/themes/site/bbpress/
/home/site/public_html/wp-includes/theme.php 1117 require () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-includes/theme.php 1091 load_template () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-includes/general-template.php 128 locate_template () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-content/plugins/bbpress/bbp-includes/bbp-core-compatibility.php 144 get_template_part () -- /home/site/public_html/wp-content/plugins/bbpress/bbp-includes/
/home/site/public_html/wp-content/themes/site/single-topic.php 33 bbp_get_template_part () -- /home/site/public_html/wp-content/themes/site/
/home/site/public_html/wp-includes/template-loader.php 43 include () -- /home/site/public_html/wp-includes/
/home/site/public_html/wp-blog-header.php 16 require_once () -- /home/site/public_html/
/home/site/public_html/index.php 17 require () -- /home/site/public_html/
Here’s the $bbp_r query passed into WP_Query:
Array
(
[meta_query] => Array
(
[0] => Array
(
[key] => _bbp_topic_id
[value] => 1623928
[compare] => =
)
)
[post_type] => Array
(
[0] => topic
[1] => reply
)
[orderby] => date
[order] => ASC
[posts_per_page] => 25
[paged] => 1
=>
[post_status] => publish,closed
)
Hi there,
I’ve looking for a solution to show below one of my blog pages a topic discussion from bbpress forum. The problem I have is that this page has the Visual Editor off in order to write PHP inside for my convenience.
So I can’t use the shortocodes there and neither the php code as it appears in the plugin templates. Because the code has to make a loop to show all the discussion for this certain topic I think it is not possible to integrate a PHP code for that on my own PHP code…
Any idea about this?
Dear All,
Looks like customizing messages is not working. The following are the steps that I tried:
1. Install Buddypress
2. From the BP Forums settings page, choose to install Sitewide Forums; BBPress is installed
3. Installed poedit; open bbpress.pot and saved as bbpress-en_US.po; changed the entry say line num 466 from started the topic… TO started the question…
POEDIt automatically created a .mo file.
Moved both po and mo file to wp-content/languages
changed WP_LANG to en_US in wp-config
Restarted the machine
4. Create a new topic; still the old entry started the topic is diaplyed in activity stream
I’ve done the same steps for buddpress-en_US and customizing messages works in BP.
Could anyone please help me troubleshoot this.
FYI, I’m using default theme of Buddypress
Thanks in advacnce
I’m surprised that BBpress doesnt have a visual text editor. Are there any plans to create one or have support for integrating existing ones like tinymce/ckeditor ?
I’m currently using bbPress Post Toolbar and find it kind of lacking.
WordPress runs post slugs through a sanitization filter to make sure there are no collisions. As such, no two slugs can be the same, regardless of the type of content that it is.
No problem at all, I didn’t like the formatting either lol.
Made a few edits to use syntax highlighting and section headings, hope you don’t mind!
Yeah, had to help with that just last night. I checked your doc page though regarding bbp_list_forums and the formatting is a bit off making it hard to read for those still learning.
You should be able to login here https://codex.bbpress.org/wp-admin/ with your bbPress username/pass.
Then just head to pages.
I am probably being stupid, but I can not see where I can contribute on any of the codex pages?
Ooooh, cool!
Can we create more documentation? I notice the same question on the forums over and over again about the bbp_list_forums, removing the commas. I was thinking about explaining the bbp_list_forums function for templating?
Yep! Anyone can login and edit that page or contribute to other pages on the codex
Is there any where we can go to help contribute to the list?
I am sure there is a better solution, but you could use something like
if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
bbp_get_template_part( 'bbpress/loop', 'latest-topics' );
Then use some css to remove everything except the avatars.
Hi fritz, et al…
Fritz… I have no idea what you are talking about.
None of our videos stop halfway and you never have to pay to watch any of them?
I suggest you try again and also checkout archives, google, or even our YouTube or Vimeo libraries (“labsecrets” is the name), and you will find hundreds of full length, all free videos.
Cheers!
Spence
http://labsecrets.com/tutorials
function bbp_list_forums( $args = '' ) {
// Define used variables
$output = $sub_forums = $topic_count = $reply_count = $counts = '';
$i = 0;
$count = array();
// Defaults and arguments
$defaults = array (
'before' => '<ul class="bbp-forums">',
'after' => '</ul>',
'link_before' => '<li class="bbp-forum">',
'link_after' => '</li>',
'count_before' => ' (',
'count_after' => ')',
'count_sep' => ', ',
'separator' => ', ',
'forum_id' => '',
'show_topic_count' => true,
'show_reply_count' => true,
'freshness_before' => '<td class="last-posted-box">',
'freshness_after' => '</td>',
'show_freshness_link' => true,
'freshness_author_before' => '<div class="author-box">',
'freshness_author_after' => '</div>'
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
// Bail if there are no subforums
if ( !bbp_get_forum_subforum_count( $forum_id ) )
return;
// Loop through forums and create a list
if ( $sub_forums = bbp_forum_get_subforums( $forum_id ) ) {
// Total count (for separator)
$total_subs = count( $sub_forums );
foreach ( $sub_forums as $sub_forum ) {
$i++; // Separator count
// Get forum details
$count = array();
$show_sep = $total_subs > $i ? $separator : '';
$permalink = bbp_get_forum_permalink( $sub_forum->ID );
$title = bbp_get_forum_title( $sub_forum->ID );
// Show topic count
if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
$count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );
// Show reply count
if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
$count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );
// Counts to show
if ( !empty( $count ) )
$counts = $count_before . implode( $count_sep, $count ) . $count_after;
// Show topic count
if ( !empty( $show_freshness_link ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
$freshness_link = bbp_get_forum_freshness_link( $sub_forum->ID );
$freshness_author = $freshness_author_before . bbp_get_author_link( array( 'post_id' => bbp_get_forum_last_active_id( $sub_forum->ID ), 'size' => 14 ) ) . $freshness_author_after;
$freshness_link = $freshness_before . $freshness_link . $freshness_author . $freshness_after;
}
// Build this sub forums link
$output .= $link_before . '<a href="' . $permalink . '" class="bbp-forum-link">' . $title . $counts . $freshness_link . '</a>' . $show_sep . $link_after;
}
// Output the list
echo $before . $output . $after;
}
}
This will give you more control over creating a theme which looks like Invision or PHPBB.
You will have to customize your theme as well to make sure it is compatible.
I just commented out the sidebar from all my bbpress template files, worked perfectly.
Yeah.. he’s done a video on the subject that stops half way through and requires you to pay to join labsecrets to see the rest.. Tell the whole story dude. Half of an answer is not an answer it is part of the problem.
Did you add this in the main theme or in the bbpress twenty ten directory?
Hello,
I think there is some issue with the download links for bbPress plugins ( Hopefully all of them), they are reporting 404.
Kind Regards,
Arun singh
Did you have a company convert over to bbPress from vBulletin or did you do it yourselves?