Search Results for 'test'
-
AuthorSearch Results
-
November 30, 2021 at 6:09 am #225883
In 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-js
in 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-js
would 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.php
the 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
October 25, 2021 at 11:29 am #223988In reply to: Double click on send button make duplicate post
Robin W
ModeratorI am not a bbpress author, just someone who helps out here.
Every website is unique, and this doesn’t happen on my test site – I have not seen this reported elsewhere as an issue, and the code has a duplicate function check in it.
line 307 of includes/replies/functions
/** Reply Duplicate *******************************************************/ if ( ! bbp_check_for_duplicate( array( 'post_type' => bbp_get_reply_post_type(), 'post_author' => $reply_author, 'post_content' => $reply_content, 'post_parent' => $topic_id, 'anonymous_data' => $anonymous_data ) ) ) { bbp_add_error( 'bbp_reply_duplicate', __( '<strong>Error</strong>: Duplicate reply detected; it looks as though you’ve already said that.', 'bbpress' ) ); }
I am not able to say why you are getting this.
October 25, 2021 at 9:49 am #223985In reply to: Double click on send button make duplicate post
maksanse
ParticipantHello Robin and thank you for your answer.
I made a test with only bbpress and twenty twenty one theme activated and the issue still occurs :1) Create a post and double click on the “send” button
2) Your action creates 2 posts instead of one (the situation doesn’t seem handled by bbpress ?).Please have a look at the following video :
http://www.loom.com/share/b5e083721cea47409a8c7c0ad769329fI guess anyone can encounter this situation because no theme or function was active in my test. Shouldn’t that be handled by the core ?
Best regards
October 25, 2021 at 4:34 am #223972In reply to: Embedded images
Chuckie
ParticipantYes – it clearly states that firefox will no longer show content that is embedded from another site. And that you have to view it on that actual site.
I know that a few weeks ago I changed the security headers on my site to prevent hijacking but that pertains to my site.
At the moment i have uploaded the image to my site and used the TinyMCE approach.
Look:
The first image pasted in visually (https://i.stack.imgur.com/8MjBc.png) but the second won’t.
How odd – NOW they show!
Ho hum.
October 20, 2021 at 4:56 pm #223902In reply to: Change Default Display Name
Robin W
Moderatoruntested, but this should work
add_filter( 'bbp_get_reply_author_display_name' , 'rew_reply_change_to_first_name', 10 , 2 ) ; function rew_reply_change_to_first_name ($author_name, $reply_id) { // Get the author ID $author_id = bbp_get_reply_author_id( $reply_id ); $user = get_userdata($author_id); $first_name = $user->user_firstname; return $first_name ; } add_filter( 'bbp_get_topic_author_display_name' , 'rew_topic_change_to_first_name', 10 , 2 ) ; function rew_topic_change_to_first_name ($author_name, $topic_id) { // Get the author ID $author_id = bbp_get_topic_author_id( $topic_id ); $user = get_userdata($author_id); $first_name = $user->user_firstname; return $first_name ; }
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
October 20, 2021 at 1:02 pm #223897In reply to: search input box
Robin W
ModeratorIf you have allowed the serach, then it should appear in your main forum list.
If it is not, 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 20, 2021 at 2:33 am #223882In reply to: Forum not showing on WordPress Dashboard coiumn
Robin W
Moderatoryou need to be a keymaster to see forums in the dashboard – check your settings
dashboard>users
If you are not, then you need to get a keymaster to set you up.
If you are a keymaster 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 19, 2021 at 9:45 am #223873In reply to: Plugins that help me fix bbpress’ profile page?
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 18, 2021 at 4:12 pm #223856Robin W
Moderator\includes\replies\template.php
line 127
function bbp_has_replies
but be aware -lots of plugins filter this.
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 18, 2021 at 2:21 pm #223852In reply to: Portion not translated
mariaat
ParticipantI use the BuddyX-PRO theme on the live-site. I tested BBPress with the free BuddyX theme and all parts were translated.
I’ve contacted WBcom again, after they told me last week it was an issue of BBpress.
Thanks for your help. -
AuthorSearch Results