Search Results for 'code'
-
Search Results
-
Hi all,
I am using Thrive Theme Builder, which has a set of templates (or you can easily create your own) that you can apply to different pages, etc. One nice feature is that they are “smart” in that you can set your theme colors and then if you change them, they’ll change on all of the pages in your site that use the smart templates.
It’s easy to specify which Thrive Theme Builder template to use for pages that show up in the wp Pages list. However, BBpress forum pages seem to be generated on demand. Right now, if I click on a forum, it us using a random (but probably the first alphabetical) template (the default “Audio post”). Which needless to say, is not what I want and is ugly to boot.
Is there a way to specify which Thrive Theme Builder template to use for these pages? I am not a coder (at all) and I’m highly leery of poking around with php files and so on, especially as they might get overwritten or broken by wp or Thrive or BBpress updates down the line. So what I really want is a setting that says, “choose this Theme Builder template for the forum pages.”
Thanks!
Topic: Total post views
Users are asking for total post views. I have no idea why but thought Iโd ask if its a setting. If not were do I go to ask for code writing help.
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.