Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Buddypress activity filtering (search)

@arcangelgirl

Participant

@brgweb I tried the code you send me, but that’s what I got.
When I use this code, then in database in type column words ‘video_library_category’ is saved.

function ajax_update_activity_contents () {
		$bpfb_code = $activity = '';
		$aid = 0;
		$video_library_category = $_POST['industries_subcategories'];
		$codec = new BpfbCodec;
		if (@$_POST['data']['bpfb_video_url']) {
			$bpfb_code = $codec->create_video_tag($_POST['data']['bpfb_video_url']);
			$type = 'video_library_category';

But when I use this code $type = $video_library_category than video upload is not working at all. I paste url, press preview, save, page reloads and nothing happens, nothing is saved. Any ideas with this how can I save subcategorie?

function ajax_update_activity_contents () {
		$bpfb_code = $activity = '';
		$aid = 0;
		$video_library_category = $_POST['industries_subcategories'];
		$codec = new BpfbCodec;
		if (@$_POST['data']['bpfb_video_url']) {
			$bpfb_code = $codec->create_video_tag($_POST['data']['bpfb_video_url']);
			$type = $video_library_category;
Skip to toolbar