Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Buddypress activity filtering (search)

@arcangelgirl

Participant

@brgweb In plugins/buddypress-activity-plus/js/bpfb_interface.js in line ~49-50 I’m passing categories drop down form

$('.bpfb_preview_container').empty().html(data);
$('.bpfb_action_container').html('  <div id="category"> <select name="video_category"><option value="category1">Category1</option>........ 

In line ~435

$(document).on('click', '#bpfb_submit', function () {
		var params = _bpfbActiveHandler.get();
		var group_id = $('#whats-new-post-in').length ? $('#whats-new-post-in').val() : 0;
		var category = $('#category').val();
		var subcategory = $('#subcategory').val();
		$.post(ajaxurl, {
			"action": "bpfb_update_activity_contents",
			"data": params,
			"content": $text.val(),
			"group_id": group_id,
			"category": category,
			"subcategory": subcategory

And then in plugins/buddypress-activity-plus/lib/class_bpfb_binder.php in line ~328

$query='UPDATE wp_bp_activity SET video_category="'. $_POST['category'].'", video_subcategory="'. $_POST['subcategory'].'" WHERE id=' . $aid; 
		$dummy=mysql_query($query);

I’ll try with the code you provide to see if it’s working.

Skip to toolbar