Search Results for 'private'
-
AuthorSearch Results
-
March 26, 2009 at 1:28 pm #41048
In reply to: Group Administration
talk2manoj
Participantfunction bp_group_admin_only(){
global $bp, $current_blog;
global $group_obj, $is_single_group;
if (!is_site_admin()){
remove_action( 'wp', 'groups_setup_nav', 2 );
}
}
/* I am using the same function (groups_setup_nav) as BuddyPress to avoid
* any hacking to the original code
*/
function manoj_groups_setup_nav(){
if (!is_site_admin() ){
global $bp, $current_blog;
global $group_obj, $is_single_group;
if ( $group_id = BP_Groups_Group::group_exists($bp->current_action) ) {
/* This is a single group page. */
$is_single_group = true;
$group_obj = new BP_Groups_Group( $group_id );
/* Using "item" not "group" for generic support in other components. */
if ( is_site_admin() )
$bp->is_item_admin = 1;
else
$bp->is_item_admin = groups_is_user_admin( $bp->loggedin_user->id, $group_obj->id );
/* If the user is not an admin, check if they are a moderator */
if ( !$bp->is_item_admin )
$bp->is_item_mod = groups_is_user_mod( $bp->loggedin_user->id, $group_obj->id );
/* Is the logged in user a member of the group? */
$is_member = ( groups_is_user_member( $bp->loggedin_user->id, $group_obj->id ) ) ? true : false;
/* Should this group be visible to the logged in user? */
$is_visible = ( 'public' == $group_obj->status || $is_member ) ? true : false;
}
/* Add 'Groups' to the main navigation */
bp_core_add_nav_item( __('Groups', 'buddypress'), $bp->groups->slug );
if ( $bp->displayed_user->id )
bp_core_add_nav_default( $bp->groups->slug, 'groups_screen_my_groups', 'my-groups' );
$groups_link = $bp->loggedin_user->domain . $bp->groups->slug . '/';
/* Add the subnav items to the groups nav item */
bp_core_add_subnav_item( $bp->groups->slug, 'my-groups', __('My Groups', 'buddypress'), $groups_link, 'groups_screen_my_groups', 'my-groups-list' );
//bp_core_add_subnav_item( $bp->groups->slug, 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group', false, bp_is_home() );
bp_core_add_subnav_item( $bp->groups->slug, 'invites', __('Invites', 'buddypress'), $groups_link, 'groups_screen_group_invites', false, bp_is_home() );
if ( $bp->current_component == $bp->groups->slug ) {
if ( bp_is_home() && !$is_single_group ) {
$bp->bp_options_title = __('My Groups', 'buddypress');
} else if ( !bp_is_home() && !$is_single_group ) {
$bp->bp_options_avatar = bp_core_get_avatar( $bp->displayed_user->id, 1 );
$bp->bp_options_title = $bp->displayed_user->fullname;
} else if ( $is_single_group ) {
// We are viewing a single group, so set up the
// group navigation menu using the $group_obj global.
/* When in a single group, the first action is bumped down one because of the
group name, so we need to adjust this and set the group name to current_item. */
$bp->current_item = $bp->current_action;
$bp->current_action = $bp->action_variables[0];
array_shift($bp->action_variables);
$bp->bp_options_title = bp_create_excerpt( $group_obj->name, 1 );
$bp->bp_options_avatar = '<img src="' . $group_obj->avatar_thumb . '" alt="Group Avatar Thumbnail" />';
$group_link = $bp->root_domain . '/' . $bp->groups->slug . '/' . $group_obj->slug . '/';
// If this is a private or hidden group, does the user have access?
if ( 'private' == $group_obj->status || 'hidden' == $group_obj->status ) {
if ( groups_is_user_member( $bp->loggedin_user->id, $group_obj->id ) && is_user_logged_in() )
$has_access = true;
else
$has_access = false;
} else {
$has_access = true;
}
// Reset the existing subnav items
bp_core_reset_subnav_items($bp->groups->slug);
// bp_core_add_nav_default( $bp->groups->slug, 'groups_screen_group_home', 'home' );
bp_core_add_subnav_item( $bp->groups->slug, 'home', __('Home', 'buddypress'), $group_link, 'groups_screen_group_home', 'group-home' );
// If the user is a group mod or more, then show the group admin nav item */
if ( $bp->is_item_mod || $bp->is_item_admin )
bp_core_add_subnav_item( $bp->groups->slug, 'admin', __('Admin', 'buddypress'), $group_link , 'groups_screen_group_admin', 'group-admin', ( $bp->is_item_admin + (int)$bp->is_item_mod ) );
// If this is a private group, and the user is not a member, show a "Request Membership" nav item.
if ( !$has_access && !groups_check_for_membership_request( $bp->loggedin_user->id, $group_obj->id ) && $group_obj->status == 'private' )
bp_core_add_subnav_item( $bp->groups->slug, 'request-membership', __('Request Membership', 'buddypress'), $group_link , 'groups_screen_group_request_membership', 'request-membership' );
if ( $has_access && $group_obj->enable_forum && function_exists('bp_forums_setup') )
bp_core_add_subnav_item( $bp->groups->slug, 'forum', __('Forum', 'buddypress'), $group_link , 'groups_screen_group_forum', 'group-forum', $is_visible);
if ( $has_access && $group_obj->enable_wire && function_exists('bp_wire_install') )
bp_core_add_subnav_item( $bp->groups->slug, 'wire', __('Wire', 'buddypress'), $group_link, 'groups_screen_group_wire', 'group-wire', $is_visible );
if ( $has_access && $group_obj->enable_photos && function_exists('bp_gallery_install') )
bp_core_add_subnav_item( $bp->groups->slug, 'photos', __('Photos', 'buddypress'), $group_link, 'groups_screen_group_photos', 'group-photos', $is_visible );
if ( $has_access )
bp_core_add_subnav_item( $bp->groups->slug, 'members', __('Members', 'buddypress'), $group_link, 'groups_screen_group_members', 'group-members', $is_visible );
if ( is_user_logged_in() && groups_is_user_member( $bp->loggedin_user->id, $group_obj->id ) ) {
if ( function_exists('friends_install') )
bp_core_add_subnav_item( $bp->groups->slug, 'send-invites', __('Send Invites', 'buddypress'), $group_link, 'groups_screen_group_invite', 'group-invite', $is_member );
bp_core_add_subnav_item( $bp->groups->slug, 'leave-group', __('Leave Group', 'buddypress'), $group_link, 'groups_screen_group_leave', 'group-leave', $is_member );
}
}
}
}
}
add_action( 'wp', 'bp_group_admin_only',1);
add_action( 'wp', 'manoj_groups_setup_nav',2);March 26, 2009 at 10:49 am #41013Andy Peatling
KeymasterIt needs a stripslashes call, which I will add.
March 26, 2009 at 10:30 am #41008reprocessor
ParticipantYeah, I’ve experienced this too – if there’s a fix available i’d appreciate the know-how
March 22, 2009 at 6:43 am #40613alunsina
Participantis it a public or a private blog? i think private blogs does not show on the sitewide activity.
March 20, 2009 at 12:00 pm #40496In reply to: Weird BBPress forum issue
kennibc
ParticipantWould having all the blogs be private have anything to do with this?
March 16, 2009 at 10:28 am #40104In reply to: Hide a specific blog from being shown
Burt Adsit
ParticipantIf you set the blog to be private the posts and the activity do not show. Settings > Privacy > I would like to block search engines, but allow normal visitors
March 16, 2009 at 4:55 am #40098In reply to: Displaying Birthday on Profile
fishbowl81
ParticipantWe need to get Andy to changed the member theme not to show private profile fields, and then use those private profile fields in custom boxes to diaplay stuff. This would be a great way to ask for zipcode, and build a custom module to show a Google Map, or ask for birthday and just show a count down timer until their birthday.
Where I don’t expect this to be in the 1st version, but would be nice to get the details hammered out in early post release versions.
Brad
March 15, 2009 at 11:50 pm #40083In reply to: How do you make members & group private
mspecht
ParticipantYou could always roll your own, https://buddypress.org/forums/topic.php?id=1651
March 15, 2009 at 7:44 pm #40079In reply to: How do you make members & group private
ngsonst
Participanttake a look at those plugins:
http://bp-dev.org/plugins/registered-users-only-2/
http://bp-dev.org/plugins/bbpress-force-login/
http://bp-dev.org/plugins/force-member-login/
you may find what you want…
March 15, 2009 at 4:53 pm #40074In reply to: How do you make members & group private
akelley
MemberSame!
Thank you in advance for your time and consideration. I would like a few of my pages on my mu install to be open such as the index page, about us, media, and contact us, but I am looking to have the rest of the site including buddypress and all blogs private and member only!
March 14, 2009 at 6:24 am #39990In reply to: New Blog Creation Disconnected in Activity Stream
Burt Adsit
ParticipantThat must be a feature I hadn’t noticed.

