Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 62 total)
  • @hdcms

    Participant

    Hello,
    blocked, can you help me ?
    Regards

    @hdcms

    Participant

    Hello
    please
    Thanks

    In reply to: Activities

    @hdcms

    Participant

    Hello @danbp

    PHP Warning: Illegal offset type in /home…./wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734

    I found where the error came from:

    add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' );
    function activites_affiche_infos( $retval ) {
     //  if ( bp_is_active( 'activity' ) ) {
       $retval['action'] = array(        
        'activity_comment',
        'activity_update',
        //'created_group',
        //'friendship_created',
        'joined_group',
        'last_activity',
        //'new_avatar',
        'new_blog_comment',
        'new_blog_post',
        //'new_member',
        'updated_profile'        
        );
    	return $retval;	
    //	}
    }

    I feel that this function does not work anymore with the latest version of buddypress. If I disable it, => all works
    I activate it by trying several solutions and nothing else works !!
    I tried your code without success either

    @ +
    An “old” member of your BP site

    @hdcms

    Participant

    Hi,
    I feel that this function does not work anymore with the latest version of buddypress. If I disable it, => all works
    I activate it by trying several solutions and nothing else works !!

    add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' );
    function activites_affiche_infos( $retval ) {
     //  if ( bp_is_active( 'activity' ) ) {
       $retval['action'] = array(        
        'activity_comment',
        'activity_update',
        //'created_group',
        //'friendship_created',
        'joined_group',
        'last_activity',
        //'new_avatar',
        'new_blog_comment',
        'new_blog_post',
        //'new_member',
        'updated_profile'        
        );
    	return $retval;	
    //	}
    }

    @hdcms

    Participant

    Hi
    Yes I use rtmedias
    … and
    ‘rtmedia_update’

    @hdcms

    Participant

    Hi

    I do not understand why BP_AVATAR_ORIGINAL_MAX_FILESIZE does not work
    but with

    Limit BuddyPress User and Group Avatar File size

    it’s ok 🙂

    @hdcms

    Participant

    Hello @dcavins o @venutius
    can you help me
    thank you

    @hdcms

    Participant

    Hello

    [17-Feb-2018 11:37:41 UTC] PHP Warning: Illegal offset type in /home…./wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734

    I found where the error came from:

    add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' );
    function activites_affiche_infos( $retval ) {
       $retval['action'] = array(        
       'activity_comment',
    	'activity_update',
    	'created_group',
    	'friendship_created', //nouv relation entre membre
    	'joined_group',
    	'last_activity',
    	'new_avatar',
    	'new_blog_comment',
       'new_blog_post',
    	//'new_member',
    	'updated_profile',
    	'rtmedia_update' // ajout important sinon on perd l'affichage des médiaq                
        ); 
        return $retval;
    }

    IF you can tell me the mistake !?

    For the other, it’s the mailster plugin

    [24-Feb-2018 00:59:35 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 01:56:20 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924

    @hdcms

    Participant

    hello
    please

    @hdcms

    Participant

    Hello
    +1
    Thanks

    @hdcms

    Participant

    Hi
    Inactive members !!
    it’s good for you!
    have a database 2 or 3 times bigger

    @hdcms

    Participant

    Hello @dcavins
    I did it on another site. but I have more than 30 active plugins. I can not find.
    What I find weird is the periodicity
    I disabled the backup and mymail. Where could it come from?

    
    [24-Feb-2018 00:59:35 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 01:56:20 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 01:56:20 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 02:56:52 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 02:56:52 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 03:57:24 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 03:57:24 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 04:57:56 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 04:57:56 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 05:58:28 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 05:58:28 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 06:59:00 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 06:59:00 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 07:57:09 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 07:57:09 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 08:56:17 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 08:56:17 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 09:56:11 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
    [24-Feb-2018 09:56:11 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924

    @hdcms

    Participant

    Hello
    +1 please

    @hdcms

    Participant

    HI
    +1 please

    @hdcms

    Participant
    
    <? php 
    
    if ( is_user_logged_in()='178' ) :
    
    echo 'cool';
    
    endif; ?>

    thanks

    @hdcms

    Participant

    How to remove all members with the role subscriber registered since more than 2 years or better all members with the subscriber role who have not logged in for more than 2 years (or such date)?

    @hdcms

    Participant

    Hello,
    In production, I can not disable one by one the extensions because nothing would work

    I have other mistakes if it can give …
    [18-Feb-2018 09:45:37 UTC] PHP Warning: Illegal offset type in /home…/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734
    [18-Feb-2018 09:56:07 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/…/wp-includes/wp-db.php on line 1924
    [18-Feb-2018 09:56:07 UTC] PHP Warning: mysqli_query(): Error reading result set’s header in /home/…/wp-includes/wp-db.php on line 1924

    @hdcms

    Participant

    Hello
    with the good action names, it works 🙂
    Thank you

    @hdcms

    Participant

    HI,

    I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
    Example of filter xprofile field “I search” = xprofile field “I am”

    I found the function that should work, but I can not do the query:

    function my_bp_loop_querystring( $query_string, $object ) {
    if ( ! empty( $query_string ) ) {
    $query_string .= ‘&’;
    }
    // $query_string .= ‘per_page=2’; //works
    $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ );
    $query_string .= ‘search_terms=true&per_page=2’; // <del datetime="2018-01-17T10:23:06+00:00">works</del>
    
    return $query_string;
    }
    add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );

    @hdcms

    Participant

    HI
    Thank you, this will help me expect to have a function that allows me to avoid adding an extra plugin

    @hdcms

    Participant

    HI,
    I got a message from the theme author, but if you could help me or give me an example?

    • “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/

      So there should be made a custom function/s that check it’s there it’s member directory and only then to run that function and also should be builded the logic of your flow.”

    @hdcms

    Participant

    Hi,
    Thank you for this information but I want another solution because I’m simple but I want members in one role can edit but not members of another role

    @hdcms

    Participant

    Hello,
    I think I understand, it’s a bit more complicated. The simplest is to explain as for a dating site.
    Filter the display of the list of members is done with a single criterion.
    I display the criterion “I research” of my profile = the criterion “I am” of all the other profiles
    Regards

    @hdcms

    Participant

    Hello,

    I put my search field “radio button”: “I’m looking for”
    I am waiting for the display of the:
    list of all the members who checked “H” if the member put “I search” = “H”
    list of all members who checked “F” if the member put “I search” = “F”
    Off right now, everything is mixed

    add_filter( 'I'm looking for', 'my_custom_ids', 10, 2 );
    function my_custom_ids( $field_name, $field_value = '' ) {
    ...

    @hdcms

    Participant

    Hi,

    I miss the value of the user_id (the function works correctly if I put $ user_id = 100) at the time of the connection of the member? Does that change something with wordpress? I test this function

    add_action('wp_login', 'prov_transfert', 99);
    function prov_transfert( $user_login, $user ) { 
       $user_id = bp_loggedin_user_id()  ; 
       	do_action( 'arm', 2, $user_id);
     } 
    }
    
Viewing 25 replies - 26 through 50 (of 62 total)
Skip to toolbar