Dear friends.
I installed BBpress on my Russian site. Everything is ok. All words in admin panel and public are translated to Russian. I need change some words. I thought I can change what I need in bbpress.pot file, but there only English. I totally don’t understand where BBpress takes Russian words. I even tried download language file bbpress-ru_RU.po and changed there, but its didn’t work anyway. I totally confused here BBpress takes Russian words. Which file I should change? And where?
Sharing this here in case anyone else has this issue. It’s a combination of using bbPress with either the bbPress Toolkit or the code snippet to use the TinyMCE editor in place of the standard editor.
When using the TinyMCE editor, clicking “Reply” to a thread (using nested threads) would move the reply box to be under the thread, but the box itself loses the text area so you can’t type anything in.
The workaround is to remove and reenable the TinyMCE instance. In the bbpress/templates/default/js/reply.js file, add these two lines to the “try” block (line 38):
tinymce.get(‘bbp_reply_content’).remove();
tinymce.execCommand(‘mceAddEditor’, false, ‘bbp_reply_content’);
HWParticipant
Thanks, Robin. It appears that the Search Everything plugin was causing the bbPress database error also. I’ve removed that plugin now so no longer require that fix (for now). 🙂
My main issue with the forum page not showing the WordPress admin bar when logged in until you refresh the page is still happening with every plugin disabled.
I am new to bbPress, so I am probably just missing a setting.
When a notification to a new reply arrives, the topic url is not active. Members have to copy and paste the url to get to the link.
Have I missed a setting? Or is this just how it should work?
Regards
Douglas
Looking for some advice on the best way to tackle this issue while using bbPress. I’m creating a new retailer review site where users will be able to post directly to a retailer’s listing.
using bbPress I have
forum root assigned as Reviews
forum slug assigned as Retailers
New Forum as an example – Retailer-1
so the URL looks like http://www.mysite.com/reviews/retailers/retailer-1/
which is just crazy long. Is there anyway to simply cut out the first two levels in the URL and go directly to retailer-1 within bbPress or is that just the way bbPress makes you do things?
Thanks…
BBPress is redirecting my users to their profile when logged in. I want specific user roles to get redirected to a specific page in the site. I’ve tried the following function in the theme functions.php file that normally works but it is being ignored.
function my_login_redirect_employers() {
if ( current_user_can('employer') ){
return '/welcome-employers/';
}
}
add_filter('login_redirect', 'my_login_redirect_employers',10,3);
I am still looking for help with this, but I moved my question to another topic so @dropshot can still get their answer.
bbPress overwriting page styles
WP Version: 4.7.3
bb Version: 2.5.12
Theme: Uncode 1.4.2 – compatibility confirmed
bb Forum Root: “forums”
I’ve had some difficulty setting up and styling my bbPress forums root page, similar to this user: how-to-actually-partner-root-with-a-wp-page/
I have since figured out how to establish a custom WP page as a root for my forum. I had to match the slug declared in the forum settings, AND use the [bbp-forum-index] shortcode. I thought it was either/or. If I only matched the slug, I would just get an empty page. If I just used the shortcode, I would have inconsistencies in the bbPress breadcrumb.
Now that I have declared a custom root, I’m getting my styles ignored or rejected or something. I have my page options set to hide the page title, WP breadcrumb, and some “inline” CSS to hide the menu. (My client needs a custom menu.) These options and styles work on all pages except for the forums root. They just get ignored.
I tested with fresh pages built from scratch multiple times to see where the problem was. I can use the shortcode just fine, but then my custom page is no longer my root page. As soon as I set my custom page’s slug to match the slug in the forum settings, I lose my styles.
How can I get a custom forum root that also has custom styles?
What I want: (Visually at least)
http://kadpf.org/kadpf2017update/forums-ideal/
What I get:
http://kadpf.org/kadpf2017update/forums/
Thanks!
HWParticipant
Update: I used Query Monitor to get a better/nicer view of the database error. It appears there is some blank part “…AND ((())) AND…” see here: https://www.dropbox.com/s/pvrwhd5druvykus/Screen%20Shot%202017-04-04%20at%202.29.01%20PM.png?dl=0
I resolved the topics and replies not displaying by using the wp4fix plugin here: http://www.rewweb.co.uk/bbpress-wp4-fix/ that had the issues with the search string. That was conflicting with Search Everything.
Thanks!
HWParticipant
Hi There,
My client had reported a strange issue that started recently. If I navigate to the forum page, then login to WP, the WP admin bar displays at the top as normal. When I navigate back to the forum page after logging in, the admin bar does not show up on this page only until I refresh the page. At first I thought it was a caching issue with a Autoptimize cache plugin but it still occurs after I deactivate.
There is an error logging for bbPress repeatedly:
[04-Apr-2017 17:56:26 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘))) AND hn09m16p3_posts.post_type IN (‘topic’, ‘reply’) AND (hn09m16p3_posts.po’ at line 1 for query SELECT hn09m16p3_posts.* FROM hn09m16p3_posts FORCE INDEX (PRIMARY, post_parent) WHERE 1=1 AND (hn09m16p3_posts.ID = 8481 OR hn09m16p3_posts.post_parent = 8481) AND ((())) AND hn09m16p3_posts.post_type IN (‘topic’, ‘reply’) AND (hn09m16p3_posts.post_status = ‘publish’ OR hn09m16p3_posts.post_status = ‘closed’ OR hn09m16p3_posts.post_status = ‘reported’ OR hn09m16p3_posts.post_status = ‘acf-disabled’ OR hn09m16p3_posts.post_author = 217 AND hn09m16p3_posts.post_status = ‘private’ OR hn09m16p3_posts.post_author = 217 AND hn09m16p3_posts.post_status = ‘hidden’) ORDER BY hn09m16p3_posts.post_date ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
I used the repair forums tools one by one and now all the forums/topic/replies content is not displaying but the count is correct for each forum/topic, when I go into any of the forums/topics it says “Oh bother! No topics found here”.
I’m currently setting up a test site to strip it down and see if I can find the cause but I wanted to post this to make sure it isn’t a general bbPress issue with the SQL statement. Any help would be appreciated.
Wordpress version: 4.7.3
bbPress version: 2.5.12
Thanks!
BuddyPress is based on bbPress. So if BuddyPress has the things you look for, then go for it 🙂
Both BuddyPress and bbPress are WordPress plugins, so user management is done in WordPress. It are all ‘normal’ WordPress users with extra roles/capabilities.
Hope this helps you making your choice.
Pascal.
Hey Guys,
I have been developing WordPress themes for about 6 years now. I need to create a website where the landing/home page is visible to the public and a few pages that are for members only. The members also need profiles and can only be signed up by the admin.
Ive been thinking maybe I could create a WordPress site with just a few pages for the public and a private bbpress forum with the registered users and their profiles? I have no experience with bbpress at all so don’t know if it would suit this application.
The other option that I saw was buddypress but can this be made private and have restricted content for the members?
It is essentially for a private association.
Thanks guys
Ok I find a way but I am not happy about that but it works….
You can see live here : http://sakifo.gamers.re/forums/
If someone have a better solution, I put that there :
<?php
/**
* Forums Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php do_action('bbp_template_before_forums_loop'); ?>
<?php
if(bbp_get_forum_id()){
?>
<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
<li class="bbp-header">
<ul class="forum-titles">
<li class="bbp-forum-info"><?php echo bbp_forum_title(); ?></li>
<li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
<li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
</ul>
</li><!-- .bbp-header -->
<li class="bbp-body">
<?php while ( bbp_forums() ) : bbp_the_forum(); ?>
<?php bbp_get_template_part( 'loop', 'single-forum' ); ?>
<?php endwhile; ?>
</li><!-- .bbp-body -->
<li class="bbp-footer">
<div class="tr">
<p class="td colspan4"> </p>
</div><!-- .tr -->
</li><!-- .bbp-footer -->
</ul><!-- .forums-directory -->
<?php
}
else {
?>
<?php while ( bbp_forums() ) : bbp_the_forum();?>
<?php
/* We print the header only if we want to show a category or if it's the first item of a no-parent forum list */
if (bbp_is_forum_category() OR ! $bbp_forums_noheader) {
?>
<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
<li class="bbp-header">
<ul class="forum-titles">
<li class="bbp-forum-info">
<?php if (bbp_is_forum_category()) { ?>
<a class="bbp-forum-title" href="<?php bbp_forum_permalink(bbp_get_forum_parent_id()); ?>">
<?php bbp_forum_title(bbp_get_forum_parent_id()); ?>
</a>
<?php } else {
_e('Forum', 'bbpress');
} ?>
</li>
<li class="bbp-forum-topic-count"><?php _e('Topics', 'bbpress'); ?></li>
<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e('Replies', 'bbpress') : _e('Posts', 'bbpress'); ?></li>
<li class="bbp-forum-freshness"><?php _e('Freshness', 'bbpress'); ?></li>
<li class="bbp-forum-freshness-avatar"></li>
</ul>
</li><!-- .bbp-header -->
<?php } ?>
<li class="bbp-body">
<?php
/* If the forum is a category, we're gonna make another loop to show its subforums and sub-subforums as if those were forums */
if (bbp_is_forum_category()) {
$temp_query = clone bbpress()->forum_query;
bbp_has_forums('post_parent=' . bbp_get_forum_id());
while (bbp_forums()) : bbp_the_forum();
bbp_get_template_part('loop', 'single-forum');
endwhile;
bbpress()->forum_query = clone $temp_query;
}
else /* Otherwise, we print the forums the normal way */ {
bbp_get_template_part('loop', 'single-forum');
$bbp_forums_noheader = 1; /* This prevents the header part to be printed again on next post in the loop */
}
?>
</li><!-- .bbp-body -->
<?php
/* Prints the footer only if :
- it's a category
- or if it's the last forum of a no-parent forum list
- or if the next forum in the loop is a category */
if (bbp_is_forum_category()
OR ( bbpress()->forum_query->current_post + 1) == bbpress()->forum_query->post_count
OR bbp_is_forum_category(bbpress()->forum_query->posts[bbpress()->forum_query->current_post + 1]->ID)) {
?>
<li class="bbp-footer">
<div class="tr">
<p class="td colspan4"> </p>
</div><!-- .tr -->
</li><!-- .bbp-footer -->
</ul><!-- .forums-directory -->
<?php unset($bbp_forums_noheader); /* Needed if we have 2+ no-parent forums with at least 1 category between them */
}
?>
<?php endwhile; }?>
<?php do_action('bbp_template_after_forums_loop'); ?>
First up, if you use bbPress 2.6 beta there are huge updates to the importer 🙂
You can download bbPress 2.6 beta from https://bbpress.org/download/
I’d suggest you look at either the phpBB or SMF importers, the two of those are the best examples that uses as much functionality as possible.
I’ll take a look at that table structure you posted later today and see if I can make some suggestions to help, p.s. very helpful that you posted that, so thanks 🙂
Unfortunately, under the link that you provided, there is no script that I am currently using. I tried to modify the converter from phpBB.php and Example.php, but unfortunately I get errors … I need your help! I am determined to have a forum based on bbpress (100k posts, 10k topics).
I read a lot about migration, I tried to move the whole thing from newbb to phpbb, mybb, smf, but these forums also do not have a converter.
Only someone who deals with daily php and programming can help me.
Hi,
Check out https://codex.bbpress.org/getting-started/importing-data/import-forums/
If your source forum is not in the list, there is a custom importer.
Let us know if it works or not !
Pascal.
Hello
I change the loop-forums to get something like this =
Category 1
sub category 1.1
sub category 1.2
sub category 1.2.1
Category 2
sub category 2.1
sub category 2.2
It works like a charm on the index page but I click on category 1 (or category 1.1 or another) I get :
Category 1
**** nothing *****
Category 1
sub category 1.2.1
What I want is : when i click on category 1 etc….
Category 1
sub category 1.1
sub category 1.2
sub category 1.2.1
Can someone help me?
The code :
<?php
/**
* Forums Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php do_action('bbp_template_before_forums_loop'); ?>
<?php while ( bbp_forums() ) : bbp_the_forum();?>
<?php
/* We print the header only if we want to show a category or if it's the first item of a no-parent forum list */
if (bbp_is_forum_category() OR ! $bbp_forums_noheader) {
?>
<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
<li class="bbp-header">
<ul class="forum-titles">
<li class="bbp-forum-info">
<?php if (bbp_is_forum_category()) { ?>
<a class="bbp-forum-title" href="<?php bbp_forum_permalink(bbp_get_forum_parent_id()); ?>">
<?php bbp_forum_title(bbp_get_forum_parent_id()); ?>
</a>
<?php } else {
_e('Forum', 'bbpress');
} ?>
</li>
<li class="bbp-forum-topic-count"><?php _e('Topics', 'bbpress'); ?></li>
<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e('Replies', 'bbpress') : _e('Posts', 'bbpress'); ?></li>
<li class="bbp-forum-freshness"><?php _e('Freshness', 'bbpress'); ?></li>
<li class="bbp-forum-freshness-avatar"></li>
</ul>
</li><!-- .bbp-header -->
<?php } ?>
<li class="bbp-body">
<?php
/* If the forum is a category, we're gonna make another loop to show its subforums and sub-subforums as if those were forums */
if (bbp_is_forum_category()) {
$temp_query = clone bbpress()->forum_query;
bbp_has_forums('post_parent=' . bbp_get_forum_id());
while (bbp_forums()) : bbp_the_forum();
bbp_get_template_part('loop', 'single-forum');
endwhile;
bbpress()->forum_query = clone $temp_query;
}
else /* Otherwise, we print the forums the normal way */ {
bbp_get_template_part('loop', 'single-forum');
$bbp_forums_noheader = 1; /* This prevents the header part to be printed again on next post in the loop */
}
?>
</li><!-- .bbp-body -->
<?php
/* Prints the footer only if :
- it's a category
- or if it's the last forum of a no-parent forum list
- or if the next forum in the loop is a category */
if (bbp_is_forum_category()
OR ( bbpress()->forum_query->current_post + 1) == bbpress()->forum_query->post_count
OR bbp_is_forum_category(bbpress()->forum_query->posts[bbpress()->forum_query->current_post + 1]->ID)) {
?>
<li class="bbp-footer">
<div class="tr">
<p class="td colspan4"> </p>
</div><!-- .tr -->
</li><!-- .bbp-footer -->
</ul><!-- .forums-directory -->
<?php unset($bbp_forums_noheader); /* Needed if we have 2+ no-parent forums with at least 1 category between them */
}
?>
<?php endwhile; ?>
<?php do_action('bbp_template_after_forums_loop'); ?>
Good day everyone,
I’m currently working on a plugin that allow users to create events (Custom Post Type) in the site, those being displayed in a calendar.
When those Custom Post Types are created, I programmatically create a bbpress topic in a forum. Custom post title being the topic subject, custom post content being the content. That works marvelous.
Now, I would like to do 2 things and I’m not quite sure what function to use:
– When the custom post is edited, depending on a metadata value, I would like to move the topic from one forum to another. Creating the topic in one or the other forum works OK at creation time. I would like to move it when it is modified. I’m trying bbp_update_topic but it does not do anything.
– I would also like to keep the Custom Post and the topic in sync regarding the content. Post ID and Topic ID are both stored in Topic and post meta. I would like that whenever one of the two are modified (mainly for the content), the other is modified the same way.
So in summary, what is
– the best approach to programmatically move a topic from a forum to another.
– Programmatically change the content of a topic when it has already been created.
– How to catch the event of modifying a topic so I can modify the source post content.
–
Thanks !
Good morning, my name is Michael and I am writing from a distant country of Poland :). I have a website dedicated to bodybuilding based on xoops, but I will soon change to wordpress. I have converted all 1200 articles, comments and users, but I have a problem moving forums …
The newbb script is similar to phpbb, so I used the available converter in the admin panel, I modified it a little, basically the beginning of the category and description of the forum sections. It looks like:
http://www.kulturystyka.org.pl/test/forums/
Further modification of the phpBB.php file unfortunately did not produce the expected results, because the newbb script has changed a bit, and the converter in the BBpress package is probably not updated for a long time ….?
Please help me to modify this file so that it finishes work ie it has moved topics, utterances and users. Below I show how the structure of individual tables in the newbb module (xoops) looks like. I am green in terms of these matters, I am surprised myself that I have moved the forum sections. My WP version is 4.7.3
I found something like this: https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters/Example.php?order=name
Yesterday and today I’m struggling with it …
I will be very, but very grateful for the help shown. Regards, Michal
Link to the structure of table; posts, posts_text, topics and users:
http://www.kulturystyka.org.pl/newbb_table_structure.txt
Hi
Thank you for the feedback!
bbPress 2.5.12
WP Version: 4.7.3
We got this error….ERROR: admin-ajax.php: 502 Bad Gateway
Since the forum is checking for new replies every minute per user
we had to adjust some settings on nginx configuration.
We added this config to reduce the amount of queries:
nginx_fastcgi_buffers: 8 8k
nginx_fastcgi_buffer_size: 4k
We found this but cannot figure out what to do: http://www.inmotionhosting.com/support/website/wordpress/heartbeat-ajax-php-usage
We do not often get error messages but rather what we get are the following as more users come on the site.
-Site slows down to a crawl
-site locks up, freezes
-When it regains questions duplicate or triplicate.
Could I give you WP access?
Our web site is dfiuniversity.com and while want to use bbpress for our forum it seems we are not setting it up properly or bbpress cannot manage 150 – 500+++ users at one time. Maybe we should try firebase for such an intense forum? We expect our users to increase to 1k plus soon.
Regards
Hello
WP 4.7.3 , BBPress 2.5.12, twentyten theme.
I doublechecked with this page. My forum features for embed videos do have the box ticked.
Auto-embed Links
Scroll to the very bottom for the video link that doesn`t embed on my website.
Digging into Petition E411
Hi Robin,
I just installed BBPress onto the website maybe 3 weeks ago with a brand new WordPress installation. It’s been happening since inception.
Its not happening for the keymaster account, but it’s happening for everyone else.
Any BBPress Intelligent Please Help Me. ( Two Months Over – No One Guide for the solution )
MyBB to Buddypress Migration Error. ( 2 Months Over – No One Help Me ) feeling Bad
In BuddyPress Theme i have used the Import Forum Tool.
After Start Conversation Error Come Like Below :
Repair any missing information: ContinueConversion CompleteNo threaded replies to convertNo anonymous reply authors to convertNo replies to convertNo favorites to convertNo topic subscriptions to convertNo topic tags to convertNo closed topics to closeNo super stickies to stickNo stickies to stickNo anonymous topic authors to convertNo topics to convertNo forum subscriptions to convertNo forum parents to convertNo forums to convertStarting Conversion
Hi,
Thinking of how bbPress is structured, you would need to create a new topic for every forum.