Tagged: buddypress
hi Ravi
i want to show activity-update-form inside group only.
that mean want allow to update actitivty to inside group only .
and hide same form in localhost/activity page
and
localhost/members/admin/activity/ etc.- This reply was modified 2 years, 6 months ago by Abhist.
Hi Abhist,
That’s not the right way to handle it. anyone with basic web dev knowledge and get around this.Which theme and template pack are you using? The correct solution will be to remove the form from the page completely.
Regards
BrajeshHi,
You my try this./** * Start buffering markup. * Keep a flag to discard it later. */ function bd_custom_start_bp_nouveau_form_buffer() { $GLOBALS['_bd_form_buffer_on'] = true; ob_start(); } //end buffering and discard. function bd_custom_end_bp_nouveau_form_buffer() { if ( isset( $GLOBALS['_bd_form_buffer_on'] ) ) { ob_end_clean(); } } add_action( 'bp_before_member_activity_post_form', 'bd_custom_start_bp_nouveau_form_buffer' ); //add_action( 'bp_after_member_activity_post_form', 'bd_custom_end_form_buffer' ); add_action( 'bp_before_directory_activity_content', 'bd_custom_start_bp_nouveau_form_buffer' ); add_action( 'bp_after_activity_post_form', 'bd_custom_end_bp_nouveau_form_buffer' );
This is for bp nouveau template pack. I do not use BuddyX and I am unable to confirm if it works with that theme or not.
If it does not, Please consult the theme author.
Regards
Brajesh
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
This topic is: resolved