Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 91,526 through 91,550 (of 94,541 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);

    #41046
    nicolagreco
    Participant

    If you’ve BPDEV plugins installed go in WP-ADMIN => BPDEV-ADMIN => PLUGINS => BPDEV Theme and change the logo link

    #41038

    In reply to: Group Administration

    talk2manoj
    Participant

    I have done this by

    1. If user is not is_site_admin() it calls remove_action

    2. Added a new action to my own function, which basically is a copy of BuddyPress function except the code to add bp_core_add_subnav_item

    Is it a good practice to avoid any hacking to the core? Please suggest.

    #41033
    Ezd
    Participant

    Ok Andy,

    Anyways, thanks for all your fantastic work on BB. Love the new buddypress.org layout. There’s some issues with the tables breaking here and there in my browser (IE7) but I guess your already aware of that.

    #41029
    Andy Peatling
    Keymaster

    This is only the case on BuddyPress.org.

    #41028
    Ezd
    Participant

    Hi Burtadsit,

    Your right, on the RC-1 I can upload an avatar during signup, I can also change it afterwards with a new image in my profile… Funny I didnt see that!

    I guess it confused me a little that I was unable to change my avatar on the new buddypress.org layout without going to gravatar.com. (Not like RC-1)

    It says:

    Your avatar will be used on your profile and throughout the site.

    Avatars on BuddyPress are controlled by the globally recognized avatar system (Gravatar). To change or create a new avatar for your account, please login or signup at: http://gravatar.com.

    If you are signing up for a new Gravatar account, make sure you use the same email address that is registered with your WordPress.org account.

    —

    So I would have to goto gravatar.com and upload a new avatar instead of just uploading it on the buddypress site. I guess the avatars on the new layout is all controlled by gravatar.com. :)

    #41021
    Indojepang
    Participant

    OMG!!! CAN’T WAIT!!

    #41020

    In reply to: Navigation problems :(

    reprocessor
    Participant

    Hi Andy, Thanks for that (damned brackets lol). I’ve been using a zip version of buddypress from about 2-3 weeks back. Everything ‘so far’ (touch wood) has worked and thought there was no need to update from the trunk. This was the first time EVERYTHING in a bp install worked for me. My problem is, that if I do update from the trunk then everything will go ‘boobies to the dasies’ if you know what I mean, as there have been significant changes e.g. where you’ve placed the member themes etc.

    If there is a hack I can implement to tide me over I would be extremely grateful. I’m almost finished the site y’see and will be demoing it tomorrow.

    Thanks for your time as always.

    Phil

    #41011
    Sgrunt
    Participant

    if are u using a language different from english, upgrade to the latest trunks of buddypress (not RC1) and re add widgets. If u are using default english language then the problem is different.

    takuya
    Participant

    Just installed everything need to run buddypress.

    Now that I\’ve just started to setup widgets on the top page. However even if I save the changes or add a new widget, nothing shows up on the top page and just shows this message:

    Please log in and add widgets to this column. Add Widgets

    Is there anything you can think of to solve this?

    #41005

    In reply to: Navigation problems :(

    Andy Peatling
    Keymaster

    Try this:

    <li<?php if ( is_page( \'about\' ) ) : ?> class=\"selected\"<?php endif; ?>><a href=\"<?php echo $bp->root_domain; ?>/about/\" title=\"<?php _e( \'About\', \'buddypress\' );?>\"><?php _e( \'About\', \'buddypress\' );?></a></li>

    #41003

    In reply to: bpgroups!?!?!

    jam24
    Participant

    I mean in the buddypress frontend!

    #41002

    In reply to: uninstall bbpress

    Ekine
    Participant

    Yes but doesn’t bbpress and buddypress share tables? Do I have to touch those tables, too?

    #4095
    ?
    Participant

    Hi everybody, I\’d like to apply for the Google Summer of Code and contribute in the development of BuddyPress.

    I don\’t know what are the most requested features, and I\’d be happy to hear if someone wants to suggest me something.

    What I\’d suggest is to create a way to communicate different BuddyPress sites\’ users activity streams, so you can see the activity from friends who aren\’t in the same site (but you\’d like to follow).

    Example: John has a user in the site X, and Marie has a user in the site Y.

    Actually, if John reads \”latest activity\”, he will see activity from his friends at site X, but he won\’t be able to read about what Marie is doing because her is on site Y.

    Implementing this, John and Marie would be able to read each other\’s activity.

    Of course there must be some security settings so if you don\’t want your activity to be seen by other people but your friends it remains unreachable. This could be partially solved by using direct communication between sites (something like xml-rpc?) instead of a public \”feed\”.

    Thanks in advance for your time and help!

    #41001
    Arun
    Participant

    If you are talking about your installation somewhere ,you can easily turn it off (if you are a admin) from the “Buddypress” submenu under the “Site Admin” menu.there is an option “Allow non-friends to post on profile wires:”. you can select “no” for that.

    But if you are talking about this buddypress.org site, Andy may think that this feature can be very useful for developers (like us) for contacting each other without having to wait for the invitation accept.

    and Don’t forget to turn those Lights OFF.(only if this answers your Question)

    #41000
    talk2manoj
    Participant

    I will work towards enhancing this plugin whenever I get time.

    Please put your wishlist regarding bulk import users at plugin page.

    #40999
    Sgrunt
    Participant

    the latest trunk of buddypress requires a change in the name of member theme folder:

    OLD:

    /wp-content/member-themes

    NEW:

    /wp-content/bp-themes

    https://buddypress.org/forums/topic.php?id=1675

    #40996
    thebigk
    Participant

    Well that would be bit difficult but not impossible because we have about 2200 users to be imported from old database. I also need to import their other profile data. Is this possible?

    #4093
    zenseeker
    Participant

    It’s been awhile since I’ve played with Buddypress. Glad to see it’s moving right along. Using the latest RC1. When a new member signs up, they don’t get the member page, they get Kubrick (or wp classic, whatever it’s called now) as default. I haven’t added any themes. I’ve got wp-content/member-themes/buddypress-member. Home theme showing up fine. BuddyPress Member Theme is only option showing in dropdown on BuddyPress Settings page. Any ideas?

    #40992
    old account
    Participant
    #40990

    In reply to: nested profiles

    aarongrey
    Participant

    ZapDog, I’m glad I found your post. This is exactly what I would like to use Buddypress for. If anyone knows of a plugin in the works or an existing solution, any information on how to accomplish this would be greatly appreciated. Thanks Andy for all your outstanding work on Buddypress.

    #40989
    hyrxx
    Participant

    you should use one install of mu and then use multi site manager it uses just the one database

    you can then use it like so to access members profiles

    eg

    http://hyrxx.com/members/Hyrxx/ (dot com)

    http://hyrxx.tv/members/Hyrxx/ (dot tv)

    #40987
    Trent Adams
    Participant

    Here is my thoughts:

    1) It is already easy enough to share wp_users across several WPMU installs or WP installs, so that part would be pretty simple (even using HyperDB)

    2) Having two WPMU installs being able to write to the same BP tables might be a disaster, but it might work. Once again using something like HyperDB, but it seems as though BP has issues with tables not being in same database as main WPMU tables.

    I am still playing with this myself on test installs, so if I learn anything new, I would be happy to report.

    Trent

    Seobrien
    Participant

    Anyone seen documentation or speculation on how to get one network across more than one domain? Two installs of WPMU on two distinct domains leveraging the same network of users in Buddypress.

    At all possible and if so, any direction?

    #40982

    In reply to: bpgroups!?!?!

    keston
    Participant

    Hi, you mean in the buddypress front end or bb front end? Do you install this plugin: http://code.ourcommoninterest.org/2009/02/14/buddypress-group-forums-for-bbpress/

    It did the same thing to me before I’ve installed it on bp front end now its working but not in bbpress!

Viewing 25 results - 91,526 through 91,550 (of 94,541 total)
Skip to toolbar