New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Multisite Registration #6992

    Hi Jay,
    First of all, your site looks wonderful. Nice job there with it.

    My question is How do you decide a user is player or team or league? If you can help me understand that, we can disable it for all except these user types.

    We can put some code in bp-custom.php to restrict the access? And if you want we can futher restrict the allowed users to certain number of blogs.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Mediapress Upload Permissions #6991

    Hi Ian,
    It has taken a little more that expected. We will have an update ready by tomorrow.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Paul,
    That is expected behavior.

    The things is we do not record any blog activity, BuddyPress does. When a blog activity is recorded by BuddyPress, we check if it was for a post submitted via the Simple Front End post(using a hidden field)
    and if yes, we alter the component/item id to represent that group.

    You will need to do that yourself for the imported posts if the activities are being created.

    Please see our implementation here

    https://github.com/buddydev/blog-categories-for-groups/blob/master/core/bcg-actions.php#L239

    Hope that helps.

    PS: Please use a better title in future. The current title is a bit misleading as the post to group activity works in case of Front End post based posting. Hope you won’r mind that.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Joe,
    It is most probably due to BuddyPress upgrades. Please upgrade to the recent version of the plugin. We have tested it against WordPress 4.7 and BuddyPress 2.7.4 and it is working fine.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Single message thread per user? #6981

    Hi David,
    I am sorry but I am not getting the changes there.

    1. Do not remove the compose screen. Limit to to send to only one user.
    Here is an example code to find the threads between two users.

    
    
    function buddydev_get_threads_between_users( $user_id, $other_id ) {
    
    	if ( ! function_exists('bp_is_active') || ! bp_is_active( 'messages' ) ) {
    		return array();
    	}
    
    	$bp = buddypress();
    	global $wpdb;
    
    	$table_messages = $bp->messages->table_name_messages;
    	$table_recipients = $bp->messages->table_name_recipients;
    
    	$sql = $wpdb->prepare( "SELECT thread_id FROM {$table_messages} WHERE sender_id = %d", $user_id );
    
    	$sql .= $wpdb->prepare( " AND thread_id IN ( SELECT thread_id FROM {$table_recipients} WHERE user_id = %d )", $other_id );
    	
    
    	$sent_threads = $wpdb->get_col( $sql );
    
    	$sql = $wpdb->prepare( "SELECT thread_id FROM {$table_messages} WHERE sender_id = %d", $other_id );
    
    	$sql .= $wpdb->prepare( " AND thread_id IN ( SELECT thread_id FROM {$table_recipients} WHERE user_id = %d )", $user_id );
    
    	$threads_by_other_user = $wpdb->get_col( $sql );
    
    	$thread_ids = array_unique( array_merge( $sent_threads, $threads_by_other_user ) );
    
    	return $thread_ids;
    
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: BP Clear all notifications not working #6980
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] BuddyPress Featured Members #6978

    Thank you Martin for letting me know 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi,
    Please wait before you do that. Here are a few things you should know.

    1. There is a chance that you will loose the default BuddyPress Configuration settings(since earlier BuddyPress settings was attached to the main site). You may need to create component associations.

    Except that everything should be normal(including user etc)

    2. Please do know that any plugin that depends on BuddyPress(like user info widget) will only be available when the find BuddyPress code. By network activating, you allow these plugins to access the data on any of the sub sites.

    Hope that clarifies.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: BP Ajax Registration #6975

    Hi,
    I am sorry for the delayed update.

    I have done 2 changes on the server

    1. I have disabled the feed Them social since I did not see the settings for it being updated and it was loading script at multiple places

    2. I have also slighly changed (1 line) in cherry theme to avoid loading the magnific popup when user is not logged in(Because it is already loaded by other plugin)

    3. Please add the class “bp-ajaxr” to the link and it will work as expected. I tested by adding the class in browser.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: BP Clear all notifications not working #6972

    Hi Again,
    I have tested the plugin now. It works with BuddyPress 2.7.4

    Is there any chance that you have some javascript error? At the moment, the plugin uses js for clearing notification if there is any js error caused by theme or other plugin, this breaks.