Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,576 through 1,600 (of 5,233 total)
  • Author
    Search Results
  • #234245
    gatelli
    Participant

    In the “Discussion Forums” WordPress-Page (Global Forum) only Admins can see the threads for Private Group Forums they are members in. Normal Users only see the threads from Public Groups, but not from Private Groups they are member in. They have to go to the group forum page to see threads.
    Is there a way to see these private topics in Global Forum for group members ? It would be far more easy for users…

    Thank you.

    mrjarbenne
    Participant

    A potential implementation could have each class set up as a Private or Hidden Group. Each teacher attached to the class could be added as either an admin or a moderator of the group, giving them access to these private spaces.

    We have used that in our school board with great success.

    Web Maker
    Participant

    A question regarding BuddyPress as used by Educational institutions:

    Can multiple teachers set up multiple students (thus classes) with each set of teachers and classes being private or not accessible by others except the teacher and the admin? Is that functionality in BuddyPress?

    #234169
    deshmukh
    Participant

    @danbp this is intentionally another reply. Again, this is likely to be lengthy. So, please bear with me.

    Consider member1 is a member of private group PGA, and public group GB.

    site.com/activity includes updates in GB, and updates by other members.
    members/member1/activity/groups/ includes updates in PGA and GB.

    I wanted to merge the two — without duplicating content from GB. Any way to achieve that? Its perfectly OK if we can get that feed at site.com/activity or some other URL.

    On a side note, the advantages are:
    An one place, member1 gets to see ALL updates (whether private or public) AND we avoid duplication (GB is displayed both at site.com/activity and members/member1/activity/groups).

    #234139
    goakes
    Participant

    Hello

    When I select private message to write a message, the whole window moves across to the left?

    Not sure why this is doing this?

    Gary

    #234135
    Magic-Komplex
    Participant

    Theme: Weaver II

    Plugin-list:

    Agreeable
    amr shortcode any widget
    bbp Private Forums Visibility
    bbPress
    bbPress – Unerwünschte Inhalte melden
    bbPress Advanced Capabilities
    bbPress Direct Quotes
    BbPress Notification
    bbP Signature
    Beautiful Widget CK
    BuddyPress
    BuddyPress – Private Aktivitäten
    Facebook Like Box
    GD bbPress Attachments
    GD bbPress Widgets
    Google XML Sitemaps
    Invite Anyone
    Login With Ajax
    Page Links To
    Page Restrict
    PayPal Donations
    Privates BuddyPress
    Q and A FAQ and Knowledge Base for WordPress
    rtMedia for WordPress, BuddyPress and bbPress
    Super Socializer
    Use Google Libraries
    Weaver II Theme Extras
    WordPress Backup to Dropbox
    wp-Monalisa

    I know that’s quite a lot of plugins, but how can I reduce them, if I need the functionality? Is it possible that the problem comes from just too many plugins?

    #234127
    milenushka
    Participant

    Yes.

    If the admin is creating the groups and forums there is no problem (well if he knows this is an issue),
    but if the members are creating groups and later want to change groups settings to “private”, they have no control over the forums’ privacy. And that leaves them confused or if sensitive info was shared in the forums, upset too.

    So, yeah, something needs to be done.

    thank you for looking into this @henrywright.

    #234125
    milenushka
    Participant
    #234123
    Henry Wright
    Moderator

    Hi again @milenushka

    So you’re saying if a public forum is added to a private group then you’d like that forum to automatically be made private?

    #234122
    milenushka
    Participant

    @henrywright

    Ok, I can confirm the issue now.

    If a group is created as private and a forum is created with it- it will be a private forum and its activity will remain invisible to non group members.

    If a private group is created and an existed forum is added to it- this forum need to be changed to private- otherwise the forum will remain public, even though the group attached to it is private- and the activity of the forum will be public.

    Same goes for a public group+ forum , that is created together and later group setting are set to private. Forum remains public- forum’s activity -too.

    Is there something to be done with the buddypress-bbpress integration to make this work?
    Creating a function that will make a forum private too- if the group it was attached to becomes private? @johnjamesjacoby
    https://buddypress.org/support/topic/bugs-between-bbpress-and-buddypress/

    #234119
    milenushka
    Participant

    Hi @henrywright,

    I am using buddyboss (child theme), tested it with default wp theme and buddyboss parent.

    I also found this thread https://buddypress.org/support/topic/forum-in-private-groups/ started a few weeks ago, and I think @melle328 is right, this happens if the group is first set as public and later changed to private or as in my case- group forum is set to public first and then chosen as the private’s group forum.

    So far it seems that if users create a group and a forum and later change their settings- the activity privacy is not updated. I keep testing different options as we speak, so I find something new, I will post it too.

    milenushka
    Participant

    Hello moderators. I have found this issue recently and have read all the threads I could find, with no success of solving it.
    My PRIVATE group’s forum topics and replies show up in the activity stream.
    I tested it thoroughly and what I found was it happens only to private group forums.
    Not private forums that are unattached to groups.

    bbpress 2.5.4
    buddypress 2.1.1 and also after the update 2.2
    wp 4.0.1

    actions taken:
    1.turned off all the plugins but buddypress and bbpress
    tested with another theme
    also used the Tools > Forums to recaculate and resync the forums
    the problem remains.

    Please help.

    p.s the previous ticket was closed 15 months ago, but i found people
    describingg this issue from 6 months ago. so clearly it remains unsolved.
    see the last reply here

    https://buddypress.org/support/topic/private-group-posts-appearing-in-activity-stream-to-non-members/

    @petervandoorn, @apokh, @notpoppy, @melle328

    thanx

    #234110

    In reply to: Noob recommendations

    devbynature
    Participant

    Thank you for your reply.

    I figured that it would be the best place to ask prior to going down the rabbit hole with the BuddyPress documentation and website. It’s been labeled as rather archaic, cryptic, and unreadable by many people that I asked for advice. I contribute to several other open source projects and might jump in on your docs/forum if the platform seems like something that will be handy for me in the future.

    As for the project being a copy, it’s really just identical in feature sets but not a literal copy of the site. Design is very different and it’s not dog sitters that are members. This site is for parents and babysitters which is highly similar to dogvacay.com in feature set. Yep, their site is built in Java. ::vomits a little::

    The key features that need to be included:

    – two member types (parents and babysitters)
    – they should be able to message each other privately
    – parents can schedule a date for the sitting to happen
    – parents can browse babysitters
    – custom profiles for each with different sets of information (based on a conditional of type)

    It appears that I was able to answer my own question over the past few days by utilizing the codex and going through all of the code. BuddyPress looks to be the best option for handling all of this unless I was to custom code a plugin (I am actually a PHP developer NOT a wordpress dev). I was looking at utilizing BuddyPress for cutting down time by using the friend associations and messaging system.

    BP might be a little much for this project but I can see value in several features that they might want in the future.

    I apologize for posting this in err to this forum if it’s not really a good place for asking whether it’s a good platform for such a situation. All of the documentation/about is written in a fashion that presents it as useful in only one way. It made it rather difficult to decipher how I could rip the plugin apart to do what I need instead of using it as “out-of-the-box.”

    Might there be some advance blogs out there where people have written about different ways to use the plugin? Just so that I can dig into the community a little more.

    Have a nice day.

    #234070
    danbp
    Participant

    Give this a try (functions.phhp or better, bp-custom.php) This will force the chronology of the blog post.

    Since recently (1.9 ?), a post published the 5th january is in the SWA at this date. A comment added to it the 26 january is attached to this post and appears under the 5th swa log…. so it’s just impossible to see if you have a long SWA.

    This snippet revert the swa to the previous behave.
    Posted: 5th -> swa: 5th
    Commented: 26th -> 26th

    function bpfr_stream( $qs, $object ) {
    	if ( 'activity' != $object ) {
    		return $qs;
    	}
    	
    	$qs = wp_parse_args( $qs, array() );
    	
    	$qs['display_comments'] = 'stream';
    	
    	return $qs;
    }
    add_filter( 'bp_ajax_querystring', 'bpfr_stream', 20, 2 );

    Private groups activities are not visible on the SWA. They show only on that group, if user is member and logged in.

    Hope that helps? 😉

    evitorino
    Participant

    My wordpress is 4.1 and Buddypress 2.1.1

    Hello Community,

    I am having a problem with a custom member page pagination, when clicking link to pagination page 2, pagination takes us to page 2 and adds the string “?upage=2” to the site URL.

    After that, clicking page 1 or back symbol on pagination links does nothing, only refreshes page.

    Problematic page: http://wp1.kodeserver.net/coach/
    I have set the page above in Twentyfifteen theme as to exclude any third party theme related errors.

    If we use the default member page “http://wp1.kodeserver.net/members/” then pagination works ok.

    I believe the error might be caused by the member filter i made or maybe i messed up the template.

    Hope you can help.

    Below is the code i am using:

    functions that i use to filter member loop by member types on the site:

    function bp_exclude_users_but_player() {
    $excluded_users_but_player = implode(',',get_users('role=coach&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=seniorcoach&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_player;
    }

    function bp_exclude_users_but_coach() {
    $excluded_users_but_coach = implode(',',get_users('role=player&fields=ID'));
    //$excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=seniorcoach&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_coach;
    }

    function bp_exclude_users_but_senior_coach() {
    $excluded_users_but_senior_coach = implode(',',get_users('role=player&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=coach&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_senior_coach;
    }

    function bp_exclude_cc_backend_users() {
    $excluded_cc_backend_users = implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_cc_backend_users = $excluded_cc_backend_users.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_cc_backend_users = $excluded_cc_backend_users.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_cc_backend_users;
    }

    Member Loop that calls member “Coach” filter:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members').'&exclude='.bp_exclude_users_but_coach().'&per_page=24' ) ) : ?>

    And this is the problematic page template code (The one that filters by role type (coach))

    <?php
    /**
    * The template for displaying all pages
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages and that
    * other 'pages' on your WordPress site will use a different template.
    *
    * @package WordPress
    * @subpackage Kleo
    * @since Kleo 1.0
    */

    get_header(); ?>

    <?php get_template_part('page-parts/general-title-section'); ?>

    <?php get_template_part('page-parts/general-before-wrap'); ?>

    <?php
    if ( have_posts() ) :
    // Start the Loop.
    while ( have_posts() ) : the_post();
    /*
    * Include the post format-specific template for the content. If you want to
    * use this in a child theme, then include a file called called content-___.php
    * (where ___ is the post format) and that will be used instead.
    */
    get_template_part( 'content', 'page' );
    endwhile;
    endif;
    ?>

    <?php do_action( 'bp_before_directory_members_page' ); ?>
    <section class="container-wrap main-color">
    <div class="section-container container">

    <div id="buddypress">

    <?php do_action( 'bp_before_directory_members' ); ?>

    <?php do_action( 'bp_before_directory_members_content' ); ?>

    <!--<div id="members-dir-search" class="dir-search" role="search">
    <?php //bp_directory_members_search_form(); ?>
    </div>--><!-- #members-dir-search -->

    <?php do_action( 'bp_before_directory_members_tabs' ); ?>

    <form action="" method="post" id="members-directory-form" class="dir-form">

    <div id="subnav" class="item-list-tabs" role="navigation">

      <!--<li class="selected" id="members-all">"><?php //printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?>--> <!--Contatore membri totali-->

      <?php //if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
      <!--<li id="members-personal">"><?php //printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?>-->
      <?php //endif; ?>

      <?php //do_action( 'bp_members_directory_member_types' ); ?>

      <?php //do_action( 'bp_members_directory_member_sub_types' ); ?>

      <!--<li id="members-order-select" class="last filter">
      <label for="members-order-by"><?php //_e( 'Order By:', 'buddypress' ); ?></label>
      <select id="members-order-by">
      <option value="active"><?php //_e( 'Last Active', 'buddypress' ); ?></option>
      <option value="newest"><?php //_e( 'Newest Registered', 'buddypress' ); ?></option>

      <?php //if ( bp_is_active( 'xprofile' ) ) : ?>
      <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
      <?php //endif; ?>

      <?php //do_action( 'bp_members_directory_order_options' ); ?>
      </select>
      -->

    </div><!-- .item-list-tabs -->

    <div id="members-dir-list" class="members dir-list">

    <?php

    /**
    * BuddyPress - Members Loop
    *
    * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    ?>

    <?php if ( bp_has_members( bp_ajax_querystring( 'members').'&exclude='.bp_exclude_users_but_coach().'&per_page=24' ) ) : ?>

    <div id="pag-top" class="pagination">
    <div class="pag-count" id="member-dir-count-top">
    <?php bp_members_pagination_count(); ?>
    </div>
    <div class="pagination-links" id="member-dir-pag-top">
    <?php bp_members_pagination_links(); ?>
    </div>
    </div>

    <?php do_action( 'bp_before_directory_members_list' ); ?>

    <ul id="members-list" class="item-list row kleo-isotope masonry">

    <?php while ( bp_members() ) : bp_the_member(); ?>

    <?php $user_info = get_userdata(bp_get_member_user_id()); ?>
    <?php
    $user_roles = $user_info->roles;
    $user_role = array_shift($user_roles);

    // echo 'User ID: ' . $user_info->ID . "\n";
    // echo bp_core_get_user_displayname( $user_info->ID ) ;
    // echo $user_info->ID ;
    ?>

    <li class="kleo-masonry-item type-<?php echo $user_role; ?>">

    ID ; ?>' value='show/hide'> <!-- link che apre info's nascoste -->

    <div class="member-inner-list animated animate-when-almost-visible bottom-to-top">

    <div class="item-avatar rounded">
    <!--
    ">
    --> <?php bp_member_avatar( 'type=full&height=150&width=150' ); ?>
    <!--
    -->
    <?php //do_action('bp_member_online_status', bp_get_member_user_id()); ?>
    </div>
    <!-- "> -->
    <div class="item">
    <div class="item-title"><span class="loop-nome"><?php bp_member_name(); ?></span><span class="loop-cognome"><?php bp_member_profile_data( 'field=Cognome' ); ?></span></div>

    <!-- <?php if ( bp_get_member_latest_update() ) : ?>
    <span class="update"> <?php bp_member_latest_update(); ?></span>
    <?php endif; ?>
    -->
    <?php do_action( 'bp_directory_members_item' ); ?>

    <?php
    /***
    * If you want to show specific profile fields here you can,
    * but it'll add an extra query for each member in the loop
    * (only one regardless of the number of fields you show):
    *
    * bp_member_profile_data( 'field=the field name' );
    */
    ?>

    </div>

    </div><!--end member-inner-list-->
    <!-- link che apre informazioni nascoste -->
    <div id="contenuto-nascosto-<?php echo $user_info->ID ; ?>" class="hidden-infos">
    <div class="nascondi-infos">
    ID ; ?>' value='show/hide'>
    <i class="icon-cancel"></i>

    </div>
    <div class="unhidden-infos unhidden-infos-first ">
    <div class="item-avatar-small">
    ">
    <?php bp_member_avatar( 'type=full&height=50&width=50' ); ?>

    <?php do_action('bp_member_online_status', bp_get_member_user_id()); ?>
    </div>
    </div>
    <div class="unhidden-infos">
    <div class="item-title">
    ">
    <span class="loop-nome"><?php bp_member_name(); ?></span>

    ">
    <span class="loop-cognome"><?php bp_member_profile_data( 'field=Cognome' ); ?></span>

    </div>
    </div>
    <div class="unhidden-infos">
    <span class="nomeazienda-titolo custom-title">Azienda:</span>
    <span class="nomeazienda custom-infos"><?php bp_member_profile_data( 'field=Azienda' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="pos-lavorativa-title custom-title">Funzione:</span>
    <span class="pos-lavorativa custom-infos"><?php bp_member_profile_data( 'field=Funzione' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="settore-title custom-title">Settore:</span>
    <span class="settore custom-infos"><?php bp_member_profile_data( 'field=Settore' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="laurea-title custom-title">Laurea:</span>
    <span class="laurea custom-infos"><?php bp_member_profile_data( 'field=Laurea' ); ?></span>
    </div>

    <div class="action">

    <div class="generic-button" id="send-private-message">
    " title="Clicca per profilo completo" class="send-message">Profilo Completo
    </div>

    <?php //do_action( 'bp_directory_members_actions' ); ?>

    </div>
    </div>

    <script type="text/javascript">
    jQuery(document).ready(function(){
    jQuery('#nascondi-mostra-<?php echo $user_info->ID ; ?>').live('click', function(event) {
    jQuery('#contenuto-nascosto-<?php echo $user_info->ID ; ?>').toggle('show');
    });
    });
    </script>

    <?php endwhile; ?>

    <?php do_action( 'bp_after_directory_members_list' ); ?>

    <?php bp_member_hidden_fields(); ?>

    <?php else: ?>

    <div id="message" class="info">
    <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    </div>

    <?php endif; ?>

    <?php do_action( 'bp_after_members_loop' ); ?>

    </div><!-- #members-dir-list -->

    <?php do_action( 'bp_directory_members_content' ); ?>

    <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>

    <?php do_action( 'bp_after_directory_members_content' ); ?>

    </form><!-- #members-directory-form -->

    <?php do_action( 'bp_after_directory_members' ); ?>

    </div><!-- #buddypress -->

    </div>
    </section>

    <?php do_action( 'bp_after_directory_members_page' ); ?>

    <?php get_template_part('page-parts/general-after-wrap'); ?>

    <?php get_footer(); ?>

    #233908
    mrjarbenne
    Participant

    Another option might be something like this: https://wordpress.org/plugins/buddypress-private-message-for-friends-only/. I haven’t used it myself, so I’m not positive it still works.

    I gave the Role bp_moderate but that did not solve the issue. There must be some other check that needs to be passed for these menu items to show up.

    You may want to put a late filter on map_meta_cap to ensure it’s truly getting added, and not getting stomped or mapped back to manage_options.

    Maybe a compromise could be found and some new functionality for the front end could be introduced that allows you to assign someone as Group Admin. I think i am not the only one that sees value in that Role especially in a big community where you have the need to moderate but do not want to give people access to the backend or higher Administrative privileges.

    You’re on the right track. Each component could (and maybe should) come with its own hierarchy of roles. Just because someone can manage users doesn’t mean they can manage groups, if that makes sense?

    I also don’t quite understand why a Group admin could not be derived from one of the Forum Roles. A forum Moderator or Keymaster should be able to moderate all Forums incl. the private group ones and could subsequently also be allowed to manage all groups.

    Anything is possible, but I’m not sure this approach is a safe assumption for all installations. At least not in its current iteration.

    All good ideas. Thanks @ubernaut for the bump.

    #233738
    agentswall
    Participant

    Hello,

    I have a wordless site using Buddypress and Bbpress. agentswall.com

    I have groups, forums and topics. I want my members to be able to create their own groups and forums and allow them to post topics as well.

    I am not using a private groups plugin.

    Previously when signed in as a member, you were able to create a group and add a forum. Now this functionality has disappeared and users can not create a group or a forum.

    Can you help?

    Many Thanks

    Joe

    #233673
    donburikun
    Participant

    Buddypress 2.2 was just released today with a couple of great new features.
    Are there any plans to add user blocking/ignoring (silent block) to private messaging to address spammer and harassment issues? This is really one of the must have missing features for Buddypress.

    #233551
    Henry Wright
    Moderator

    I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays… …all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?

    You have to ‘add’ the new activity.

    Regarding the second bullet point, you’d need to modify your activity loop which will be inside your activity template. Try something like this:

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&display_comments=stream' ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    For more info on the BuddyPress template system and where you find your activity template, please see this article.

    #233547
    Henry Wright
    Moderator

    In the case of private messages, bp_get_the_thread_message_sender_id() is the function you should be using. The problem might be related to where you’re calling from (i.e. the member’s ID might not be accessible at the point where you are using the function).

    For example, the bp_get_the_thread_message_sender_id() function must be used within a single message thread. Used anywhere else, it will return 0.

    #233545
    ARCangelGIRL
    Participant

    Thank you for your answers! Looks like that I did not describe clear what is my problem, because what I tried from you suggestions it did not work.

    There is the code that I’m using to generate “Give a point” button”

    function one_star_points() {
    	if ( ! function_exists( 'mycred' ) ) return;
    	$current_id = get_current_user_id();
    	$profile_id = bp_displayed_user_id();
    	if ( $current_id == $profile_id ) return;
    	echo '<div class="award-star-rating-img">';
    	echo do_shortcode( '[mycred_send to="' . $profile_id . '" amount="1" ref="tip" log="Tipping"]Give a point[/mycred_send]' );
    	echo '</div>';
    }
    add_action( 'one_star_points_button', 'one_star_points' );

    To give points in user profile I used $profile_id = bp_displayed_user_id();
    To give points in forum I used $profile_user_id = bbp_get_reply_author_id();

    But i bumped into a problem when I want to give points to user in activity stream. I placed the button near every activity stream entry, so the user could give a point if the like what other user posted in activity stream. I used this code $profile_video_id = bp_get_activity_user_id(); There is no error or warning, but it’s not working, not giving points.

    Also I would like to give a point if I like private message answer that other user send me. I used this $profile_message_id = bp_get_the_thread_message_sender_id() ;, but it says that “Missing the recipient for this shortcode.”.

    Looks like that in the last two cases (activity stream and messages) something is wrong with indicating user id.
    Any recommendations on this? I have tried many functions, but still can’t grab user ID in those last two..

    #233543
    deshmukh
    Participant

    @henrywright I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays all profile updates (these are displayed even now), all updates to public groups (these, too, are displayed currently) AND all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?

    Also, I understood the second part re threads with new comments coming to top. But could you please elaborate a bit? Do I need to add some code to bp-custom.php or mytheme/function.php? In this specific case, what code should I add?

    I am sorry if my question appear to be basic. I am a newbie — I like to guess, like many others coming to forums 🙂

    #233533
    screampuff
    Participant

    Also my site is private and can only be accessed when logged in, so I’m wondering if I can edit line line 47 in that same code to include the user check and simply display the “Invalid User ID specified.” If someone tries to view another user’s achievements list. That would be fine with me.

    I’m still new to WP/BP and PHP in general if you haven’t noticed 😉

    #233512
    Henry Wright
    Moderator

    Hi @screampuff

    You can make that link private by doing something like this:

    function screampuff_hide_achi() {
        // Bail if the current user is the displayed user.
        if ( bp_loggedin_user_id() == bp_displayed_user_id() )
            return;
    
        // Bail if the current user is an admin.
        if ( current_user_can( 'manage_options' ) )
            return;
    
        // Bail if not the achievements page.
        if ( bp_current_action() != 'achievements' )
            return;
    
        // Redirect.
        wp_redirect( home_url() );
        exit;
    }
    add_action( 'template_redirect', 'screampuff_hide_achi' );

    Please note I haven’t tested. Also, I’m assuming the current action is ‘achievements’. It may be something else in which case the function will need a minor tweak.

Viewing 25 results - 1,576 through 1,600 (of 5,233 total)
Skip to toolbar