If your blogs are set to private the activity will not show. Check Settings > Privacy. It should be “I would like my blog to be visible to everyone…”
March 12, 2009 at 5:12 am #39799Burt Adsit
ParticipantBrent, is this resolved?
March 11, 2009 at 8:29 pm #39779John James Jacoby
KeymasterThat is a good idea for a plugin.
Is this something you are recommending be included with BuddyPress, or that someone optionally make this for you?
If you want it to be part of BuddyPress, add it as an enhancement by using the Trac:
https://trac.buddypress.org/login
You can use your same login and password as for these forums.
Create a new ticket, and under type, select “enhancement.”
If you’d like someone to take this task on for you privately, you will want to explore being added to one of the development mailing lists (which I don’t have a link to right this second but will find for you shortly.)
March 10, 2009 at 5:37 pm #39701In reply to: Private Profile Fields, In Db but are they in Use?
fishbowl81
ParticipantI hope Andy releases some code to support some of these Easter Eggs. Maybe we should hold an Easter Egg hunt, with prizes for everyone who can find unused Database fields or unused functions in the code. I know of a 1/2 dozen which I would really like to see implemented soon.
Brad
March 10, 2009 at 5:33 pm #39700In reply to: Conditional profile fields?
fishbowl81
Participantyou can…
do this.. mark fields as private, change your profile fields to dispaly public only, and then use the values to generate a customer profile box.
You can easily get profile values directly, and can perform any calculations you want based on these values. But I’m sure it might be a little confusing to show these, so you need to have them marked as private. These private fields will not be shown once you modify the profile member theme.
Hope that gives you some ideas,
Brad
March 9, 2009 at 9:48 pm #39587In reply to: BP-FBConnect Plugin
benny148148
Participantor maybe something that makes the slug for private profiles the user’s email address name prior to the @symbol….ie benny148148@gmail.com would create a benny148148 slug…and somebody who signs up on a later date with benny148148@hotmail.com would get benny1481482 as their slug, or something similar.
Not sure how difficult this would be…assuming it’s even possible at all. It would definitely be prettier than the facebookuserX…of course, we’ll probably never be happy

