Replies
Awesome. That worked.
Thanks a million Ravi. I’ll have to buy you a pint/coffee!
Hi Ravi,
Thanks for the reply.
Unfortunately your code didn’t work for me.
mydomain.com/activity/?activity_search=CATEGORY
Still returns “Sorry, there was no activity found. Please try a different filter.”
But
mydomain.com/activity/?activity_search=KEYWORDReturns posts where the keyword is in the activity content.
Hi Brajesh, Thanks for the reply!
Yes, I’m storing the category name in meta with
bp_activity_update_meta( $activity_id, 'bpcat', $_POST['bpcat'] );
So in my database there’s a table wp_bp_activity_meta
If a user creates an activity update that they’ve given the category “Finance”, an entry is added to that table with a meta_key of ‘bpcat’ and a meta_value of ‘Finance’
How would I go about hooking to bp_after_has_activity_parse_args and setting meta_query if the conditions are matched?
Hi Brajesh,
I was able to get notifications working last night by replacing
<?php if ( ! did_action( 'template_notices' ) ) : ?> <?php do_action( 'template_notices' ); ?> <?php endif; ?>
with
<?php bp_nouveau_template_notices();?>
But there’s still the issue of the page refreshing. So if the user has written a long message but neglected to put in a subject their entire message will be lost.
I have a number of Buddypress templates overwritten in my child theme. None from this plugin though.
Could you tell me the specific file/path that would affect this?
Hi Brajesh,
I’m not getting any feedback. If the form is filled out fully, the page refreshes and the message is sent (but there’s no indication of this on the page)
If the form is not fully filled out the page refreshes the same as above but the message isn’t sent and there is no indicator that it wasn’t sent.
Hi Rajesh,
I updated, but I’m not seeing the option you mention. What is it called/where is it located?