Search Results for 'code'
-
Search Results
-
Hi support team,
I was trying to use your translatetion instructions but unfortunately it has not worked on my case.
1. I downloaded files mo./po. (Go to https://translate.wordpress.org/projects/wp-plugins/bbpress)
2. renamed them accordingly “bbpress-de_DE”
3. uploaded to my server folder “wp-content/languages/buddypress”But still are not working. Any ideas?
Screen shot – https://www.screencast.com/t/Ke8sEFj5Looking forward to your help.
BR, Alex
Topic: bp activity filter options
hey, hope you’re well.
i could need some help on fixing my filter options in the activity stream for topics and replies. they just don’t filter, i’m still seeing everything
This is what i found:
function activity_filter_options() { ?> <option value="<?php echo $this->topic_create; ?>"><?php esc_html_e( 'Topics', 'bbpress' ); ?></option> <option value="<?php echo $this->reply_create; ?>"><?php esc_html_e( 'Replies', 'bbpress' ); ?></option> <?php }I’m pretty bad at php, but i have a feeling there must be something wrong. 😀 tried changing topic_create to bbp_topic_create, but no. Can you help me? 🙂
Topic: Convert mailing list
Hello,
I am considering bbPress. I would like to migrate posts from an old style mailing list into a modern forum.Is there a current way of doing this?
If not, I may write a Java application for this purpose. Is it practical then to access the bbPress database directly for the Java code in order to insert posts? I’d like to retain the original timestamps. I’d also need to create users, associated with the email addresses of the posters.
Regards,
RupertHi folks,
i added the following code to a php file in the /mu-plugins/ folder, to deactivate a plugin for logged-in users:add_filter( 'option_active_plugins', 'disable_logged_in_plugin' ); function disable_logged_in_plugin( $plugins ) { require (ABSPATH . WPINC . '/pluggable.php'); if ( is_user_logged_in() & !is_admin() ) { $key = array_search( 'bloom/bloom.php' , $plugins ); if ( false !== $key ) { unset( $plugins[ $key ] ); } } return $plugins; }Strangely bbPress gets also deactivated by it, while all other plugins run without any problem.
Do you have an idea why this happens and what to change?
Regards
DominikI am trying to replace my comments on posts with bbpress topics. This plugin is working for the most part…I’m able to auto create new topics of my published posts on the forum. However, my comment box has disappeared on the posts. There is a comment button to click. But when clicked, there is nothing displayed for posting comments.
I have found out that this is a theme issue and not a plugin issue. When I change to a different theme, such as a WordPress default theme, the plugin works. However, I do not want to lose my current theme. Does anyone know if there is any css code I can add to my theme in order to make the bbpress comment box to appear on the WordPress posts.
Website: http://bamadigest.com
Thank you!Topic: bbp_author_metabox error
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
DavidTopic: 500: post_status no array
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