Thanks again for this plugin!
March 9, 2009 at 9:18 pm #39583In reply to: Multiple user types – possible?
jeff-sayre
ParticipantHi John:
Is the permissions plugin the same thing as the privacy component Andy mentions in this thread (post #4)? https://buddypress.org/forums/topic.php?id=39#post-158
I literally just started (i.e. this morning) coding a bare-bones privacy plugin for BP that in essence controls privacy at the profile subgroup level.
A simple radio button array appears in each subgroup’s title bar with options to grant or deny viewing access. It offers the following granular subgroup level of control:
- allow/deny anyone (i.e. globally public or private)
- allow/deny only logged in users
- allow/deny only friends
It’s not much of a privacy filter, but it is a start.
If it is the case that V1.1 will have the first generation of the privacy component, then perhaps I should simply wait. I’m sure the core developers will provide a more powerful (and better) solution than I could.
Jeff
March 9, 2009 at 8:09 pm #39580In reply to: I GIVE UP.. wp-recaptcha WT%^&
bigkill
Participantthank you for advice.. but you guys must think I’m a programmer.. sorry Im just a networking guy with web design hobby. When it comes to PHP I’m a green horn but have been hacking WP for some time now with decent success. with that said here is where I stand and what I have tried.. so far no good
I have been working in bp-core-signup.php
I inserted this ***** add_action( ‘signup_extra_fields’, ‘public.php’ ); *****
before line (and tried it after ) 123ish
do_action( ‘signup_extra_fields’, $errors );
and also
I inserted this
add_filter( ‘wpmu_validate_user_signup’, ‘private.php’, 10, 1 );
before line (and tried it after )
return wpmu_validate_user_signup($_POST, $_POST);
am i putting it in the right areas??
the code in public.php is a follows:
<?php
require_once('recaptchalib.php');
$publickey = "…"; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>the code in private.php is a follows:
`
<?php
require_once(‘recaptchalib.php’);
$privatekey = “…”;
$resp = recaptcha_check_answer ($privatekey,
$_SERVER[“REMOTE_ADDR”],
$_POST[“recaptcha_challenge_field”],
$_POST[“recaptcha_response_field”]);
if (!$resp->is_valid) {
die (“The reCAPTCHA wasn’t entered correctly. Go back and try it again.” .
“(reCAPTCHA said: ” . $resp->error . “)”);
}
?>
‘
I did indeed try adding the code directly in the fields (both with and without php tags) ** add_action( ‘signup_extra_fields’, ‘code-from-above-pasted-here’ ); ** .. that didn’t work out..
Help please? Thanks
March 9, 2009 at 3:14 pm #39562In reply to: BP-FBConnect Plugin
John James Jacoby
Keymaster@hempsworth, I think the scope of this plugin for right now is really just getting the initial sign-up/login functionality down. Creating a virtual link between facebook and BuddyPress, while a cool idea, is actually quite a task considering the complexity of fbl.
After speaking with Andy last night, part of the problem comes from how Facebook locks down your profile if it’s set to be private (which I’m willing to bet a majority are these days.) If your profile is private, all you get is the facebook user_id, and that’s it.
As far as having the feeds sync up, it would take an active facebook plugin to feed info to both places from both directions. It is a great idea though. I personally wish my Facebook would update my twitter and vice versa.
March 9, 2009 at 1:31 pm #39554In reply to: OVERRIDE BLOG PRIVACY SETTINGS FOR BUDDY PRESS
kennibc
ParticipantI had to make the whole site private using this plugin:
http://premium.wpmudev.org/project/sitewide-privacy-options-for-wordpress-mu
There is a free version of this plugin, but we wanted to be able to override the settings by site admin only.
You cannot access any page on the site without logging in first. This works for us since we don’t want outside access to students. On rare occasions where the teacher wants the students to blog publicly, I can override the setting for the specific blogs.
March 9, 2009 at 1:17 pm #39553In reply to: OVERRIDE BLOG PRIVACY SETTINGS FOR BUDDY PRESS
March 9, 2009 at 12:21 pm #39547In reply to: OVERRIDE BLOG PRIVACY SETTINGS FOR BUDDY PRESS
kennibc
ParticipantThanks Jalien. Your post worked perfectly for the Blog Listing Page. However, there is also the sidebar widget which pulls the most recent posts from the private blogs which is not working. Because the blogs are private, I guess I need to find that widget file as well so I can make the changes.
Any suggestions? I will be searching…
March 9, 2009 at 10:26 am #39544In reply to: BP-FBConnect Plugin
Paul Wong-Gibbs
KeymasterReading the above please would someone clarify what “username” BP thinks it ends up with? Using urls of like /members/facebookuser1…100/ isn’t ideal. Also what happens if the profile is private? At work at the mo so can’t test – thanks
March 9, 2009 at 12:49 am #39492In reply to: Private Profile Fields, In Db but are they in Use?
John James Jacoby
KeymasterThere’s actually a few little Easter eggs in the database that aren’t being used yet, but are planned for future use.
My suggestion would be to wait until it’s time, but if you’re comfortable making some modifications that will end up being trumped by a future update, that sounds like one possible way to accomplish that.
March 8, 2009 at 11:57 pm #39490In reply to: Tagged style pet game?
fishbowl81
ParticipantI have built 2 components, 1 being a token system, and the 2nd being badges.
The tokens can be purchased via paypal, or earned from site admins. They can be used to by “gifts” to give to other members.
The badges are like setup like private gifts that have membership criteria, such as # of blog posts or # number of friends.
Setting up these wasn’t hard, and adding on a login action, to increase number of tokens if last login was over 4 hours ago wouldn’t be hard.
Buying and selling friends is pretty easy too, a little over done but can be built easily.
My suggestion take advantage of user meta and site meta to store values. These are also cached nicely so makes for slightly faster page loads.
Check them all out at:
http://www.gorgeousgamers.com/
Brad
-
AuthorSearch Results