Search Results for 'bbpress'
-
AuthorSearch Results
-
November 23, 2021 at 2:30 pm #225728
In reply to: Editor buttons missing since 2.6.8 upgrade
Robin W
Moderatorthis is a temporary fix, the bbpress authors are looking at a permanent one
if( !function_exists( 'bbpress_browser_supports_js' ) ){ function bbpress_browser_supports_js() { echo '<script>document.body.classList.remove("no-js");</script>'; } add_action( 'wp_footer', 'bbpress_browser_supports_js' ); }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
November 23, 2021 at 1:51 pm #225727In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderatoras far as I understand, the issue is detailed in changeset 7190 – yes?
so it is basically to hide the ‘generate passwword’ in form-user-passwords.php if the user’s browser does not support js or it is disabled.
If so, at the moment all bbpress pages end up with a no-js class as bbpress sets ‘no-js’ as the default, which means that the quicktags do not display on the topic and reply forms as they need js but the css thinks it is no-js, and the visual editor does not work for the same reasons.
At the moment you only test for js using the script technique in form-user-passwords.php viz
<script type="text/javascript"> document.body.className = document.body.className.replace( 'no-js', 'js' ); </script>so I would suggest 1 of 2 approaches
1. putting this test in more generally so it runs on any bbpress page (as usefully suggested by @webcreations907) maybe by adding to the main function, or adding a filter in \includes\core\filters.php to run the script
so something like :
add_filter ('bbp_body_class' , bbp_test_js) ; function bbp_test_js ($classes) { ?> <script type="text/javascript"> document.body.className = document.body.className.replace( 'no-js', 'js' ); </script> <?php return $classes ; }so that others could disable it
2. changing the class to bbp-no-js should work, if you do this in the bbp_body_class function and the form-user-passwords.php and in css, then I can no reason why it would not work if that is the sole intention of this.
November 23, 2021 at 12:57 pm #225722In reply to: Topic or forum (un)subscription hook
maksanse
ParticipantThank you Robin & John for those detailed answers !
@robin-w, you were right : I was trying to modify my page with this handler… what is not possible the way I intended.So I found a way to do my feature differently.
Best regards and thank you 2 so much for your implication in bbpress 🙏
November 23, 2021 at 12:55 pm #225721In reply to: HTML editor doesn’t appear on bbpress 2.6.7
John James Jacoby
Keymaster@robin-w – any suggestions on improvements bbPress should make?
I was thinking of renaming
no-jstobbp-no-jsto try and avoid an issue with other plugins or themes already doing something with that class, but I’m not sure that solves this specific problem.November 23, 2021 at 11:51 am #225717In reply to: bbp user ranking conflict with Divi?
quilp
ParticipantFollowing up on recommendation to turn debug on.
BBPress is now Version 2.6.8
With the most recent occurrence, I had debug mode on.
To recap, periodically the blog page, blog posts, and bbpress forum return “No Results Found”
Deactivating bbpress resolves the problem. bbpress can then be reactivated to restore forum functionality. Problem recurrs multiple times within a week.
The last two occurrences of the issue were 6 days apart. Nov 17 and this morning Nov 23rd.
debug log from 11/23
23-Nov-2021 14:59:45 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495
[23-Nov-2021 14:59:49 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495
[23-Nov-2021 15:01:22 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495[23-Nov-2021 15:21:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
Stack trace:
#0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
#1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
#2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
#5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
#6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
#7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
[23-Nov-2021 15:21:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
Stack trace:
#0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
#1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
#2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
#5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
#6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
#7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
[23-Nov-2021 15:22:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
Stack trace:
#0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
#1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
#2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
#5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
#6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
#7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
[23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
[23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
[23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
[23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
[23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698November 22, 2021 at 4:00 pm #225534In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderatorvery happy for you to mention it 🙂
Adding the no-js class to the bbpress body is something that bbpress 2.6.8 introduced. This was I am presuming on the presumption that that js was never needed on bbpress pages which is not the case in you want the visual editor or quicktags on the text editor.
I’m simply taking it out for bbpress pages as a first step for those that need it, ie remving the change in 2.6.8 and reverting to the absence that bbpress has used for 7 years. My presumption is that the visual editor will not work on browsers that do not support js, which as you say is a very small amount if any actually used nowadays !!
anyway thanks for your clarification, let’s see what the bbpress authors do.
November 22, 2021 at 2:20 pm #225531In reply to: HTML editor doesn’t appear on bbpress 2.6.7
lisabeavers
ParticipantI am also using bbpress and have the same problem – the html bar for replies, etc. has completely disappeared for my users. I am on version 2.6.8 and it has not solved the problem. Help! (Please and thank you). I have checked everything and can’t find a single reason for it to be happening on my site. Everything was working great a few days ago.
November 22, 2021 at 4:15 am #225486In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderatorthe snippet I used takes it out before bbpress renders, @webcreations907 snippet does it after. Neither is right/wrong, and use whichever is better for you
November 21, 2021 at 11:44 pm #225484In reply to: HTML editor doesn’t appear on bbpress 2.6.7
webcreations907
ParticipantThat’s good, glad that worked out for you.
You could also put it in
bbpress.phpin the plugin itself, then when the fix comes out and the plugin is updated it would get rid of it.For others looking for a solution, I tried to edit my post above but couldn’t, when I mentioned
functions.phpI mean thefunctions.phpfile that is within your current active WordPress theme.November 21, 2021 at 11:20 pm #225482In reply to: HTML editor doesn’t appear on bbpress 2.6.7
webcreations907
ParticipantWhen
no-jsis used, it’s usually removed using javascript or jquery to check if the browser supports it as some people turn it off in there browser preferences.Try adding the below code to your
functions.phpor code snippet plugin, etc.if( !function_exists( 'bbpress_browser_supports_js' ) ){ function bbpress_browser_supports_js() { echo '<script>document.body.classList.remove("no-js");</script>'; } add_action( 'wp_footer', 'bbpress_browser_supports_js' ); }Make sure to clear any caches and check to see if it works for you.
November 21, 2021 at 12:30 pm #225472In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderator@jjj Moving the ‘no-js’ class to the bottom of the ‘bbp_body_class’ function does not fix, as the quicktags toolbar is still not shown.
the following filter fixes, but I’m not entirely sure what the introduction of then ‘no-js’ class to the function is doing, but I can’t see that the patch has any unintended consequences as it only runs on the relevant pages.
add_filter ('bbp_body_class', 'rew_unset_no_js') ; function rew_unset_no_js($classes) { if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) { if (($key = array_search('no-js', $classes)) !== false) { unset($classes[$key]); } } return $classes ; }or if that doesn’t work
add_filter ('bbp_body_class', 'rew_unset_no_js') ; function rew_unset_no_js($classes) { if (($key = array_search('no-js', $classes)) !== false) { unset($classes[$key]); } return $classes ; }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
FOR THOSE USING BBP-STYLE-PACK – I’ll issue a revised version incorporating this shortly until fixed in bbpress.
November 19, 2021 at 8:53 pm #225453In reply to: Subforum Function Stopped Working
TreeTrail
ParticipantThis topic has been resolved! We discovered what was causing this problem. It was not any custom code or plugin update issue. It was simply that I had changed the bbPress Forum > Visibility from “public” to “private”. Evidentially this prevents a plugin (like bbPress Toolkit) or custom code (like ours) from accessing the information.
November 19, 2021 at 6:19 pm #225452In reply to: HTML editor doesn’t appear on bbpress 2.6.7
KevinPlusPlus
ParticipantI have this in my functions.php:
/* Re-enable the visual editor for bbPress */
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );function bbp_enable_visual_editor( $args = array() ) {
$args[‘tinymce’] = true;
$args[‘teeny’] = false;
return $args;
}I should add that with the 2.6.7/8, the text editor doesn’t even show the toolbar. All I get is the text window with no buttons at all.
November 19, 2021 at 2:32 pm #225445In reply to: HTML editor doesn’t appear on bbpress 2.6.7
OSCOWP
ParticipantWe enable it using bbpress style pack plugin.
It did work before and since 2.6.7 it isn’t.
November 19, 2021 at 2:25 pm #225444In reply to: HTML editor doesn’t appear on bbpress 2.6.7
John James Jacoby
KeymasterCan you please post the code snippet you are using to enable the visual editor?
In my testing, it is working OK using these snippets:
November 19, 2021 at 1:23 pm #225440In reply to: Page layout only applies on main page
John James Jacoby
KeymasterI see now, thanks!
Perhaps, this is something that bbPress could do a better job with. Each of the forum/topic type pages is its own thing, and they do not inherit the page settings from the forum root in the way it seems like you are expecting for them to – which is totally reasonable to expect.
November 19, 2021 at 1:10 pm #225438In reply to: There is an error! disallowed_keys
John James Jacoby
KeymasterThis is a deprecated argument that only appears when
WP_DEBUGis turned on.The debug log itself is nothing to worry about. 👍
bbPress will address this once its minimum version is (legitimately) raised to 5.5.
Thank you for letting us know here 🙏
November 19, 2021 at 12:58 pm #225435John James Jacoby
KeymasterRevisions are totally a WordPress thing. It’s weird, but sounds accurate.
Using Gravity Forms to create new topics & replies will bypass the “freshness” hooks that bbPress expects to run normally. This means that the “branch” of topics & forums in the “tree” of that submission won’t get walked up to the root, to tell that whole branch what its most recent content is.
Once you post something yourself normally, the tree gets walked and everything looks OK.
The function that would normally be called is
bbp_update_topic(). It includes all of the extra meta data that needs to be added – including a call tobbp_update_topic_walker()that “walks” the branch in the tree.Lastly, it refreshes the
last_changedcache key in thebbpress_postscache group. You could try busting that cache on your Gravity Forms submission (to see if that’s enough) but I have a feeling it won’t be, and you’ll need to find the best way to trigger the update.November 19, 2021 at 10:22 am #225417Topic: Page layout only applies on main page
in forum ThemesAi Roux
ParticipantHello there,
I’ve installed bbpress on my forum, my theme is Fashify and my forum theme is the default one, nothing has been changed.
I setted the page of the forum with “full width”, and my default setting for the site has a right sidebar.How can I do to keep the full width template when I navigate through the forum ? I can’t find any setting for that.
Thanks by advance
November 19, 2021 at 9:36 am #225415Topic: Create a Single Login/Profile for my site and sub folder
in forum Installationmgilbrtsn1
ParticipantI have a site that has a sub folder with a separate theme. I want to use bbpress and buddypress because that is what the theme in the subfolder is compatible with.
I wish there to be a login/profile on the main site to carry over to the sub folder. I don’t want people to have to create different profiles.
Can someone tell me how to do this or point me in the right direction please?
November 19, 2021 at 8:03 am #225413In reply to: bbpress 2.6.7 body class
Alexander Agnarson
ParticipantI just found out this issue too, and it breaks all of my pages. All pages now has a bbpress body class.
I kind of need an urgent fix – any code that I can add to fix it for now?
November 19, 2021 at 5:46 am #225412Topic: bbpress 2.6.7 body class
in forum Troubleshootingregnalf
ParticipantI use the bbpress body class to design the forum (especially the background).
With the last update, however, the error may have slipped in that the “bbpress” body class is also included on other pages even if it is not a bbpress page! They are now also styled with CSS although they should not!I also use the bbpress style pack and the private groups plugin. But the error occurs even if these two plugins are disabled.
November 19, 2021 at 4:02 am #225398In reply to: Links from wordpress instal update screen
AdventureRidingNZ
ParticipantYeah, the BBPress release info, and BBPress itself seems to be the neglected son of WordPress.
November 19, 2021 at 2:39 am #225397Topic: HTML editor doesn’t appear on bbpress 2.6.7
in forum TroubleshootingOSCOWP
ParticipantSince I updated to 2.6.7 only appears now the visual but not the HTML…
WHY?
November 18, 2021 at 9:08 am #225372Topic: Paste as plain text for the Teeny Editor?
in forum Troubleshootingdusemedia
ParticipantAccording to the documentation, the code below enables paste as plain text in the visual editor:
function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );It works fine when using the full visual editor, enabled by this code:
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['teeny'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );But paste as plain texts does not work when using the Teeny editor, enabled with this code:
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );Does anyone have a snippet to enable paste as plain text when using the Teeny editor?
-
AuthorSearch Results