Skip to:
Content
Pages
Categories
Search
Top
Bottom

PMPRO + Buddypress + bbpress + bbp style pack

Published on May 22nd, 2020 by kerchmcc

We have PMPRO (2.3.1) + Buddypress (5.2.0) + bbpress (2.6.4) + bbp style pack (4.5.3) installed.
Buddypress 6.0 really screwed with the displays, so that got rolled back.
WP: 5.4.1

Buddypress shows the profiles of members
In a member profile, there is a link to show forum (bbpress) activity.
Cool
If a user has a favorite or a subscription showing there, there is also an icon [x] implying that I can unsubscribe/unfavorite that item.
However, nothing happens when that [x] is clicked.
I don’t know who to ping about the problem.
If it’s you, please fess up! and thanks

Home

Anonymous Profile in Tool Bar

Published on May 22nd, 2020 by Pete

I have what I hope is a simple question. I would like to create a tool bar (wp_admin_bar) that is effectively just like the one on this website: it sits under the website header and includes, in particular, the Anonymous ‘profile’ on the right-hand side before a user is logged in.

I can create an Admin Bar that shows a profile when a user has logged in, but I cannot work out how to include the Anonymous ‘profile’, with its drop-down ‘Register/Lost Password/Log In’ menu.

If there are explicit instructions somewhere on how to achieve this apparently common arrangement, just point me there. If that includes how to add the ‘Create New Topic’ option when a user is logged in, that’d be even better.

I am working with WordPress 5.4.1 and bbPress 2.6.4.

How do I enqueue the custom css?

Published on May 21st, 2020 by failxontour

Hey so I’m trying to enqueue custom CSS for bbPress v2.6.4 on the WP 5.4.1 clan website running a WP Twenty Twenty-child theme.

This is what my functions.php currently looks like

<?php
/**
* Child theme stylesheet einbinden in Abhängigkeit vom Original-Stylesheet
*/
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
function child_theme_styles() {
  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
  wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
  wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array());
}
?>

And this is how my bbpress.css looks like.


#bbp-forum-info,
#bbp-forum-topic-count,
#bbp-forum-reply-count,
#bbp-forum-freshness {
  color: #232323;
}
#bbpress-forums {
  background: transparent;
  clear: both;
  margin-bottom: 20px;
  overflow: hidden;
  font-size: 1.75rem;
  color: #232323;
}

The changes I applied in the bbpress.css won’t update the bbpress CSS on the above mentioned site. So their must be something wrong with my functions.php but I can’t yet put my finger on it how to load it properly as I’m pretty new when it comes to WordPress. I wanna append these changes globally to all parts of bbPress forum.

Can someone tell me to if and what i need to specify inside the arrray() call for the bbpress.css to load properly? Or hint me towards what’s wrong here.

customize bbpress reply form with dropdown selection list form

Published on May 21st, 2020 by g28f99

I hope to customize bbpress reply form area with dropdown selection list. I could not find any previous post reporting similar case in bbpress. Referring to post “Save meta box data from selected dropdown list” with link I prepared similar code for the bbpress reply post condition, but failed to achieve the goal.
Please kindly provide suggestions!

