Search Results for 'code'
-
Search Results
-
Hi,
I’m receiving this error 1-2 times per day like clockwork:
Current plugin: bbPress (version 2.6.9) PHP version 8.1.6 Error Details ============= An error of type E_ERROR was caused in line 33 of the file /home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php. Error message: Uncaught TypeError: register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class BBP_Converter_DB does not have a method "__destruct" in /home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php:33 Stack trace: #0 /home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php(33): register_shutdown_function(Array) #1 /home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(150): BBP_Converter_DB->__construct('site_db', '&9Ah58fa', 'site_db', 'localhost') #2 /home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(104): BBP_Converter_Base->init() #3 /home/site/public_html/wp-content/plugins/bbpress/includes/admin/converters/phpBB.php(24): BBP_Converter_Base->__construct() #4 /home/site/public_html/wp-content/plugins/bbpress/includes/admin/tools/converter.php(94): phpBB->__construct() #5 /home/site/public_html/wp-content/plugins/bbpress/includes/users/functions.php(982): bbp_new_converter('phpBB') #6 /home/site/public_html/wp-includes/class-wp-hook.php(307): bbp_user_maybe_convert_pass('') #7 /home/site/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #8 /home/site/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #9 /home/site/public_html/wp-content/plugins/bbpress/includes/core/sub-actions.php(265): do_action('bbp_login_form_...') #10 /home/site/public_html/wp-includes/class-wp-hook.php(307): bbp_login_form_login('') #11 /home/site/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #12 /home/site/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #13 /home/site/public_html/wp-login.php(518): do_action('login_form_logi...') #14 thrown
Hi
I am now using the [BBP-STATS] shortcode and am trying to adjust the below code so that instead of ‘Forum Members’ being position higher than the $stats[‘user_count’] value presented, I am looking for code adjustment that will place $stats[‘user_count’] to the Right and inline with ‘Forum Members’
Currently;
Forum Members
xxxxLooking to achieve;
Forum Members xxxxCode currently is …
—-
<dt><?php esc_html_e( ‘路 Forum Members’, ‘bbpress’); ?></dt>
<dd>
<?php echo esc_html( $stats[‘user_count’] ); ?>
</dd>
—-Any guidance most welcomed
Topic: seachform shortcode
I used the shortcode[bbp-search] make seachform.
I want to change border color and size of this searchform.
So I wrote CSS like this.#bbp_search {
border-color:#0c162a important!;
width:50%;
}But the design did’t change.
What CSS should I write?A few months ago I played around with popular SEO plugins. Unbeknownst to me, one of them created a sitemap that included over 50,000(!) individual topic reply pages, and Googlebot indexed over 20,000 of them…making my site run out of crawler quota.
I didn’t notice the problem until Google went from instantly indexing my articles to ignoring them until manually submitted.
Blocking the community/reply/* URL in robots.txt has little effect because it only blocks googlebot from visiting the URL format again – it doesn’t drop the existing indexed pages.
So I added this to a custom plugin:
add_action("wp_head", function () { if (substr($_SERVER['REQUEST_URI'], 0, 17) == "/community/reply/") { echo '<meta name="robots" content="noindex">'; } } );
Self-explanatory – adds the noindex to the header of reply pages. If you’ve named the slugs differently, obviously edit them and the substr length count.
Let me know if you’ve experienced the same issue and how you went about fixing it. And.. what’s the point of the reply page any way? It’s just duplicate content because the reply is already listed in the thread.
Topic: Filter Replies by Tags
Hello all,
I’m working in PHP in WordPress. I’m comfortable modifying and editing code.
I have a collection of Musical Artists and their releases. I’ve created a topic for each artist (post type) and release (post type) using bbPress Topics For Posts.
The user then replies to the topic. I want them to be forced to choose a tag when they reply: “Buy”, “Sell”, or “Info”.
Then I want them to be able to click a button that only shows replies tagged “Buy”, “Sell”, or “Info”.
How do I create a button to filter replies in PHP? Thanks!
Here’s an example of an artist page with a discussion forum below