Search Results for '"wordpress'
-
AuthorSearch Results
-
November 26, 2021 at 1:09 pm #225808
In reply to: Paste as plain text for the Teeny Editor?
Robin W
Moderatorit’s a wordpress rather than bbpress issue.
The documentation could be clearer, but that section refers to the tinymce not the text editor
I’ve not tried it, but this might help
November 25, 2021 at 4:47 am #225780In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
ModeratorThere is a temporary fix, either
1. use code
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
or
2. install and activate
November 23, 2021 at 2:30 pm #225728In 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 22, 2021 at 2:28 pm #225532In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderator2.6.8 does not fix.
so use either
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
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 2:20 pm #225477In reply to: Error: Are you sure you wanted to do that?
artmuns
Participantthe error is when the βnonceβ does not validate.
I suppose I could try using translation to make it a friendly message but would rather try and fix it.
function my_nonce_message ($translation) { if ($translation === 'Are you sure you want to do this?') { return 'Please try again.'; } return $translation; } add_filter('gettext', 'my_nonce_message');November 21, 2021 at 1:18 pm #225476In reply to: Error: Are you sure you wanted to do that?
Robin W
Moderatorthe error is when the ‘nonce’ does not validate.
https://codex.wordpress.org/WordPress_Nonces
not sure what you can do about it, not my speciality π
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 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 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 18, 2021 at 8:27 am #225371Topic: Links from wordpress instal update screen
in forum InstallationKennyWilliamson
ParticipantGood day, just to let you know the blog link on the release info version goes to 404, when enter release info page.
November 16, 2021 at 12:14 pm #224410In reply to: Automatic register to bbpress
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
November 16, 2021 at 6:56 am #224404Topic: Automatic register to bbpress
in forum InstallationAi Roux
ParticipantHi there,
I’m pretty new with wordpress and bbpress, and I can’t find the setting I need.
I want that new users automaticaly got the subscriber role on my site (done, general setting) and also the bbp_participant role.How can I do that ? Thanks by advance.
Kind regards
November 15, 2021 at 2:05 pm #224392In reply to: Custom Registration Email
Robin W
Moderatoryes it does make sense π
so this is just ‘registration’ and any new users you ‘register’ for ‘wordpress not forums’ will be known to you and presumably admins, so it probably does not matter that ‘all’ new registrations receive a ‘forum’ welcome, as they will all be forum users apart from any new admins you sign up, who can be told to ignore the email.
so I would suggest that you just use a WordPress registration welcome and tailor it for your forum users.
Does that make sense, or have I misunderstood something ?
November 15, 2021 at 1:55 pm #224390Topic: Groups topics by month
in forum Troubleshootingdalton125
ParticipantI think this post belongs in the “Development” forum, but that forum has a message saying that it’s closed to new posts. Let me know if there’s a better place for my question.
I’m trying to create a navigation sidebar for users to navigate my bbPress forum. I’ve seen WordPress themes with a navigation sidebar for blog posts which has a list of months and years, as in:
August 2021
September 2021
October 2021And clicking any of those list items will show the user any blog posts created in the given month. This is what I’d like to emulate with bbPress β a sidebar with links to different months, and clicking the link will show the user all forum topics created in that month.
Does anyone have advice on how to do this? I’ve looked through the bbPress settings and even installed the bbp style pack plugin, but I can’t find a setting that will do what I’m trying to do. Is there a plugin or setting that I’ve missed? I don’t mind writing code to solve this problem, but I’m a PHP beginner so I’m not sure where to begin.
I’m using WordPress 5.7.2 and bbPress 2.6.6. I don’t have a live version of my site to show.
November 15, 2021 at 1:51 pm #224389In reply to: Custom Registration Email
Robin W
Moderatorok, so how you are doing those differently from WordPress?
November 15, 2021 at 1:33 pm #224387In reply to: Custom Registration Email
Robin W
Moderatorbbpress simply users WordPress registration, so any WordPress registration plugin will work.
just google ‘wordpress registration plugins’
November 15, 2021 at 1:20 pm #224386Topic: Custom Registration Email
in forum Troubleshootingpluckvermont
ParticipantHi,
I am trying to customize the registration email for BBpress. Is there an easy way to do this?
Looking through this forum, I understand the email is generate by the WordPress Core.Is there a plugin? I’d just like to redirect people to the actual forums, and not our site’s homepage.
TIA–
November 15, 2021 at 4:15 am #224377In reply to: Prevent not logged in users to view the forum at all
skpc1
ParticipantHOW TO REDIRECT USERS, WORDPRESS BUDDYPRESS HIDE PAGE FROM NON-MEMBERS, NON-LOGGEDIN USERS..
How to hiding / redirect users page from non logged in users ?
Here the simple step to protect your WordPress BuddyPress member only pages. Add this simple snippet into your theme’s ‘functions.php’ file. That’s it..
The below snippet sample will redirect the visitor if the visitor is not logged in & trying to visit the sensitive BuddyPress pages.
Will redirect non-logged-in users trying to access private content to your front page or home page
Ref: https://vvcares.com/blog/post/wordpress-buddypress-hide-page-from-non-membersNovember 14, 2021 at 6:41 am #224365Robin W
ModeratorNovember 13, 2021 at 5:56 pm #224360In reply to: Is bbpress abandoned?
Robin W
Moderatordev work is ongoing in bbpress – see
https://bbpress.trac.wordpress.org/report
but bbpress authors chose to release sparingly.
there are a good many additional plugins that do lots of things to add functionality to bbpress
November 11, 2021 at 2:55 pm #224330In reply to: Send email to forum subscribers on every action
Robin W
ModeratorNovember 11, 2021 at 1:15 pm #224326Robin W
Moderatorok, I cannot replicate – might be a multisite issue, might not.
all I can suggest further is the standard advice :
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
November 9, 2021 at 9:50 am #224288In reply to: topic/reply is pending moderation
Robin W
ModeratorThis plugin still works
on the ‘security settings’ – these are as set in
dashboard>settings>disucussion>comment moderation where you can increase the no. links allowed
November 8, 2021 at 9:23 am #224268In reply to: WP-CLI commands for bbPress?
Ludovic S. Clain
ParticipantHi Robin,
thank you for your reply.For your reference, wp-cli commands often (if not all) have default outputs and they do not need to be explicitly declared unless particular outputs are expected.
Here is a list of all post types available on my WordPress installation:
https://markuphero.com/share/5dn5FOkMzGNpG9R6Unbx
As you can see, I have a custom post type named ‘sfwd-lessons’ so if I run the command
wp post list --post_type=sfwd-lessonsI have all these custom posts which are listed with the default outputs:https://markuphero.com/share/8Mbqbgujeaou2QH60l1k
But when i’m trying
wp post list --post_type=topicthe output is empty:https://markuphero.com/share/3APucSjLM0IHRgLHIuVb
https://markuphero.com/share/V3pihOOXPNQWUx3Knzqd
Have you really tried it on your end?
Warm regards,
Ludovic -
AuthorSearch Results