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: [Resolved] about search box & footer color #14092

    Hi Rika,
    Hope you are doing well.

    In order to change the colors, Please follow the following steps.

    1. Visit Dashboard->Customize
    2. On the customize Page, Please click on Additional Css

    3.In the additional css box, we will use css. Here is an example that you can copy and paste.

    
    #featured-box {
    	background: red;
    }
    
    #b-footer {
    	
    	background: green;
    }
    

    In the above example, we have changed the background of the page header to red and footer to green.

    we can either use the color name or the color code.

    You may pick color from here

    https://htmlcolorcodes.com/color-picker/

    and put the code like this

    
    
    #featured-box {
    	background: #FF0000;
    }
    
    #b-footer {
    	
    	background: green;
    }
    
    

    We have used hexadecimal color for the header(It is still red for example).

    In footer, when you change the background, you may want to change the text color and links color.

    To do that we may change our

    
    #b-footer {
    	
    	background: green;
    }
    
    

    to

    
    
    #b-footer {
    	
    	background: green;
           color: #333;
    }
    
    /* link*/
    #b-footer a{
      color: #333;
    }
    
    

    You can still use the hexadecimal colors for the color property too.

    Hope this helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: how to add shortcode to top of activity feed #14091

    Hi Peter,
    I am not sure how you want it now and it will help if you can write exactly the way you want the shortcode.

    The earlier was to make it like ‘user-name-story’ e.g. peterfae-story.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Peter,
    What you need is save the date with the update. It is feasible but at the moment, there is no available UI that allows it.

    The way I see it is you will add a date/time picker on the activity update screen and then save the date with the activity instead of the current date/time.

    You will need to implement it as a custom solution as there is no such UI available.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: images not uploading. on activity stream #14086

    Last question answered here
    https://buddydev.com/support/forums/topic/how-do-i-make-images-much-larger-on-the-activity-feed/

    I am not sure why the upload misbehaved but it is strange.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: how to add shortcode to top of activity feed #14085

    Hi Peter,
    This should do the job

    
    echo do_shortcode( '[rev_slider alias="' . bp_get_displayed_user_username() . '-story"]' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14084

    Hi Peter,
    Here is the updated code to show the updates by default on user profiles.

    
    /**
     * List activities in ascending order.
     *
     * @param array $args activity args.
     *
     * @return array
     */
    function buddydev_list_activities_ascending( $args ) {
    	if ( bp_is_user_activity() ) {
    		$args['sort'] = 'ASC';
    
    		if ( empty( $args['action'] ) ) {
    			$args['action'] = 'activity_update';
    		}
    	}
    
    	return $args;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );
    
    

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Peter,
    I am marking it as resolved as it dealt with the original issue.

    For your last question, let us continue discussion at
    https://buddydev.com/support/forums/topic/how-to-add-shortcode-to-top-of-activity-feed/

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Buddypress Message box Theme #14081

    Hi Madhavi,
    I am sorry but I am unable to assist as I could not recognise the theme from the screenshot.

    Since t seems to be a custom theme, I will suggest you to use chrome developer tool to identify the element and then add proper css.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    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