Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_author_metabox error

Published on May 17th, 2017 by mrcanoa

Hi bb Team,

I found a bug, maybe, on bbpress ver.: 2.5.12 if I use action bbp_author_metabox

I try to add some user info on metabox but if I call this:

add_action('bbp_author_metabox', array($this, 'bbp_author_details'));
function bbp_author_details($post_id) {
	echo "<p>Test</p>";
}

in html code I’ve this on start tag:
`<p>Test</p><!DOCTYPE html>
<!–[if IE 8]>`

and on the right place:

<div id="bbp_author_metabox" class="postbox " >
<button type="button" class="handlediv button-link" aria-expanded="true"><span class="screen-reader-text">Commuta il pannello: Informazioni autore</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class='hndle'><span>Informazioni autore</span></h2>
<div class="inside">
		<p>
			<strong class="label">ID:</strong>
			<label class="screen-reader-text" for="bbp_author_id">ID</label>
			<input type="text" id="bbp_author_id" name="post_author_override" value="xxxxx" data-ajax-url="xxxx" />
		</p>
<p>
		<strong class="label">IP:</strong>
		<label class="screen-reader-text" for="bbp_author_ip_address">Indirizzo IP</label>
		<input type="text" id="bbp_author_ip_address" name="bbp_author_ip_address" value="xxxxxx" disabled="disabled" />
	</p>
	<p>Test</p></div>
</div>

I found that do_action( ‘bbp_author_metabox’, get_the_ID() ) it’s called twice:
-on author_metabox function (bbpress/includes/admin/topics.php)
-on bbp_author_metabox function (bbpress/includes/admin/metaboxes.php)
-on author_metabox function (bbpress/includes/admin/replies.php)

This cause html error code.

I think it’s name error on bbpress/includes/admin/topics.php and should be do_action( ‘bbp_author_attributes_metabox’, get_the_ID() );

Thank you
David

bbpress private groups plugin breaks blog posts

Published on May 16th, 2017 by jvolavka

Hi. I’m using the bbpress private groups plugin and it seems to be causing problems with my blog. I get a 500 error when I try to add a new blog post, and it also gives an error when I try to save or publish a pre-existing draft. Is there anything I can do about that? I don’t want to lose my private forums because there are different groups on the site that need their own spaces.

Thanks!

How to cancel the media upload in wordpress

Published on May 16th, 2017 by Subhransu

I have added wp-media button in bbpress topi form, I want to cancel while uploading any big file.

Please help….

How can I customise topic pagination

Published on May 16th, 2017 by Subhransu

In topic listing page I want to customise the pagination link. I am running some custom query to show the topic as per my requirement, I want to show the topic pagination as per my requirement.

Please help if any trick.

500: post_status no array

Published on May 16th, 2017 by tweichart

Hey guys,

I get a 500 error after the latest update:


AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /var/www/vhosts/<url>/wp-content/plugins/bbpress/includes/forums/functions.php:1800
Stack trace:
#0 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
#1 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
#2 /var/www/vhosts/<url>/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#3 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)
#4 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
#5 /var/www/vhosts<url>/wp-includes/class-wp.php(617): WP_Query->query(Array)
#6 /var/www/vhosts/<url>/wp-includes/clas...'

ln 1800 looks like this:


$post_stati = $posts_query->get( 'post_status' );

// Default to public status
if ( empty( $post_stati ) ) {
    $post_stati[] = bbp_get_public_status_id();

// Split the status string
} elseif ( is_string( $post_stati ) ) {
    $post_stati = explode( ',', $post_stati );
}

could be fixed by forcing the array:


$post_stati = $posts_query->get( 'post_status' );
if (!is_array($post_stati)){
    $post_stati = array($post_stati);
}

// Default to public status
if ( empty( $post_stati ) ) {
    $post_stati[] = bbp_get_public_status_id();

// Split the status string
} elseif ( is_string( $post_stati ) ) {
    $post_stati = explode( ',', $post_stati );
}

side note: wp version 4.7.4, bbpress version 2.5.12

Thanks in advance,
Toby

Live chat plugin

Published on May 16th, 2017 by madonaus

Hi there,

I have a question, is it possible to add live chat support plugin and make it available for some special members, like only gold and silver ranking can use the live chat.

Thanks

BBPress and Woocommerce

Published on May 15th, 2017 by shabirg

Hi,

Sorry if this gets posted in the wrong place.

I am looking at setting up a marketplace forum. When users signup to the forum is their a way of giving them a storefront linked to their profile.

Shabir

Adding custom menu widget above all bbPress pages

Published on May 15th, 2017 by thepageman

I am a newbie with WordPress and I have been using a custom menu widget placed at the top of all of my pages to keep a consistent header going. I am now trying to use bbPress and discovered I can create a page called “Forum” and use a page builder to place my menu widget above the forum shortcode widget to achieve the header.

However, when I select a forum/topic, it goes to a different page, one that is generated by bbPress and as such, doesn’t have a page builder design of which I can place a header.

It seems like the best solution would be to implement this header into all my pages through editing some php file somewhere but that is a bit beyond my technical ability. Is there a way to add widgets to ALL bbpress pages?

Auto Role not working

Published on May 15th, 2017 by iamcoxnow

I set auto role to be “Contributor” on my forum, but for some reason, after the first registration working properly, all users are being given Administrator, Keymaster access. I’ve tried the repair tool but it’s not working. Any suggestions?

Nofication of topics and replies

Published on May 15th, 2017 by mktunicus

Hi,

When I click on notify me that time I am getting notification of my comments only when someone commenting on my replies it is not sending me an email that so and so person replied on my comment. Here on bbpress.org when we check on “Notify me of follow-up replies via email” then it works perfectly like this functionality I want on my site.

Please advice me.

Skip to toolbar