ok, two things
1. you could just use the template in my
bbp style pack
once activated go to
dashboard>settings>bbp style pack>forum templates
2. if you want to alter that,
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
then download my plugin and find template/templates1/loop-forums
copy that file to your theme and put it in the bbpress directory
I’m having a weird “bug” or just unwanted result from something that usually works perfectly.
(0,0) removed via usual method:
function remove_counts() {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
$args['count_sep'] = '';
return $args;
}
add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );
Unfortunately this time it is leaving me with the commas still intact despite the separator being target to be removed (I’m not comfortable with coding like most of you guys but years in WordPress you have to pick up a few things).
Probably easier if you take a look at this point it’s : MCR Biker Community Forum
I am using a plugin called Youzer to style the forum if that has any effect. Switching themes doesn’t fix.
Any suggestions?
bbpress just uses wordpress login, so
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
you mean within here, or within your wordpress site?
ok, for the participants trashing topics, install
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Display items 17,18,& 19
On the widgets, install
the ‘widget logic plugin’, and on pages you want the widget, use
is_bbpress()
in the condition
I think this task will be hard for you. Anybody around you can help you with basic knowloedge of CSS and PHP/WordPress ?
You have a explaination of many custom things you can do with bbpress here : https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/
GOod luck 😉
Hi everybody,
I’m actually developing a Forum for a WordPress site.
My Home is composed by 3 sections. Each section is a Forum who list child forum (I’m ok with that it’s already ok). But the last section need to be a Forum who list topics of this Forum.
But when I try to use <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> it’s a mess.
my content-archive-forum.php looks like:
<div id="bbpress-forums">
<div class="bbpress-header">
<div class="bbpress-header__image">
<img src="image.png" alt="Illustration sabre - Forum">
</div>
<div class="bbpress-header__headline"><h1>Welcome</h1></div>
<div class="bbpress-header__lead-paragraphe">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <span>Donec vel auctor diam.</span>
Nulla odio diam, maximus ut libero ut, <span>pharetra ullamcorper</span> orci. Sed magna nisl,
pellentesque at ligula nec, condimentum viverra. Petit texte d’intro sur le forum (juste une idée)?
</p>
</div>
</div>
<?php bbp_get_template_part('user', 'bar'); ?>
<?php bbp_breadcrumb(); ?>
<?php bbp_forum_subscription_link(); ?>
<?php do_action( 'bbp_template_before_forums_index' ); ?>
<?php if ( bbp_has_forums() ) : ?>
<?php bbp_get_template_part( 'loop','forums'); ?>
<?php else : ?>
<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_template_after_forums_index' ); ?>
</div>
How I can just add a section who display juste the list of the topic for a specific forum ?
Best regards ! 🙂
this is wordpress, several plugins available
How To Customize Your WordPress Emails
OK no problem. I am from Poland and using google translate sometimes. I am glad You speak to me by mail. I wanna finally move to wordpress. I hope with Your help my dream come true.
Regards and thanks for reply.
The problem is that themes do not use the wordpress template standards – in many cases for good reasons, but bbpress cannot understand every theme.
I presume you have been here
Step by step guide to setting up a bbPress forum – Part 1
Hi – I am running the Activetab Child Theme with a left side bar. The Pages menu includes an option to make the pages full width with no side bar. How do I do that to Forum pages? There are numerous solutions posted on this none of which work. There seems to be wide spread demand to have full width bbpress forum pages but no easy way to do it. It makes sense not have the forum pages crowed with side bar noise that is required on the main page but nowhere else. The lack of support for this is a serious weakness in the bbpress plugin.
I have a child theme implemented and have no problem adding bbpress specific overrides to the style sheet if they work and persist after plugin, theme and WordPress upgrades.
Yesterday I installed this plugin, but I do not see any migration option anywhere … I am asking you for help, I can give data to my server, phpmyadmin etc.
Comments on the xoops module “news” also this plugin moves?
I am waiting 2 years on this forum for any help! sick… I thought that it helps people here
I would like to finally go on wordpress and bbpress.
Please Angelo Rocha help me, You are the last man who gonna make this, i migrate all articles with comments and users, i need migrate only module NEWBB.
Best regards. You can find my e-mail previous message.
This plugin is already functional, I’m working on a user-friendly interface, currently only works with some programming settings.
This site: https://www.guiadocftv.com.br/
It was migrated successfully using my plugin. At the moment I’m running out of time to finish it, as I’m involved in other WordPress projects, it’s how I make my living.
This plugin is under GPL license, anyone from this forum can help in its finalization. Any doubts I am available.
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Display
or
dashboard>settings>bbp style pack>forum templates
depending on what exactly you want to achieve
Hi everyone,
Hopefully someone can help me decipher this error (with WP_DEBUG). Without WP_DEBUG simply getting a blank page. Front index and viewing topics works fine, but for some reason the forums (where you see a list of topics) don’t work.
Tried disabling all plugins, besides bbPress of course. Running the latest WordPress version 5.1.
Kind regards,
Jonas.
Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/ukuworld/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /var/www/ukuworld/wp-includes/class-wp-hook.php(286): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /var/www/ukuworld/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /var/www/ukuworld/wp-includes/plugin.php(531): WP_Hook->do_action(Array) #3 /var/www/ukuworld/wp-includes/class-wp-query.php(1736): do_action_ref_array('pre_get_posts', Array) #4 /var/www/ukuworld/wp-includes/class-wp-query.php(3387): WP_Query->get_posts() #5 /var/www/ukuworld/wp-includes/class-wp.php(622): WP_Query->query(Array) #6 /var/www/ukuworld/wp-includes/class-wp.php(739): WP->query_posts() #7 /var/www/ukuworld/wp-includes/functions.php(1105): WP->main('') #8 /var/www/ukuworld/wp-blog-header.php(16): wp() #9 /var/www/ukuworld/index.php(17): require('/var/www/ukuwor...') #10 {main} thrown in /var/www/ukuworld/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
1. install
Private groups
set up a group, then activate topic permissions, and set the forum topic permissions to create/edit replies
2. not sure how this is different from users being registered
I like the bbPress plugin because of the Freshness column on the forum page. However I do have a couple of questions.
1. In my current forum/blog I do not allow participants to add topics, they are only allowed to add comments to a topic. Is there a way in which I can only let the key master add a topic and NOT participants?
2. In my current forum/blog all topics are password protected. Is there a way in which I can set a password for the individual topics? (The password would be the same for all topics and all participants know the password.)
Wordpress version: 5.1
bbPress version: 2.5.14
Regards,
Geoffrey Bender
gbenderftg2@hotmail.com
ussbasilone.org/forums/
bbPRess-wordpress is really slow on my site. 7 to 10 seconds loading the main forum page. Submitting a new topic can go over 20 sec. 75% of that time is waiting for a reply…
It’s hosted on a VPS and when I monitor the CPU and RAM memory, it is always under the max, CPU runs at 50-70% on a request and ram stays around 70% used.
It seems to me that the requests to mySql takes a long time to execute.
We have 11500 topics and 75000+ replies. It was a phpBB forum that has been converted to bbPRess.
What can I do to improve performances?
Hello,
BBPress is running great on this site but if a visitor is a guest and clicks a topic to view the content, they are redirected to the home page. We are using WordPress pages with shortcodes to manage the forum.
If you view the sample forum and click the I’m In topic it goes to the home page as guests. We need guests to be able to see the topic info to decide if they want to join.
Any info would be great, here is the page:
<a href=”http://www.raptureintheairnow.com/forums/main-forum/”
Thank you.
You can achieve what you want if I have understood by the following
Install the private groups plugin
Private groups
then
a. Public discussion – just set up a public forum, and all users will be able to access this – no private groups settings needed
b. Then for the keymaster only forum – do as follows
1. Go into dashboard>settings>bbp private groups>topic permissions and activate this feature
2. Create a group in dashboard>settings>bbp private groups>Group 1 (or whichever group you want)
3. Create a new forum, set it as private (so only logged in users see it) and in the forum groups set group 1 with access
4. Then click save and when then page refreshes, you will see topic permissions have appeared below the forum groups
5. Now select Create/Edit OWN topics
This then means that within that forum, users will only see topics they have created, and be able to reply. The keymaster can then see/reply to these topics. Any topic created by the keymaster will be visible to all users in this forum
So from the user point of view they get a forum where they can post threads which only you and they see.
I think this should achieve what you want – and given they can create multiple threads on what looks like to them as their own private forum, maybe is even better as they can create a new thread for a new topic !!
for anyone finding this topic
I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is
/*Customize the BBPress roles to allow Participants to trash topics*/
add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 );
function ST_add_role_caps_filter( $caps, $role ){
// Only filter for roles we are interested in!
if( $role == bbp_get_participant_role() ) {
//only change delete topics
$caps ['delete_topics']= true ;
}
return $caps;
}
/*then only allow participants to trash their own topics*/
add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );
function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){
// apply only to delete_topic
if ( $cap == "delete_topic" ){
// Get the post
$_post = get_post( $args[0] );
if ( !empty( $_post ) ) {
// Get caps for post type object
$post_type = get_post_type_object( $_post->post_type );
// Add 'do_not_allow' cap if user is spam or deleted
if ( bbp_is_user_inactive( $user_id ) ) {
$caps[] = 'do_not_allow';
// Moderators can always edit forum content
} elseif ( user_can( $user_id, 'moderate' ) ) {
$caps[] = 'moderate';
// User is author so allow edit if not in admin
} elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) {
$caps = array();
// Unknown so do not allow
} else {
$caps[] = 'do_not_allow';
}
}
}
// return the capabilities
return $caps;
}
//then redirect to the forum after trashing topic
add_action('bbp_template_redirect', 'ST_trash_topic_check', 8);
//check if topic has been trashed by author and show forum if it has
function ST_trash_topic_check() {
$topic_slug = get_option( '_bbp_topic_slug') ;
//quick check if we need to do this function, so bail if not a topic
if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ;
$forum_slug = bbp_get_root_slug() ;
//if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug
$check = bbp_include_root_slug() ;
$link = explode('/',$_SERVER['REQUEST_URI']);
//next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id
if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) {
$post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' );
$login_check=1 ;
}
elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) {
$post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' );
$login_check=1 ;
}
//now we need to check if the topic has been trashed by author
if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) {
$topic_id = $post->ID;
//then redirect to the forum we came from
$forum = bbp_get_forum_permalink (bbp_get_topic_forum_id ( $topic_id )) ;
wp_redirect ($forum) ;
exit ;
}
else return ;
}
I’ll add this function into my style pack plugin shortly
bbp style pack
I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is
/*Customize the BBPress roles to allow Participants to trash topics*/
add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 );
function ST_add_role_caps_filter( $caps, $role ){
// Only filter for roles we are interested in!
if( $role == bbp_get_participant_role() ) {
//only change delete topics
$caps ['delete_topics']= true ;
}
return $caps;
}
/*then only allow participants to trash their own topics*/
add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );
function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){
// apply only to delete_topic
if ( $cap == "delete_topic" ){
// Get the post
$_post = get_post( $args[0] );
if ( !empty( $_post ) ) {
// Get caps for post type object
$post_type = get_post_type_object( $_post->post_type );
// Add 'do_not_allow' cap if user is spam or deleted
if ( bbp_is_user_inactive( $user_id ) ) {
$caps[] = 'do_not_allow';
// Moderators can always edit forum content
} elseif ( user_can( $user_id, 'moderate' ) ) {
$caps[] = 'moderate';
// User is author so allow edit if not in admin
} elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) {
$caps = array();
// Unknown so do not allow
} else {
$caps[] = 'do_not_allow';
}
}
}
// return the capabilities
return $caps;
}
//then redirect to the forum after trashing topic
add_action('bbp_template_redirect', 'ST_trash_topic_check', 8);
//check if topic has been trashed by author and show forum if it has
function ST_trash_topic_check() {
$topic_slug = get_option( '_bbp_topic_slug') ;
//quick check if we need to do this function, so bail if not a topic
if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ;
$forum_slug = bbp_get_root_slug() ;
//if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug
$check = bbp_include_root_slug() ;
$link = explode('/',$_SERVER['REQUEST_URI']);
//next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id
if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) {
$post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' );
$login_check=1 ;
}
elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) {
$post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' );
$login_check=1 ;
}
//now we need to check if the topic has been trashed by author
if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) {
$topic_id = $post->ID;
//then redirect to the forum we came from
$forum = bbp_get_forum_permalink (bbp_get_topic_forum_id ( $topic_id )) ;
wp_redirect ($forum) ;
exit ;
}
else return ;
}
I’ll add this function into my style pack plugin shortly
bbp style pack
this site only does this for the wordpress and bbpress sites.
I’ll take a look at the plugin above soon, but tied up with other stuff at the moment