Buddypress Filter Multiple Activities [closed]
<?php if ( bp_has_activities(‘action=new_forum_post,new_blog_comment,new_blog_post,friendship_created,joined_group,created_group,new_forum_topic’) ) : ?> Found the solution myself 🙂
<?php if ( bp_has_activities(‘action=new_forum_post,new_blog_comment,new_blog_post,friendship_created,joined_group,created_group,new_forum_topic’) ) : ?> Found the solution myself 🙂
Your site has some issues: There is no default theme stylesheet present in the page markup. I can see several plugins loading their own styles, but none for the main style.css. The page is broken. A view-source shows it cutting off at the bottom. There are no closing </body> or </html> tags. Your server is … Read more
Got it add_filter(‘bp_blogs_activity_new_post_action’, ‘record_cpt_activity_action’, 1, 3); function record_cpt_activity_action( $activity_action, $post, $post_permalink ) { global $bp; if( $post->post_type == ‘post’ ) { if ( is_multisite() ) $activity_action = sprintf( __( ‘%1$s wrote a new article, %2$s, on the site %3$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘<a href=”‘ . $post_permalink . ‘”>’ . $post->post_title . ‘</a>’, … Read more
Off the top of my head… I can think of a plugin that does this: http://buddypress.org/community/groups/bp-profile-search/ Perhaps this will provide you with a good starting point for what you’re trying to get done.
All properly written plugins work on multisite too. You should still test each plugin separately and in combination with others on a development installation. Keep in mind, the wordpress.org plugin repository is just hosting many plugins; there is no quality control – read the code before you install anything. Use the plugin Log Deprecated Notices … Read more
Untested, but I’d start with something like this: add_action( ‘wp’, ‘your_function’, 3 ); function your_function(){ if ( is_page_template( ‘some-template.php’ ) ) { if( some condition ) locate_template( array( ‘some-other-template.php’ ), true ); else return; } else return; }
Newer versions of WordPress have gotten rid of the “Super Admin” menu on the left-hand dashboard menu in favor of a “Network Admin” section. It sounds like you installed multisite just fine, so under the “My Sites” option in the top toolbar, you’ll now see a link to the Network Admin section. http://codex.wordpress.org/Create_A_Network#Step_5:_Network_Admin_Settings
You need to open up your custom child theme and add a loop to the index.php. Or if you want it in the sidebar then you add it to sidebar.php with a conditional check if you only want it to appear on the homepage. If you only want to show one post you add something … Read more
On BuddyPress Multilingual you can read: This plugin requires WPML. It uses WPML’s language API and hooks to BuddyPress to make it multilingual. You need to have WPML installed for BuddyPress Multilingual to function correctly. Also, Buddypress Multilingual is for Buddypress sites. If you want to make your WordPress site multilingual, my advice is to … Read more
try this: function my_setup_nav() { global $bp; // this cause errors if your not logged-in. // $bp->bp_nav[‘conversations’] = false; // use this instead: unset($bp->bp_nav[‘conversations’]); } add_action( ‘bp_setup_nav’, ‘my_setup_nav’, 1000 );