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: 25273
    Brajesh Singh on in reply to: [Resolved] Widget Format #4851

    Hi Mike,
    You can add another rule after

    
    .widget_mpp_media_list_widget .mpp-u-24-24{
    		width: 50% !important;
    }
    
    
     .widget_mpp_gallery_list_widget .mpp-u-24-24{
    		width: 50% !important;
    }
    
    

    That will do it.
    hope that helps. I had provided the code for text aligning left as I read in your posts you wanted something like that.
    I am glad you found the default to be better 🙂

    Hope this helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Rename Wall Photo #4850

    Hi Nick,
    Are you using MediaPress 1.0.6?

    If yes, It can be easily done.

    Step 1: Force MediaPress to avoid creating the context gallery on demand:-

    
    remove_filter( 'mpp_get_context_gallery', 'mpp_get_activity_wall_gallery', 10, 2 );
    
    

    Now, Provide your own context gallery helper by adding to the filter ‘mpp_get_context_gallery’ Please see how we do it in

    
    mpp_get_activity_wall_gallery()
    

    You can check the $args’component’] ==’groups’ to check it it is for groups wall gallery. Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Mobile Upload not working #4849

    Hi Nick,
    I am sorry for the inconvenience. MediaPress will work out of the box on mobile devices. It is not tested with Apresser plugin though.

    Please check the demo of MediaPress and see if you are able to upload or not?

    For adding media to gal;lery, Please see this post
    https://buddydev.com/support/forums/topic/custom-gallery-from-buddypress-fields/#post-2805

    For getting wall gallery id

    
    
    $gallery_id = mpp_get_wall_gallery_id( array(
    
    'component' => 'members',
    'component_id' => bp_loggedin_user_id(),
    'media_type'   => 'photo'
    ) );
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Andrew,
    Please put it into your themes/or child theme’s functions.php

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Simon,
    It is something I will like to address in 1.1. The first step will be planning.
    do you add bbPress as another component in MediaPress(currently we have sitewide/user/groups). Do w store all media in single gallery or do we create per forum/per topic galleries as and when needed?
    Also, we will need to integrate MediaPress uploader instead of the WordPress uploader in that case.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Andrew,
    Thank you.

    Please put this code and see if it works for you or not?

    
    
    add_filter( 'bppg_iwilldo_it_myself', '__return_true' );//do not generate css for us
    
    //Our own css
    function buddydev_custom_inject_css() {
    	if ( ! function_exists( 'bppg_get_image' ) ) {
    		return ;// no trouble when the plugin is disabled
    	}
    
    	$image_url = bppg_get_image();
    
    	if ( empty( $image_url ) ) {
    		return;
    	}
    
    	$repeat_type = bp_get_user_meta( bp_displayed_user_id(), 'profile_bg_repeat', true );
    
    	if ( ! $repeat_type ) {
    		$repeat_type = 'repeat';
    	}
    	?>
    	<style type="text/css">
    		body.is-user-profile .site{
    			background: url(<?php echo $image_url; ?>);
    			background-repeat: <?php echo $repeat_type; ?>;
    		}
    
    	</style>
    	<?php
    }
    add_action( 'wp_head', 'buddydev_custom_inject_css', 200 );
    

    You may twak the selector body.is-user-profile .site to suit in better way.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Widget Format #4839

    Hi Mike,
    Please put this css in your theme’s css file

    
    @media screen and (min-width: 767px){
    	.widget_mpp_media_list_widget .mpp-u-24-24{
    		width: 50% !important;
    	}
    	.widget_mpp_media_list_widget .mpp-widget-item{
    		text-align: left;
    	}
    }
    

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

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Pagination of Forum Topics Created #4838

    Hi Clay,
    Is the url pointing correctly to the paginated url like
    http://yoursite.com/members/xyz/forums/topics/page/2/

    Most probably the bbpress()->topic_query is not setting up properly. debugging it should help.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi,
    Are you using WordPress multisite or normal WordPress? Are you able to upload the same file type from WordPress Media uploader? Also, Are you getting the string like current allowed file types are “jpg, gif” etc. I mean in your message, I see that the file type extension is empty.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: media storage #4825

    Hi Simon,
    Thank you for posting.

    1. We are not using WordPress media folder architecture completely. We are only using the WordPress base uploads directory. After that, Here is the terminology we use to save media

    uploads[WordPress Base Uploads Directory]
    –mediapress[MediaPress base directory]
    —-members[User Uploads]
    ——user_id(actual value, the user whose media will be stored)
    ——–gallery_id[Actual media of all the gallery is stored here]

    So, if you want to see all the media of user id 3, you will go to uploads/mediapress/members/3 and see all the gallery as folder there.

    The thing is MediaPress storage architecture is pluggable and you can create your own storage manager by extending MPP_Storage_Manager class.

    https://github.com/buddydev/mediapress/blob/master/core/storage/class-mpp-storage-manager.php

    Here is actual implementation for local storage which is used in MediaPress by default.
    https://github.com/buddydev/mediapress/blob/master/core/storage/class-mpp-local-storage.php

    And here is how to plug it in

    https://github.com/buddydev/mediapress/blob/master/mpp-init.php#L153

    Once you do that, you can select it from the MediaPress settings.

    The goal of MediaPress storage manager is to allow any kind of storage strategy to be used.

    I hope that clears your first two points.

    Everything goes to post meta as it provides a uniform and easy to use flexible key/value store. It is not going to hurt much(unless you are searching) as post meta is bulk cached(in loops) and individual access do not trigger database queries.

    Hope that helps.