Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 826 through 850 (of 11,585 total)
  • Author
    Search Results
  • #220492
    wleanadev
    Participant

    I 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.

    #220451
    webmasterfreya
    Participant

    Hi 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}

    #220447
    nicolaboscolo
    Participant

    The 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).

    sino27
    Participant

    Hi 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?

    deborah86
    Participant

    @robin-w

    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.

    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?

    Robin W
    Moderator

    hmmm..

    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.

    Robin W
    Moderator

    untested, 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!!

    #220345
    maxx203
    Participant

    Hello ,

    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
    Maxx

    #220331
    webmasterfreya
    Participant

    Thanks 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?

    Robin W
    Moderator

    ok, 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

    Health Check & Troubleshooting

    Then come back

    #220241
    Robin W
    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    #220180
    Robin W
    Moderator

    not 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

    Code Snippets

    Robin W
    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    #220065
    franklinss
    Participant

    Thanks 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?

    #220060
    franklinss
    Participant

    Hi,

    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!

    #220033
    Robin W
    Moderator

    usual 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

    Health Check & Troubleshooting

    Then come back

    Robin W
    Moderator

    you 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);
           }
        }
    }
    #220010
    Robin W
    Moderator

    It’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

    Health Check & Troubleshooting

    Then come back

    #219999
    joshpaynedesigns
    Participant

    Something 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.

    #219994
    Robin W
    Moderator

    I’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

    Health Check & Troubleshooting

    Then come back

    #219983

    In reply to: Topic stats

    Robin W
    Moderator

    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

    Health Check & Troubleshooting

    Then come back

    #219977
    joshpaynedesigns
    Participant
    #219959
    eeyyjohn
    Participant

    Hi,

    We are having the following issues after we have updated the bbPress plugin version to 2.6.6.

    1.) Topic favorites and subscription button are missing.

    We’ve actually checked the template file where those buttons were being displayed and the functions that shows those buttons were not here anymore. We’re wondering if there’s any reason why it was removed on the latest plugin version update.

    2.) When user subscribe to a forum, the forum is not listed on the “Subscribe Forums” page under members page. e.g. /members/111/forums/subscriptions/

    WordPress version: 5.6.1
    BuddyPress version: 7.2.1(latest)

    #219948
    BackuPs
    Participant

    Its in a test install local host install…

    Will set up a demo for you tomorrow. Please change the code as line 797 in the same file. As the list elements do not align vertically.

    #219945
    Robin W
    Moderator

    Have you a link to an example – they line up on my test site

Viewing 25 results - 826 through 850 (of 11,585 total)
Skip to toolbar