hi i had created a forum with the bbPress plugin on my block, but then i still want something displaying the latest topic in forum on my front page. I have to look for some plugins to do the job but it is really difficult to find a good one.
it will be a nice thing to me if you can really help thanks!
bbpress is forum software, and with lost of bespoke coding you might possibly get what you want, but you would probably be better looking for a testimonial plugin.
just google ‘wordpress testimonial plugin’
it will be a change
It could be a theme or plugin issue
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.
Hi,
I am working on a product testimonials project and would like to know if bbpress is the right plugin for the job. Can it do the following:
Visitors can search and view testimonials
Visitors can create an account to post testimonials
Testimonials will include
Title
Text
product name text field: Product used
product url text field: Product link
if text field blank -> default will be used
Account members can post questions under testimonials – original poster will be notified and can reply
Possibly create a paid account where ads are removed.
Thank you!!
Hello,
I have my WordPress site set to my timezone, but the times shown in the Dashboard Box “Latest Forum Topics and Replies” shows posts with times from a different timezone.
ie I just posted something and looked at the dashboard box and it says “posted 9 hours ago”… (btw my timezone is UTC+9, so it seems the dashboard box is assuming UTC…
By the way, on the forum itself it shows the correct time of posting. So, it only seems to be the dashboard box.
I think this may do it – but I’ve no knowledge of mathml, other than a quick google
This code is untested, but add this to your child theme function file or use the ‘code snippets’ plugin
add_filter( 'bbp_kses_allowed_tags', 'rew_add_mathml') ;
function rew_add_mathml ($allowed) {
$allowed['math'] = array() ;
$allowed['mo'] = array() ;
$allowed['mi'] = array() ;
return $allowed ;
}
you would need to add lines for other tags required.
can only suggest that something else is putting it there
maybe try
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
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
untested but add this to your functions file or use code snippets plugin
add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu' );
add_action( 'bbp_template_before_topics_loop'', 'rew_add_custom_menu' );
function rew_add_custom_menu () {
echo 'your link here' ;
}
2 things occur
1. this is the code in the template
<li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
2. these functions are looking for id so maybe
<?php $post_id=get_the_ID() ; ?>
<li class="bbp-topic-voice-count"><?php bbp_topic_voice_count($post_id); ?></li>
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic($post_id) ? bbp_topic_reply_count($post_id) : bbp_topic_post_count($post_id); ?></li>
untested, but you get the idea
It could be a theme or plugin issue
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
I’ve just noticed that the forum links in my wp-admin have disappeared. I cannot see “forums” “topics” or “replies”.
When I try and go directly to the link:
/wp-admin/edit.php?post_type=forum
/wp-admin/edit.php?post_type=topic
I get the error:
You need a higher level of permission.
—-
Sorry, you are not allowed to edit posts in this post type.
However I am logged in as an Administrator. The forums are still available on the front-end of my site, I just cannot edit anything in the admin panel.
I have tried deactivating my plugins, and also reverting my theme back to TwentySeventeen, and it still does not show.
I downloaded a User Editor plugin to see if I could edit permissions, but the Administrator has full permissions on the forums.
I noticed this was mentioned in a previous thread here, and so I went downloaded the latest RC version, but this didn’t fix it either.
Any ideas? :/
It could be a theme or plugin issue
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
can you swap to a default theme and retest with only bbpress running as plugin
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
that is presuming you have run the normal tests
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
ok, try this plugin
bbp blacklist checker
once activated go to tools>bbp blacklist checker
This lets you switch off the code that is causing the issue.
It’s just a bit of testing code, not intended for permanent live use, but may help confirm if it’s bbpress or something behind that is causing the issue.
Try it for both anew post and an edited one
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
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.
that’s what spectator should do.
Suggest you set up a test user and check that that works.
that measures site loading, not server performance as such, eg it doesn’t test dadatabase writes.
cache will not affect non cache actions such as post submission
I’d suggest you talk to your host providers.
I’m using the latest versions of both WP and bbPress