parse args render everything dropdown useless?
-
For the first time, I think ever, I tried clicking the dropdown to select different activity to show on the site-wide activity page. Tried some of the selections, but they all just made the original everything on the page show (after an ajaxy looking refresh)
So I wonder if using the parse_Args code to modify the default activity stream things that display is overriding this drop down menu function?
If so, we need a better way to hide things from the activity stream in the future.
And I guess we need a way to remove the dropdown menu from showing since it does not work.
If this parse args code is not affecting the dropdown selection then I guess I have to start deactivating other plugins to see if they are screwing with it.
my current bp-custom file:
<?php // hacks and mods will go here define( 'BP_DEFAULT_COMPONENT', 'profile' ); function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' ); // block activity stream stuff - things to include function my_bp_activity_types( $retval ) { // existing BP/bbP activities // remove the one you wont to see from that list $retval['action'] = array( 'activity_comment', 'activity_update', 'bbp_topic_create', 'last_activity', 'new_blog_post', 'new_member', 'updated_profile', 'rtmedia_update', 'bp_doc_created', 'new_groupblog_post', 'bp_album_picture', 'added_group_document', 'new_blog_comment', 'new_member', 'created_group' ); return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activity_types' ); // block activyt stream stuff removed friendship_created, new_avatar,bp_doc_edited,activity_liked, // deleted_group_document, new_blog, new_forum_post, new_forum_topic, new_status,new_wire_post, joined_group, new_avatar, // previously blocked via plugin - deleted_group_document, new_blog, new_member, joined_group, friendship_created, activity_liked ?>
- The topic ‘parse args render everything dropdown useless?’ is closed to new replies.