BuddyDev

Search

[Resolved] Little Customizations about MediaPress

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #4482

    Hi, there

    Thank you for developing such a great MediaPress plugin! That’s really great.

    I just wonder that could I ask for two little customizations about MediaPress plugin?
    1. In BuddyPress profile menu, the name of tab is “Gallery”. Could I change another name for it?
    2. When I create a new Gallery, the default order is DESC, could I change the order from DESC to ASC?

    Thank you very much.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #4490

    Hello Dandy,

    Thank You for posting.

    1. For changing the Gallery tab name. You can do this from the language file i.e. *.po in MediaPress plugin directory.
    2. Please use the following code in your current theme functions.php file

    
    function buddydev_change_gallery_order( $args ) {
    	$args['order'] = 'ASC';
    	return $args;
    }
    
    add_filter( 'mpp_main_gallery_query_args', 'buddydev_change_gallery_order' );
    
    

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #4491

    Hi, Ravi
    Thanks for replying and solution.

    For changing Gallery tab name, I do find the *.po file in MediaPress plugin directory. But there are so many Gallery inside. I only need to change the one which in the BuddyPress Profile Menu. Could you show me more details about that?

    Thanks.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #4502

    Hi Dandy,

    Please follow the steps and let me know if it works or not

    1. Install Poedit on your local system.

    2. Open the MediaPress language file in POEdit.

    3. Find string “Gallery %d” replace gallery and update the file.

    Please save the generated file as mediapress-en_US.mo (I am assuming en_US is your locale)
    Now, Please upload this file to plugin/mediapress/languages directory on your server.

    For More details, Please see
    https://buddydev.com/mediapress/topics/getting-started/translating/translating-mediapress-into-your-local-language/

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #4517
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #4521
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #4541
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #4542

    Hi Dandy,
    Thank you. Also, Can you please confirm that you are on MediaPress 1.0.5? I will upload a translated mo file for you once you confirm it.

    Thank you
    Brajes

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #4543

    Hi, Brajesh
    Thanks for your reply.

    Yes, I can confirm that I’m using MediaPress 1.0.5.

    Thanks.

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #4550

    Hi Dandy,
    Here is the updated language file where I have changed the Gallery to Album in the nav
    https://dl.dropboxusercontent.com/u/6190513/languages-mpp-d-1.0.5.zip

    PS: Please update line 1242 with your string to change it again.

    Hope that helps.

The topic ‘ [Resolved] Little Customizations about MediaPress’ is closed to new replies.

This topic is: resolved