BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #24328
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #24096

    Yep, that did it. Thank you Brajesh! 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #23704

    Ok thanks Ravi

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15261

    Thanks Ravi 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15229

    I figured out what I was trying to achieve but can you suggest a function to put in bp-custom.php`

    I edited mediapress/mpp-core-component.php and changed the default Edit nav to point to settings.

    I changed the below code

    if ( mpp_user_can_edit_gallery( mpp_get_current_gallery_id() ) ) {
    		$url = mpp_get_gallery_edit_media_url( mpp_get_current_gallery() ); // bulk edit media url.
    		$links .= sprintf( '<li><a href="%1$s" title ="%2$s"> %3$s</a></li>', $url, _x( 'Edit Gallery', 'Profile context menu rel attribute', 'mediapress' ), _x( 'Edit', 'Profile contextual edit gallery menu label', 'mediapress' ) );

    to

    if ( mpp_user_can_edit_gallery( mpp_get_current_gallery_id() ) ) {
    		$url = mpp_get_gallery_settings_url( mpp_get_current_gallery() ); // bulk edit media url.
    		$links .= sprintf( '<li><a href="%1$s" title ="%2$s"> %3$s</a></li>', $url, _x( 'Edit Settings', 'Profile context menu rel attribute', 'mediapress' ), _x( 'Edit', 'Profile contextual edit gallery menu label', 'mediapress' ) );

    Thanks again 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15227

    Sorry Ravi, I will try again. I would like to have the Edit Details subnav on the same level as the Edit subnav.

    ie current default is

    1. Gallery
    2. My Gallery, Edit, etc
    3. View, Edit Media, Reorder, Edit Details

    I would like to move Edit Details to the number 2 position if it is possible.

    Thanks again for your time 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15212

    Thanks Brajesh 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15167

    That worked. Thanks Brajesh. 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15137

    Thank you RAvi, that worked! 🙂

  • Participant
    Level: Enlightened
    Posts: 21
    Axel on #15134

    I want to be able to visit user pages as super admin and set featured/remove featured media and not allow users access to this button.