` add_action( ‘bbp_theme_before_reply_form_content’, ‘so_custom_meta_box’ );
//add_action( ‘add_meta_boxes’, ‘so_custom_meta_box’ );

function so_custom_meta_box($post){
add_meta_box(‘so_meta_box’, ‘Custom Box’, ‘custom_element_grid_class_meta_box’, $post->post_type, ‘normal’ , ‘high’);
}

add_action(‘bbp_theme_before_reply_content’, ‘so_save_metabox’);

function so_save_metabox(){
global $post;
if(isset($_POST[“custom_element_grid_class”])){
//UPDATE:
$meta_element_class = $_POST[‘custom_element_grid_class’];
//END OF UPDATE

update_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, $meta_element_class);
//print_r($_POST);
}
}
function custom_element_grid_class_meta_box($post){
$reply_id = bbp_get_reply_id();
$meta_element_class = get_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, true); //true ensures you get just one value instead of an array
?>
<label>Choose the size of the element : </label>

<select name=”custom_element_grid_class” id=”custom_element_grid_class”>
<option value=”normal” <?php selected( $meta_element_class, ‘normal’ ); ?>>normal</option>
<option value=”square” <?php selected( $meta_element_class, ‘square’ ); ?>>square</option>
<option value=”wide” <?php selected( $meta_element_class, ‘wide’ ); ?>>wide</option>
<option value=”tall” <?php selected( $meta_element_class, ‘tall’ ); ?>>tall</option>
</select>
<?php
}

Imported Topics are blank

Published on May 21st, 2020 by tumptyteapot

Hi
I’m trying to move a forum from one site to another.
I’m using the WordPress export/import function
I can see the structure of the imported forums including topic numbers and replies but there is no information in the topics. The error says ‘Oh, bother! No topics were found here.’

I used the Cimy User Manager to import all the users and that worked fine.

I’ve tried resetting permalinks but still nothing shows in the topics.

Have I done something wrong?

bbpress and custom themes

Published on May 21st, 2020 by zackxoxo

I’ve recently tried the bbpress plugin and have had 0 luck figuring out how to install any themes. Does anyone out there know of a good tutorial explaining how to do this?

I really want to use bbpress but it just looks horrible with my theme from Elegant Themes. (And the theme looks great).

Thanks!

Editing the ‘Oh bother!’ Message

Published on May 21st, 2020 by cmsplay

Loving bbPress.

We’ve set our fora (forums) to show only for logged-in users.

When a visitor is not logged in and they click on the Fora link, bbPress shows the following message:

Oh, bother! No forums were found here.

We’d rather that the message said ‘Fora are viewable by logged in members’.

How and where do we edit the ‘Oh bother!’ message? (Which might be the right CSS file?)

Thank you.

Multiple notifications Error

Published on May 21st, 2020 by supportowpok

I’m receiving multiple notifications on new answers to forum posts.
In some cases I get two email for the same notification.
Anyone has experimented the issue or have any suggestion?
Thanks

How can I fully remove this plugin?

Published on May 20th, 2020 by thomasprice61

bbPress Version 2.6.4

It is a vanilla install, no customisation or plugins.
I tried to deactivate bbPress and get the following error:

Fatal error: Uncaught Error: Cannot unset string offsets
in /hsphere/local/home/somewhere/something/wp-includes/class-wp-role.php on line 75

Call stack:

WP_Role::remove_cap()
wp-content/plugins/bbpress/includes/core/capabilities.php:240
bbp_remove_caps()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-content/plugins/bbpress/includes/core/sub-actions.php:40
bbp_deactivation()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-admin/includes/plugin.php:812
deactivate_plugins()
wp-admin/plugins.php:194

Can you please assist?

‘Incorrect DATETIME value: 0’ error when viewing new forum

Published on May 20th, 2020 by redevelop

Hi there, I’m experiencing the following error after installing bbPress on my local PC (the site is not public) and setting up a test forum:

“WordPress database error Incorrect DATETIME value: ‘0’ for query SELECT p.ID FROM wp_posts AS p WHERE p.post_date < ‘0’ AND p.post_type = ‘forum’ AND ( p.post_status = ‘publish’ OR p.post_status = ‘private’ OR p.post_status = ‘hidden’ ) ORDER BY p.post_date DESC LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/twentytwenty/singular.php’), get_header, locate_template, load_template, require_once(‘/themes/twentytwenty/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_adjacent_post”

My setup:
A new WordPress 5.4 install with no other self-installed plugins
Theme: Twenty Twenty
Windows 10
PHP 7.4.4
MySQL 8.0.19
I created a forum called ‘Test Forum1’ & this appears in the WordPress Admin. When I click the permalink to view the forum I see the above error on a blank white screen.

Any advice much appreciated – thanks.

Skip to toolbar