Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Buddypress activity filtering (search)

@brgweb

Participant

@ARCangelGIRL I think you could make the $type receive the category + subcategory as an unique action. I don’t know how you’re passing the category/subcategory trhough POST, but could try something like:

function ajax_update_activity_contents () {
  $bpfb_code = $activity = '';
  $aid = 0;
  $cat = $_POST['category'];
  $subcat = $_POST['subcategory']
  $codec = new BpfbCodec;
  if (@$_POST['data']['bpfb_photos']) {
    $images = $this->move_images($_POST['data']['bpfb_photos']);
    $bpfb_code = $codec->create_images_tag($images);
    $type =  $cat . $subcat;
  }
...

Then in search you could make the dropdown select again for the category and subcategory and use the code:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=' . $category . $subcategory) ) : ?>

But for me this is not working with ajax though…

Skip to toolbar