Search Results for 'test'
-
AuthorSearch Results
-
December 3, 2021 at 1:31 pm #225942
In reply to: Subscription Mails
Chris
ParticipantSure Robin. I’m not sure if it’s wordpress default template, but I’ll show you what I receive (as a test user, not admin) and what I set up.
Here’s what I receive:

Here’s my template:

I also noticed that “Don’t show this message” (Oh bother! No forums were found here!) doesn’t work for me. I ticked it, but the message is still there. Is there a php snippet I could add to my Woody snippet plugin? Thank you.
December 3, 2021 at 1:16 pm #225939Robin W
Moderatorfind
wp-content/plugins/bbpress/templates/default/bbpress/feedback-no-access.phptransfer this to your pc and edit the text as desired
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/feedback-no-access.phpbbPress will now use this template instead of the original
untested, but of you add
<?php bbp_get_template_part( 'form', 'user-login' ); ?>to the end of that form, it should also show a login
December 3, 2021 at 11:50 am #225938neenunc
ParticipantHi,
I am using bbpress for my forums, and the issue I am facing is – When adding a reply to a topic, the newly added reply is not showing. It will get shown only after another reply is added(At that point, this newly added second reply is not showing.)
The topic updated time period and author info seem to be updated correctly. Also, the replies to a reply are also updated correctly.Changing my forum theme to 2019 helps to get the latest reply.. but what change should I do to get it back with my theme?
Any help would be appreciated.
December 1, 2021 at 12:42 pm #225911In reply to: Post Not Being Fully Published
Robin W
ModeratorJust that one post, or do similar long posts get truncated? might be worth trying to create one as a test user and see
November 30, 2021 at 2:26 pm #225899In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
ModeratorI appreciate your frustration, but not sure ‘fault’ is the correct word.
bbpress has changed something – but the ‘fix’ when it comes may not ‘fix’ you, as your site is adding a no-js class (from either the ‘Publisher’ theme or a plugin) which then isn’t overwritten as is normal practice by a test within your theme or the plugin.
you could try adding this to the custom css of your theme
.no-js { display : inline !important }to override the bbpress setting
November 30, 2021 at 1:59 pm #225897In reply to: Hide “New Topic” Form on Certain Pages
Robin W
ModeratorUntested, but find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.phptransfer this to your pc and edit
change line 31
from
<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>to
<?php if ( bbp_current_user_can_access_create_topic_form() && (bbp_get_forum_id() != '2927') ) : ?>and save
where 2927 is the forum you don’t want to show the form for
then create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-topic.phpbbPress will now use this template instead of the original
If you want multiple forums, you could create and array and test against that
November 30, 2021 at 1:15 pm #225892In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderator@oscowordpress1 – it does on my test site
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
November 30, 2021 at 12:41 pm #225890In reply to: 404 Error When Jetpack Connected to WordfPress.org
Robin W
Moderatorit’s great that you have taken the time to understand the standard tests required, they do solve 80% of issues which is why we ask for them, we don’t do it to annoy you.
the issue may well be a 3 plugin combination thing – so bbpress in combination with another plugin and jetpack, which is why ideally you would carry out the tests.
Given that you cannot, then there are two elements to user access – the wordpress level and the bbpress level
eg ‘administrator’ for wordpress and ‘keymaster’ for bbpress.
I think you best bet would be to set up a user and work through the combinations to see what works and what doesn’t – eg does admin and participant work, but not subscriber and keymaster, does admin work with moderator etc etc. That would help decide what the override that is allowing ‘admins’ to see stuff is.
Then come back and report
November 30, 2021 at 7:35 am #225886Topic: 2.6.9, what is in it?
in forum InstallationEditor Mike
ParticipantMy dashboard takes me here when I click for latest updates.
But that is not up to date, how do we know what is in an update before we install it?
November 30, 2021 at 6:09 am #225883In reply to: Moving forums from one installation to another
pelmoggian
ParticipantJust to add some information – running the latest version of BBPress.
November 25, 2021 at 6:38 am #225784Topic: Can I get the latest reply ID by topic ID?
in forum Troubleshootinggerryj
ParticipantHello,
does anyone know if I can get the latest reply ID from a topic with the topic id?
I already looked online, but haven’t really found a fitting function for this.
Something like bbp_get_latest_reply_by_topic_id($topic_id); would be perfect.
Thanks in advance.Regards
Gerry ZellerNovember 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 22, 2021 at 3:29 pm #225533In reply to: HTML editor doesn’t appear on bbpress 2.6.7
webcreations907
Participant@robin-w if you remove the
no-jsin php, then it doesn’t allow the reason for adding it which would be to test if the browser supports javascript/jquery.Just an example
Say you have a slider(JS dependent) that you only want to show if the browser supports js, then adding.no-js .my-slider{display:none;}would hide the slider if the browser didn’t support it, while if the browser supports JS then theno-jswould be removed by JS and the slider would be displayed. Because the only way the class was removed was with JS which would verify the browser supports JS.So if you remove it with PHP then there is no test and the slider is shown regardless if the browser supports JS or not. Not sure what the percentage of browser users that have it disabled, sure it’s a very very small amount.
You can see that in theme TwentyTwentyOne in
template-functions.phpthe theme does it the same way I mentioned above in earlier post.Just wanted to mention it, hopefully it gets updated shortly and a fix gets out for it.
November 20, 2021 at 1:59 pm #225465In reply to: HTML editor doesn’t appear on bbpress 2.6.7
Robin W
Moderatorok, in my testing
working :
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['quicktags'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );not working
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' );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 4:26 am #225402Robin W
Moderatorlooks ok without testing – does it work ?
November 17, 2021 at 2:52 pm #224433In reply to: Get subsciber link for specific topic?
Robin W
Moderatoruntested but
bbp_get_topic_subscription_link (array( 'object_id' => $topic_id) ))November 17, 2021 at 1:53 pm #224432Topic: Image on Forum Topics
in forum Troubleshootingthesupplyroom
ParticipantHello,
Is there a way I can edit the forums pages to include a banner BEFORE the topic? so for example, on my “latest topics” page I have an image before using shortcode [bbp-topic-index].
So I would like that same image to carry through at the top of my forum topics on:
http://www.mywebsite/forums/topic/topic-title
I understand I can achieve this by changing the topic category description to the banner and then using the BBP Style Pack plugin to set “show description” but this isnt an ideal solution as it only shows on the forum category list not on the actual posts…
Any ideas?
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 12, 2021 at 5:50 am #224336A.
ParticipantHi Robin,
We will do some further testing/troubleshooting. If something comes up I will let you know.
Thanks for your support!
November 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 10:27 am #224289Robin W
Moderator1. if you set up a new test user and subscribe them, do you see this?
2. suggest you get one user to unsubscribe and subscribe again to a forum, and see if that fixes for themNovember 2, 2021 at 11:01 am #224174In reply to: Anonymous Subscribers does not work
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
October 29, 2021 at 11:47 am #224121In reply to: Shortcodes in Sidebar
Robin W
Moderatorsuspect that as bbpress has custom post types, your sidebar manager is responsible
so standard testing advice is
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
October 29, 2021 at 4:00 am #224107Robin W
Moderatoruntested, but this should take out newlines and change the excerpt length to 150 – just change the 150 in the code to whatever length you want.
so firstly you need to alter the default in wordpress which is 55 so
add_filter( 'excerpt_length', 'rew_change_default_length' ) ; function rew_change_default_length () { return 150; }then alter it in the bbpress function, and change to take out line breaks
add_filter ('bbp_get_topic_excerpt' , 'rew_remove_line_breaks', 10 , 3) ; function rew_remove_line_breaks ($excerpt, $topic_id, $length){ $topic_id = bbp_get_topic_id( $topic_id ); //change length here $length = 150 ; $excerpt = get_post_field( 'post_excerpt', $topic_id ); if ( empty( $excerpt ) ) { $excerpt = bbp_get_topic_content( $topic_id ); } $excerpt = trim( strip_tags( $excerpt ) ); //take out line breaks $excerpt = preg_replace("/\r|\n/", "", $excerpt); // Multibyte support if ( function_exists( 'mb_strlen' ) ) { $excerpt_length = mb_strlen( $excerpt ); } else { $excerpt_length = strlen( $excerpt ); } if ( ! empty( $length ) && ( $excerpt_length > $length ) ) { $excerpt = mb_substr( $excerpt, 0, $length - 1 ); $excerpt .= '…'; } // Filter & return return apply_filters( 'rew_get_topic_excerpt', $excerpt, $topic_id, $length ); }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
-
AuthorSearch Results