BuddyDev

Search

[Resolved] how do i make images much larger on the activity feed?

  • Participant
    Level: Enlightened
    Posts: 26
    Peter Fae on #13974

    Greetings. I wish to increase the size in which images are displayed on my Activity and Profile feeds, such that they present a far more visually engaging experience. I am very inspired by the way in which dare-i-say-it Facebook presents, and would like to know how I can create a similar effect

    I am curious. Right now I am hovering between rtMedia and Mediapress, and wondering if the controls for image size are more centered in buddypress or affected by those plugins. As I have increased the image size on the rtMedia without effect, it *seems* perhaps to be more BP related.

    I would love to know both how to increase the size of the images * and * how to place them *before* or *after* the post content so as to see design differences.

    Is there a way to set the BP image display so that it affects both Mediapress and rtMedia so I can do visual testing?

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #14080

    Hi Peter,
    Hope you are doing well.
    In case of MediaPress, we currently create 2 size of images

    – thumbnail
    – mid
    -large

    and then there is the original fiull image

    If you want to change the dimension for each of these sizes, you can do that from Dashboard->MediaPress->settings->General

    The changes will apply to newer uploaded images only(which are uploaded after the settings change).

    Now, in case of activity, we use the thumbnail size. The simplest way to change it will be to copy

    wp-content/plugins/mediapress/templates/mediapress/default/buddypress/activity/views/grid-photo.php to

    wp-content/themes/[Your-current-child-theme or theme]/mediapress/default/buddypress/activity/views/grid-photo.php

    and then modifying this

    
    		<img src="<?php mpp_media_src( 'thumbnail' ); ?>" class='mpp-attached-media-item' title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>
    		
    
    

    to

    
    		<img src="<?php mpp_media_src( 'mid' ); ?>" class='mpp-attached-media-item' title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>
    		
    
    

    For example, we changed the size to mid.

    Hope that helps.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved