Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi Jason,
    Welcome to BuddyDev.

    Please put this code in your bp-custom.php

    
    
    /**
     * Filter profile tables to use main site's tables.
     * 
     * @param $tables
     *
     * @return array
     */
    function buddydev_global_profile_tables( $tables ) {
    	global $wpdb;
    
    	$prefix = $wpdb->base_prefix;
    
    	// overwrite names
    	$tables = array(
    		'table_name_data'   => $prefix . 'bp_xprofile_data',
    		'table_name_groups' => $prefix . 'bp_xprofile_groups',
    		'table_name_fields' => $prefix . 'bp_xprofile_fields',
    		'table_name_meta'   => $prefix . 'bp_xprofile_meta',
    	);
    
    	return $tables;
    }
    add_filter( 'bp_xprofile_global_tables', 'buddydev_global_profile_tables');
    
    /**
     * Filter meta table to use the main site's tables
     *
     * @param array $tables
     *
     * @return array
     */
    function buddydev_gloabl_profile_meta_tables( $tables ) {
    	global $wpdb;
    
    	$prefix = $wpdb->base_prefix;
    
    	$tables = array(
    		'xprofile_group' => $prefix . 'bp_xprofile_meta',
    		'xprofile_field' => $prefix . 'bp_xprofile_meta',
    		'xprofile_data'  => $prefix . 'bp_xprofile_meta',
    	);
    
    	return $tables;
    }
    add_filter( 'bp_xprofile_meta_tables', 'buddydev_gloabl_profile_meta_tables' );
    
    

    We are overriding the table names to use it from the main sites.

    Hope that helps.

    • This reply was modified 8 years, 10 months ago by Brajesh Singh. Reason: fixing the name used in filter
  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] BP Clear Notifications #9560

    Most probably the selector is not working. Safari 10.1 and above should work.
    https://caniuse.com/#search=%3Alast-child

    I have used :last-child selector as there were no other way to select the link on Boss theme.

    Which version of safari are you using? Also, Please make sure to clear the cache.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Thank you Jay.
    I am glad you liked it.

    Great suggestion about adding to group based on member type. I will put an update by tomorrow with the Group selector option.

    Please do let me know if yu have more suggestions.

    Thank you.
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] BP Clear Notifications #9555

    Hi Lyndon,
    Please upgrade to 1.0.4
    https://buddydev.com/plugins/buddypress-clear-notifications/

    I have added support for the Boss theme. To be honest, The Boss theme messes the notification menu and currently, I have added the support by selecting the last item in the menu. I sure hope they improve it in future and provide some other concrete way to select menu items.

    Please let me know if it works for you or not?

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Thank you.
    I have been testing the plugin alone. Will do a test with these two active and get back to you tomorrow.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] BP Clear Notifications #9550

    Hi Lyndon,
    Thank you for posting.
    It seems to be a theme conflict.

    The plugin should clear without reloading the page.

    Since one of my clients use this theme, I will test the plugin on the staging site I am managing and assist you further tomorrow.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi,
    Are you on BuddyPress 2.8.2? Which version of php are you using? I am sorry I could not reproduce it.

    All I see on line 1017 of bp-core-filters.php is a function to set mail header and trying to get user ID.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    It’s good to have the WP_DEBUG enabled on development sites, It helps catch a lot of future issues:)

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi,
    I have updated the plugin page with the new documentation and screenshots.

    Please upgrade to 1.4.1
    https://buddydev.com/plugins/recent-visitors-for-buddypress-profile

    and you can use the widget/shortcode to list most visited users.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    For this topic:-
    We do not record all the visit. Currently, It is only one record between two users for the visited user. With each new visit we just increment the visit count for the visitor to visited user and the last visited time of the record.

    Updating last visited time allows us to have the correct details of unique views etc over a preciod of time.
    Also, we are not using the visit count directly anywhere, so I don’t see a side effect of that. keeping a count can help some site making decision on suggesting interests.