Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 3,776 through 3,800 (of 3,875 total)
  • Author
    Search Results
  • #41048

    In reply to: Group Administration

    talk2manoj
    Participant
    function 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 ) &amp;&amp; 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 &amp;&amp; !groups_check_for_membership_request( $bp->loggedin_user->id, $group_obj->id ) &amp;&amp; $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 &amp;&amp; $group_obj->enable_forum &amp;&amp; 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 &amp;&amp; $group_obj->enable_wire &amp;&amp; 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 &amp;&amp; $group_obj->enable_photos &amp;&amp; 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() &amp;&amp; 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);

    Andy Peatling
    Keymaster

    It needs a stripslashes call, which I will add.

    reprocessor
    Participant

    Yeah, I’ve experienced this too – if there’s a fix available i’d appreciate the know-how ;)

    #40613
    alunsina
    Participant

    is it a public or a private blog? i think private blogs does not show on the sitewide activity. :)

    #40496
    kennibc
    Participant

    Would having all the blogs be private have anything to do with this?

    #40104
    Burt Adsit
    Participant

    If 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

    #40098
    fishbowl81
    Participant

    We 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

    #40083
    mspecht
    Participant

    You could always roll your own, https://buddypress.org/forums/topic.php?id=1651

    #40079
    ngsonst
    Participant
    #40074
    akelley
    Member

    Same!

    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!

    #39990
    Burt Adsit
    Participant

    That 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…”

    Burt Adsit
    Participant

    Brent, is this resolved?

    That 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.)

    #39701
    fishbowl81
    Participant

    I 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

    #39700
    fishbowl81
    Participant

    you 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

    #39587

    In reply to: BP-FBConnect Plugin

    benny148148
    Participant

    or 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 :D

    Thanks again for this plugin!

    #39583
    jeff-sayre
    Participant

    Hi 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

    #39580
    bigkill
    Participant

    thank 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

    #39562

    In reply to: BP-FBConnect Plugin

    @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.

    #39554
    kennibc
    Participant

    I 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.

    #39553
    gpo1
    Participant

    @kennibc.That’s good.

    How do you make members & groups private?

    #39547
    kennibc
    Participant

    Thanks 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…

    #39544

    In reply to: BP-FBConnect Plugin

    Paul Wong-Gibbs
    Keymaster

    Reading 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

    #39492

    There’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.

    #39490

    In reply to: Tagged style pet game?

    fishbowl81
    Participant

    I 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

Viewing 25 results - 3,776 through 3,800 (of 3,875 total)
Skip to toolbar