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: 25468
    Brajesh Singh on in reply to: [Resolved] Mediapress breaking site #7004

    Hi Michele,
    I am sorry for the inconvenience. We haven’t tested MediaPress with the sweetdate theme, so I am not in a position to say much before asking a few questions and some recommendations.

    1. Please do not use MediaPress and RT Media together. Only one of them should be sufficient to do the job

    2. Now, if you activate MediaPress, You may create a pge and associate. It ism not an error , just a notice to allow you setup a Gallery directory page(if you want to)

    3. What error do you see? Can you please enable WP_DEBUG and post me a screenshot of the error? I can quickly assist you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Customize the Post look and Blog Thread. #6994

    Hi Brendan
    Is is related to BuddyBlog?
    If yes, you can copy the template files from plugin/buddyblogs/template/buddyblog to yourtheme/buddyblog and modify the files as you wish.

    The buddyblog posts are just the normal posts, so If you have done the categorization for normal posts, you can apply the same there.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    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: 25468
    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: 25468

    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: 25468

    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: 25468
    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: 25468
    Brajesh Singh on in reply to: BP Clear all notifications not working #6980
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] BuddyPress Featured Members #6978

    Thank you Martin for letting me know 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    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.