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
Hello again, right well here’s a plugin that purports to do EXACTLY what I want… Except its for posts in WordPress, NOT for bbpress.
URL-Preview-Box
I feel like somebody here might know how to make this work in bbpress as well. I also feel like somebody must have already implemented this on their own forums and knows how to do it. Can anyone assist at all please? Thanks!
I’ve purged all caches and purged again and it still won’t accept this word. I made sure the word was removed on My Sites panel in WordPress too…
Hi there, first of all, sorry if this is something everybody knows, i did try to google it but came up with only things that aren’t the same as what i’m looking for.
What i would like is for an image preview of some sort to come up within the post or reply, in bbpress, whenever somebody pastes a URL. Ideally it should only happen for the first URL in each post or reply, and ignore any subsequent URLs, but if that’s fiddly then just something that will generate previews for any URLs posted would be very helpful.
Here is an example of it not happening: https://yesbook.scot/forums/topic/the-greatest-argument-of-all/
That’s me posting an OP in my bbpress forum, and as you can see i pasted some text from a web page, and then a URL link to the page. Now what would be ideal is if the post also automatically showed a picture, drawn from the URL, inline within the bbprss post, in the same way that facebook pulls a picture in when you post a URL on their site.
Is there a plugin that does this, or some simple tweak i can make to the config files of the site to make this happen? I’m not totally ignorant of how to use php and CSS but for the sake of argument, please assume that i am, because it isn’t far from the truth!
Thanks in advance for any assistance you can provide.
It is currently WordPress version 5.1 and bbPress version 2.5.14-6684
I am using DI Business Responsive theme, though i don’t think that makes much difference for this particular question.
Managing replies and topics in a large open forum has become a nightmare. I have searched high and low for a way to manage posts by IP/user, name, and of course the marking bulk spam as you mentioned. Mass edit/delete is not teaching anything to Akismet. I am using CleanTalk to manage spam registrations which seems to help with spam. But managing posts that get through filters requires tools like the Comment Dashboard for WordPress. I am going to look for someone to write a plugin. Perhaps the Comment Moderation plugin Developer could help us.
Sorry I misspoke. I was unable to run the code through my functions.php file, but it seems to be functioning through a snippet plugin:
Code Snippets
My bad.
put this in your child theme’s functions file
function rew_breadcrumbs ($args) {
$args['home_text'] = 'your new words here';
return $args ;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'rew_breadcrumbs');
or use
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Breadcrumbs
I’m using WordPress 5.1 and Buddypress 2.5.14
My site is a writing community and we upload work for comments. Having trouble with some comments which wordpress block as part of the Comments Blacklist function in ‘Discussion’ settings. Have removed words I want to allow for posting without being blocked but still not able to post. For instance the word double breasted is not allowed because it contained one of the blacklist words. I have removed this from the list but it is still being blocked when I try and include it in a topic…