Search Results for 'test'
-
AuthorSearch Results
-
May 10, 2021 at 5:20 pm #220519
In reply to: Needs approval after editing comment
Robin W
Moderatordashboard>settings>discussion is a default wordpress option, so if you don’t have this, then something is wrong outside of bbpress !!
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
May 10, 2021 at 4:41 pm #220510In reply to: wp_roles interference between plugins
Robin W
Moderatorok, so as a test can you deactivate elementor to see if that resolves – trying to work out what combination causes the issue
May 10, 2021 at 2:24 pm #220507In reply to: wp_roles interference between plugins
nicolaboscolo
ParticipantTo reproduce the problem I installed a clean wordpress 5.7.1. Then Elementor, bbPress and the test plugin. Then I activated them in the same order. At the moment that I activate the test plugin bbPress menu items literally disappear.
PS: in this configuration I am able access the forum as a user. But when i discovered it on my working site the first time, forum pages were blocked as i described before.May 10, 2021 at 1:41 pm #220504In reply to: wp_roles interference between plugins
Robin W
Moderatorok, I installed the test plugin, and have not been able to find an issue.
For instance you say ‘bbPress admin menu items disappear.’ – I can still see all admin items, can you specify an exact example of one that goes eg ‘in this I no longer see that’
May 9, 2021 at 6:15 pm #220492In reply to: Needs approval after editing comment
wleanadev
ParticipantI am having exactly the same issue, I set the minute number to be 9999, which should be more than enough. When tested, the edit still requires approval! First time edit, and second time edit had the same issue.
May 6, 2021 at 8:27 am #220451In reply to: Reverse order replies and pagination
webmasterfreya
ParticipantHi Back to Front,
I also have buddypress installed. As admin you have for each member a page wich among other things shows topics started and replies made by the member. The replies did not show up (and there were definitly replies).
As buddypress makes use of bbpress for fora i expected your code to work but it did not (is the culprit then buddypress or bbpress or your code? I haven’t the faintest idea).
Maybe : if( $bbPress_post_type ==’topic’ ){
/** TOPIC **/
$query[‘order’]=’DESC’;
return $query;should have an } else {return $query}
May 6, 2021 at 7:39 am #220447Topic: wp_roles interference between plugins
in forum Troubleshootingnicolaboscolo
ParticipantThe problem is that sometimes with a combination of some plugins (firstly started with Acy Mailing)
- bbPress admin menu items disappear.
- Keymasters are able to access the pages but can’t reply.
- Participants can’t access the forum pages at all.
Acy Mailing did some investigation and it turned out that this issue comes out when bbPress is calling the function wp_roles. WordPress version 5.7.1
Here is their comment:After some investigations and tests, it appears the issue is coming from the BBPress plugin.
In AcyMailing we are calling a WordPress core function (wp_roles) which gives the user roles.
AcyMailing is called before BBPress and this is what creates the issue. It seems that whenever an other plugin is calling this function before BBPress, its role system is not working properly and doesn’t give access to its content.
Whichever plugin who calls this WordPress function before them will create the problem.
As an example we created a test plugin which only call this function and does nothing else and it also prevent BBPress from working properly (I have attached this test plugin).May 6, 2021 at 2:00 am #220437sino27
ParticipantHi there. Sorry for reviving this thread. But I had to as this is some serious privacy issue.
A code from “bjornwebdesign” is definitely working but not completely. I mean on this code posted in his “Ok, last time, I promise :p…”
/* * Do stuff when the user's xprofile is updated */ function xprofile_updated ( $user_id, $posted_field_ids, $errors, $old_values, $new_values) { /* * Change the user_nicename which is used as profile url, we do NOT want the username in url! Bad bad BP... * Please note: the user profile url can now be changed by the user, direct linking from other places on the web may result in 404. * Altough this should run AFTER updating profile fields (saving to DB), the nicename is only updated after a second save. So we need to check from $new_values */ $new_display_name = ''; foreach ( $new_values as $key => $value ) { if ( is_array($value) && $key == 1 ) { // field display_name = 1, make sure this is correct foreach ( $value as $k => $v ) { if ( $k == 'value' ) { $new_display_name = $v; } } } } //error_log('******** xprofile_updated: '.$user_id.' | NEW DISPLAY_NAME: '.$new_display_name.' *********'); $search = array( ' ', '.' ); $replace = array( '_', '' ); $user = get_user_by( 'ID', $user_id ); if ( $user ) { if ( $user->data->user_status == 0 && $new_display_name ) { $new_user_nicename = strtolower(str_replace( $search, $replace, $new_display_name) ); if ( strlen ( $new_user_nicename ) > 50 ) { $new_user_nicename = substr ( $new_user_nicename, 0, 50 ); } if ( $user->data->user_nicename != $new_user_nicename ) { // && $user->ID == 80 <-Add this if you only want to run it for 1 user, so you can test it. $args = array( 'ID' => $user->ID, 'user_nicename' => $new_user_nicename ); wp_update_user( $args ); //error_log('******** updated user_nicename: '.$user->ID.' | NEW USER_NICENAME: '.$new_user_nicename.' *********'); wp_redirect( get_site_url().'/leden/'.$new_user_nicename.'/profile/edit/group/1/' ); // we cant use bp_core_get_user_domain() here, because it still uses the old user_nicename exit; } } } } add_action( 'xprofile_updated_profile', 'xprofile_updated', 100, 5 );– but there is one critical flaw. After code is applied, user can not update their profile anymore. Like you can go to (example) update name or nickname. You press save and nothing changes. Profile is not updated.
If I apply “bjornwebdesign” previous code (meaning code he posted just before his latest code) –
/* * Change the user_nicename which is used as profile url, we do NOT want the username in url! Bad bad BP... * This runs allways (with init hook), we should only do this once and then on user register & profile update.. * Please note: the user profile url can now be changed by the user, direct linking from other places on the web may result in 404. * And offcourse allways use something like: 'bp_core_get_user_domain( $user_id )' when you want to get the user's profile url. */ $search = array( ' ', '.' ); $replace = array( '_', '' ); $all_users = get_users(); foreach ( $all_users as $user ) { $display_name = $user->data->display_name; if ( $user->data->user_status == 0 && $display_name ) { $new_user_nicename = strtolower(str_replace( $search, $replace, $display_name) ); if ( strlen ( $new_user_nicename ) > 50 ) { $new_user_nicename = substr ( $new_user_nicename, 0, 50 ); } if ( $user->data->user_nicename != $new_user_nicename ) { // && $user->ID == 80 <-Add this if you only want to run it for 1 user, so you can test it. $args = array( 'ID' => $user->ID, 'user_nicename' => $new_user_nicename ); wp_update_user( $args ); } } }then updating of profile is working. User can update profile but after pressing “Save” there is 404 error. Even 404 is acceptable as at least user can update their profile. However performance is severely degraded on a website with many members.
So basically only his latest code is working in a way that their profile URL is hidden, performance is not degraded but user profiles can not be saved or updated. Can anyone help and update his code so that user are able to update their profiles?
May 5, 2021 at 6:49 pm #220432deborah86
Participantbuddyboss is a private development that includes bbpress and buddypress in it, buddyboss has its own theme, and is designed to work with that. it is really designed as a paid solution with its own theme. https://www.buddyboss.com/
Buddyboss is not a replacement for buddypress and/or bbpress – these free plugins are just used by it.
I understand.
As the twenty twenty support says in their first post ‘I used the steps above to try and reproduce the issue you described, but I was unable to. When testing, I see the list of forums available as expected.’
bbpress works fine with twentytwenty, as indeed does bbpress and buddypress work with twentytwenty.
Neither bbpress or BuddyBoss are working correctly on my website with the Twenty Twenty theme. That is why I am contacting both bbPress and BuddyBoss for support. I have tried both plugins.
I first had the issue with bbPress. I installed BuddyBoss to see if I would have the same issue. I still had the same issue.
I contacted BuddyBoss. They told me to contact the twentytwenty theme developers because it is an issue with the theme. I contacted them. They told me it is an issue with BuddyBoss and bbPress since I experience the same issue with both plugins. Now, I am contacting bbPress and BuddyBoss for additional help.
I have had the website since November and I am unable to replicate the issue on a brand new WordPress install. I don’t know if the age of the website makes a difference.
I suspect this issue is with using Buddyboss with the twentytwenty theme, and buddyboss may well consider that to be an issue with twentytwenty and not their problem, just as Ford might consider you using a Chevolet gearbox on a Ford and not working to be a Chevrolet issue. Since buddyboss is a paid solution, I cannot test to find out what is wrong.
I suspect the issue is with the default template that something is trying to use, and might be quite simple to fix, but as I don’t have access to Buddyboss without buying it, I can’t say.
I understand this is also an issue with Buddyboss and the twentytwenty theme. I have also contacted their support. I am contacting you for help with the bbPress plugin.
The BuddyBoss platform is opensource. You can download it on their website without paying.
Please explain to me why I am having the same issue with bbPress. Why is bbPress not working correctly with the twentytwenty theme but it works fine with the other themes?
May 5, 2021 at 1:56 pm #220429Robin W
Moderatorhmmm..
ok, let me try and unpick this to help you.
buddyboss is a private development that includes bbpress and buddypress in it, buddyboss has its own theme, and is designed to work with that. it is really designed as a paid solution with its own theme. https://www.buddyboss.com/
Buddyboss is not a replacement for buddypress and/or bbpress – these free plugins are just used by it.
As the twenty twenty support says in their first post ‘I used the steps above to try and reproduce the issue you described, but I was unable to. When testing, I see the list of forums available as expected.’
bbpress works fine with twentytwenty, as indeed does bbpress and buddypress work with twentytwenty.
I suspect this issue is with using Buddyboss with the twentytwenty theme, and buddyboss may well consider that to be an issue with twentytwenty and not their problem, just as Ford might consider you using a Chevolet gearbox on a Ford and not working to be a Chevrolet issue. Since buddyboss is a paid solution, I cannot test to find out what is wrong.
I suspect the issue is with the default template that something is trying to use, and might be quite simple to fix, but as I don’t have access to Buddyboss without buying it, I can’t say.
May 2, 2021 at 1:48 pm #220381Robin W
Moderatoruntested, but try
add_filter( 'bbp_get_view_query_args', 'rew_limit') ; function rew_limit ($args) { $args['posts_per_page'] = -1 ; $args['posts_per_page'= 10 ; return $args ; }not sure which 10 it will show!!
April 28, 2021 at 9:40 am #220345Topic: Hide Spam / Pending Authors
in forum Requests & Feedbackmaxx203
ParticipantHello ,
i dont know if this is a feature inside bbpress i can set anywhere. Thats why iam creating this topic.
My problem is that inside the bbpress forum it does show all authors. Even the authors which does not have a valid posting inside the Last Post column. Because of that the forum does also show the name of the authors of posts which are moved to pending or spam queue. Is there any setting to hide such authors from the lastest post column?
Regards
MaxxApril 27, 2021 at 9:36 am #220331In reply to: Reverse order replies and pagination
webmasterfreya
ParticipantThanks for your work ‘Back to Front’.
Did you also test for the right links to the right page (so when having multiple pages of replies, after adding a new reply one should end up at the first page not the last?
April 25, 2021 at 4:10 am #220293Robin W
Moderatorok, yes that should give you the forum button on the dashboard.
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
April 23, 2021 at 3:37 am #220241In reply to: Forum Subscription and Notifications not working
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
April 20, 2021 at 1:54 pm #220180In reply to: Remove the Edit Profile option from the user menu
Robin W
Moderatornot sure, but try this (untested)
add_filter ('bbp_get_user_edit_profile_url' , 'rew_remove_edit' ) ; function rew_remove_edit () { return ; }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
April 18, 2021 at 3:25 pm #220118Robin 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
April 17, 2021 at 2:41 am #220065In reply to: best plugin or option for private messaging
franklinss
ParticipantThanks for your answers!
I do not have a lot of experience. I see the following notice for BBpress messages: This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Do you know if its safe to use?
April 16, 2021 at 3:37 pm #220060Topic: best plugin or option for private messaging
in forum Installationfranklinss
ParticipantHi,
Is there a possibility to let forum members send eachother private messages? If so, is there a plugin (compitaible with latestversion of wordpress and total theme) that works good with bbpress or do you know any other possibilities?
Thanks in advance!
April 15, 2021 at 4:29 am #220033In reply to: bbPress is suddenly displaying incorrectly
Robin W
Moderatorusual fault finding applies
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
April 14, 2021 at 10:39 am #220016Robin W
Moderatoryou add action is right, and I’d have this as the function (not tested!)
function forum_user_is_spectator(){ if ( is_bbpress() && is_user_logged_in() ) { $User_ID = get_current_user_id() ; $Spectator = (!empty(current_user_can( 'spectate' )) ? 1 : 0) ; if ($Spectator){ wp_enqueue_script( 'spectator-js', get_template_directory_uri() . '/js/spectator.js', array(), false, true); } } }April 14, 2021 at 4:23 am #220010In reply to: Issues after bbPress 2.6.6 plugin update
Robin W
ModeratorIt’s kinda weird that when I edit this php file you mention “content-single-topic.php”, it didn’t show those changes on the forum pages.
ok, question, does your theme have bbpress files associated with it? or is a plugin affecting 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
April 13, 2021 at 2:49 pm #219999In reply to: Last Updates blank on 2.6.6
joshpaynedesigns
ParticipantSomething you just said made me think of the issue and fix. I am using the BBP Style Pack and didn’t turn that off when I was testing plugins. I thought I needed it but turns out I didn’t. Once I looked at more of the settings in that plugin I realized that the freshness dates were set to custom and blank.
April 13, 2021 at 10:14 am #219994In reply to: Last Updates blank on 2.6.6
Robin W
ModeratorI’m running 2.6.6 on 5.7 on my test sites, all I can suggest 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
April 12, 2021 at 6:11 pm #219983In reply to: Topic stats
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
-
AuthorSearch Results