BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #3029

    Thanks for your help Brajesh. I achieved what i want in other way.
    I repleced permalink function in grid tile elements with custom url: /gallery/%gallery_id%/ . I leading by default to page in index.php template. Then, i included “if” function in my index.php. It checks if url has gallery id. If so it includes template part (by standard WP function) and display gallery using shortcode. If no it means this is root galleries page and template display standard gallery grid.

    In this way i save whole Buddypress feature and display custom gallery page aswell.

    I hope this solution will help other users.

    Regards! 🙂

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #3025

    Ok, i checked this solution but it solves nothing. I still have Buddypress parts in page layout. Only thing changed is customized navs.

    I’m looking for solution that grants me possibility to display member gallery without Buddypress.

    It will be nice too if i can change gallery url’s from this:
    …/members/member_name/mediapress/gallery_name/

    to this:
    …/galerie_uzytkownikow/gallery_name/

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #3024

    Ok, thanks.

    Tell me where is root for custom templates.

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #3015

    Hi Brajesh,

    I’m using customized Twentyfifteen theme. I have Buddypress directory and Mediapress directory aswell. For example my customized index.php which displays gallery grid is located in /mytheme/mediapress/default/buddypress/directory/ .

    • This reply was modified 7 years, 2 months ago by Piotr.
  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2979

    Could you give me more informations?

    1. I want to open members gallery in outside template. How can i combine bot features?
    2. What exactly should i edit in this file?

    Regards! 🙂

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2958

    Thanks!

    I created taxonomies but have problem with include it in add-gallery-form. Could you help me with code i need to add in this form?

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2847

    Thanks for your reply!

    I have tried use bp_activity_get_comment_count function which i think is responsible for a activity counting. But, like i said, that functions doesn’t work. Please post the code. I will try to modify it in my custom theme. Maybe with some luck i will make it 🙂

    Regards!

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2679

    This is what i need to change:
    http://i63.tinypic.com/2i24gft.png

    And this is code in index.php i think it have to be edited:

    <div class="item-list-tabs" role="navigation">

      <li class="selected" id="mpp-all">
      pages->mediapress->id ); ?>"><?php printf( __( 'All Media <span>%s</span>', 'mediapress' ), mpp_get_total_media_count() ) ?>

      <?php do_action( 'mpp_directory_types' ) ?>
      <li id="mpp-order-select" class="last filter">
      <?php _e( 'Filter By:', 'mediapress' ) ?>
      <select>
      <option value=""><?php _e( 'All Galleries', 'mediapress' ) ?></option>
      <?php $active_types = mpp_get_active_types(); ?>
      <?php foreach( $active_types as $type => $type_object ):?>
      <option value="<?php echo $type;?>"><?php echo $type_object->get_label();?> </option>
      <?php endforeach;?>
      <?php do_action( 'mpp_gallery_directory_order_options' ) ?>
      </select>

    </div><!-- .item-list-tabs -->

    • This reply was modified 7 years, 3 months ago by Piotr.
    • This reply was modified 7 years, 3 months ago by Piotr.
    • This reply was modified 7 years, 3 months ago by Piotr.
  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2677

    Yes, it’s working. Thank you! 🙂

    Now i need to change filters above in index.php.

    Is there some function or shortcode to create filters for generating list navigation?

  • Participant
    Level: Initiated
    Posts: 19
    Piotr on #2671

    Hi Brajesh,

    Thank you for your reply. I used custom mpp media query but get response “No media found”. I used that query just below shortcode – list from shortcode has beed displayed bud custom query doesn’t.

    I’m trying to create copy of loop-gallery.php (named loop-media.php) and edit it to display media instead gallery. But like i wrote before – i get “false” from first function: “mpp_have_media()” so no media items are displayed. And yes i do this in my custom template. I’m leaving alone core plugin files.