Search Results for 'private'
-
Search Results
-
Here is a quick snippet to display the group’s latest activity on the Group’s Directory Page:
function my_group_loop_activity_item() { global $bp, $activities_template; if ( !bp_is_active( 'activity' ) ) return; if ( !bp_group_is_visible() ) return; $show_hidden = false; /* Group filtering */ $object = $bp->groups->id; $primary_id = bp_get_group_id(); if ( 'public' != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) ) $show_hidden = true; /* Note: any params used for filtering can be a single value, or multiple values comma separated. */ $defaults = array( 'display_comments' => false, // false for none, stream/threaded - show comments in the stream or threaded under items 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => false, // number of items per page 'max' => 2, // max number to return 'include' => false, // pass an activity_id or string of ID's comma separated 'show_hidden' => $show_hidden, // Show activity items that are hidden site-wide? /* Filtering */ 'object' => $object, // object to filter on e.g. groups, profile, status, friends 'primary_id' => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id /* Searching */ 'search_terms' => false // specify terms to search on ); $r = wp_parse_args( $args, $defaults ); extract( $r ); $filter = array( 'user_id' => false, 'object' => $object, 'action' => $action, 'primary_id' => $primary_id, 'secondary_id' => $secondary_id ); $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden ); while ( bp_activities() ) : bp_the_activity(); ?> <div class="item-desc" id="activity-"> <div class="activity-avatar"> <a href=""> </a> </div> <div class="activity-content"> <div class="activity-header"> </div> </div> </div> <?php endwhile; } add_action( 'bp_directory_groups_item', 'my_group_loop_activity_item' );Add this to bp-custom.php or functions.php in your theme.
Although if your group is a private group, the activity will still show up on the page.
Is there a plugin which dis-enables private messaging for users with a subscription capability but enables users with capabilities above the subscription level to use the private messaging function
I’m developing a site, testing plugins etc. I’m running the default theme. I’ve got a private install hosted remotely with early adopters adding content.
I’ve just noticed that if I step back in time with the “Load More” button on the main Activity stream at /activity/, previous content loads properly once and then subsequently loops (ie. the same block of content displays from each request, allowing seemingly infinite instances of itself). I’ve been running quite a few plugins, so I’ve disabled everything except the BP core, removed any widgets, and this behaviour persists.
Members’ individual Activity streams are functioning normally, ie. I can load their content back to their first contribution. However the main Activity stream is looping forever.
I’m pretty certain this has been working fine previously.
Hi,
new to BuddyPress and I was wondering if these two things were possible
1: Linking Groups
I am doing a website where there are 3 different levels of groups. Each level can have several groups. I want a way to enable a group to have a “relationship” or “link” with another group and for that “link” to be meaningful i.e. “A works for B”, “B is part of C”, “D supplies E with drink” etc
2: Public… yet Private
I want to able to have all my groups viewable but have people request to be a part of them and then an admin approve/decline that request
Any of this possible?
Thanks,
JJ
I’ve been wresting with an issue where memcached causes problems with buddypress private messaging and @mentions. Rather than try and bring back a old, confusing thread, I want to start fresh and clearly explain the issue.
I’m using memcached. When I click to send a private message or @mentions, the wrong recipient shows up. This is a known issue that, supposedly, many of us who using persistent caching have. My confusion is in the fix.
Trac ticket #2583 (http://trac.buddypress.org/ticket/2583) offers a patch, where you change a line in bp-messages-templatetags.php. This is easy to do, but it doesn’t fix the issue by itself. Further down the ticket, @r-a-y says:
“With the patch, you’d still need to apply a filter to “bp_get_send_private_message_link” and override it so it doesn’t use bp_core_get_username().
The same problem occurs with the bp_get_send_public_message_link() function – aka the “Mention this user” link.”
I know just enough php to get myself into trouble and this is beyond me. Has anyone done this? Could anyone point me in the right direction for how to apply these filters?
Thank you!
Hi,
very strange but logged in users cannot view private or other group activity, which is fine, the thing is guests (not logged) can view them all? is there a fix or a plugin to control who views what?
many thanks.
I want to be able to have specific information appear on my members BP pages when they log in. I need to have their individual financial information appear at least once a week so that only each person’s information shows on their private profile. Is there a way to get in and show them this information without making it public to everyone?
I’ve got a large blog farm with multi-db’s using memcached & batcache to handle the load. The problem is that with BP, if I click to send a private message to a user, it shows the wrong recipient on the composition screen.
If I flush the cache and try again it works.Has anyone else been able to tweak the caching settings with object-cache.php or advanced-cache.php to get this to work?
Here’s what I have:
function batcache_cancel() {
global $batcache;if ( is_object($batcache) )
$batcache->cancel = true;
}class batcache {
// This is the base configuration. You can edit these variables or move them into your wp-config.php file.
var $max_age = 180; // Expire batcache items aged this many seconds (zero to disable batcache)var $remote = 0; // Zero disables sending buffers to remote datacenters (req/sec is never sent)
var $times = 2; // Only batcache a page after it is accessed this many times… (two or more)
var $seconds = 0; // …in this many seconds (zero to ignore this and use batcache immediately)var $group = ‘batcache44’; // Name of memcached group. You can simulate a cache flush by changing this.
var $unique = array(); // If you conditionally serve different content, put the variable values here.
Is there some way to exclude the message page?
Thanks!