Search Results for 'how to hide pages'
-
Search Results
-
Hey guys,
Would anyone know how to hide and disable member pages based on their role type. (e.g. yoursite.com/members/username)
Goal: if a member is set to a WordPress Administrator role, we would like to make his/her page inaccessible from the public
Purpose: while we have been able to hide specific roles from displaying in the member directory, their member/page is still visible if you know the URL.
Similar to how we can make the WordPress Author page inaccessible, we’d like to do the same for BuddyPress’s equivalent Member page.
Thanks in advance
I administer two social sites and both are asking of there is any way to remove notifications of people joining the group and who made friends with whom… It is plugging up the group notification area and users are getting annoyed.
I have searched for appropriate plugins and found a few but all are depreciated and mess up the site.
Wordpress 4.7.3
Buddypress 2.8.2
Bbpress 2.5.12I found a code hack for the functions.php but it can’t be used in the child “guideline” theme. When added to the child, I lose admin pages. code snippet below
// Remove (hide) various activities from streams.
function my_hidden_activities($a, $activities) {
//if admin we want to know
//if (is_site_admin())
// return $activities;$nothanks = array(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);
foreach ($activities->activities as $key => $activity) {
if (in_array($activity->type, $nothanks, true)) {
unset($activities->activities[$key]);
$activities->activity_count = $activities->activity_count-1;
$activities->total_activity_count = $activities->total_activity_count-1;
$activities->pag_num = $activities->pag_num -1;
}
}// Renumber the array keys to account for missing items.
$activities_new = array_values( $activities->activities );
$activities->activities = $activities_new;return $activities;
}
add_action(‘bp_has_activities’, ‘my_hidden_activities’, 10, 2 );The author suggests adding to functions.php but without using the child theme the code would be lost after an update. It also broke the site… Even after reverting the changes, the menu and page formatting was gone.
Is there any way that is up to date to filter what activity is reported on the group wall?
im using a theme called social marketplace by buddyboss, it comes bundled with buddypress.. they have these hideous login and register overlays that are cool in theory but i dont know how to style them in CSS… (im a noobie) so i went into the theme settings and shut them off.. now my login page goes to /wp-login and my register page goes to /my-account
my account page still looks like the buddypress registration form.. when it should infact look like this

i use a plugin called wc vendors.. that say they hook into the my-account page ( whatever that means)
i just want to get my login and register pages looking similar i cant seem to figure it out.. thanks
Hello, I’m currently using a plugin to show the activity-stream on my home page. I want that if users place an update it always shows up in the stream. Problem is that if i attach an image, it will not show up. Here is the plugin’s code:
<?php /** * Plugin Name: BuddyPress Activity ShortCode * Description: Embed activity stream in page/post using shortcode * Author: BuddyDev * Plugin URI: https://buddydev.com/plugins/bp-activity-shortcode/ * Author URI: https://buddydev.com/ * Version: 1.0.8 * License: GPL */ // exit if access directly if ( ! defined( 'ABSPATH' ) ) { exit; } class BD_Activity_Stream_Shortcodes_Helper { private static $instance; private function __construct() { $this->register_shortcodes(); } /* * Register ShortCode * * @example [activity-stream display_comments=threaded|none title=somethimg per_page=something] */ private function register_shortcodes() { add_shortcode( 'activity-stream', array( $this, 'generate_activity_stream' ) ); } /** * Get Instance * * @return BD_Activity_Stream_Shortcodes_Helper */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function generate_activity_stream( $atts, $content = null ) { //allow to use all those args awesome! $atts = shortcode_atts( array( 'title' => 'Updates van Leden',//title of the section 'pagination' => 1,//show or not 'load_more' => 0, 'display_comments' => 'threaded', 'include' => false, // pass an activity_id or string of IDs comma-separated 'exclude' => false, // pass an activity_id or string of IDs comma-separated 'in' => false, // comma-separated list or array of activity IDs among which to search 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => 6, //how many per page 'max' => false, // max number to return 'count_total' => true, // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions) 'scope' => false, // Filtering 'user_id' => false, // user_id to filter on 'object' => false, // object to filter on e.g. groups, profile, status, friends 'action' => activity_update, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id // Searching 'search_terms' => false, // specify terms to search on 'use_compat' => bp_use_theme_compat_with_current_theme(), 'allow_posting' => false, //experimental, some of the themes may not support it. 'container_class' => 'activity',//default container, 'hide_on_activity' => 1,//hide on user and group activity pages ), $atts ); //hide on user activity, activity directory and group activity if ( $atts['hide_on_activity'] && ( function_exists( 'bp_is_activity_component' ) && bp_is_activity_component() || function_exists( 'bp_is_group_home' ) && bp_is_group_home() ) ) { return ''; } //start buffering ob_start(); ?> <?php if ( $atts['use_compat'] ) : ?> <div id="buddypress"> <?php endif; ?> <?php if ( $atts['title'] ) : ?> <h3 class="activity-shortcode-title"><?php echo $atts['title']; ?></h3><hr color="#000000"> <?php endif; ?> <?php do_action( 'bp_before_activity_loop' ); ?> <?php if ( $atts['allow_posting'] && is_user_logged_in() ) : ?> <?php bp_locate_template( array( 'activity/post-form.php' ), true ); ?> <?php endif; ?> <?php if ( bp_has_activities( $atts ) ) : ?> <div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?> shortcode-activity-stream"> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'activity/entry' ); ?> <?php endwhile; ?> <?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; ?> <?php if ( empty( $_POST['page'] ) ) : ?> </ul> <?php endif; ?> <?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> <?php endif; ?> </div> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> <?php do_action( 'bp_after_activity_loop' ); ?> <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?> </form> <?php if ( $atts['use_compat'] ) : ?> </div> <?php endif; ?> <?php $output = ob_get_clean(); return $output; } } BD_Activity_Stream_Shortcodes_Helper::get_instance();I really need to exclude some members and none members from accessing the custom link elements eg messages etc
I can exclude the pages – but the custom links (as submenus) are killing my site
Can anyone help as this is also kiiling my business model!
I was thinking of putting the custom links onto a page that I can hide (appropriately) but then I will need code as the custom links are reliant upon buddypress user id?
I think there must be a fix?
Please advise – thank you Anthony
Topic: Page and post budypress
I’m going to do more with your admin groups .
For example
The box administrator with limited opportunities can base your group and take their users, and manage them . But it can not manage other groups.
Then the administrator and his group can hide posts or publish .
Group administrator can grant up to the author ’s website , but can not modify pages of other groups ?
Possible?
Thank you
Hi, i installed Capa plugin to hide some pages to unlogged users. I also used two page (friends and activity) of buddypress that automatically hide themselves when an user is unlogged. Unfortunately Capa plugin has problem to these two page, probably is not supported. Can you give me an advice or a supported plugin to hide pages? Thanks