Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 25,051 through 25,075 (of 94,569 total)
  • Author
    Search Results
  • #184022

    In reply to: Ning Import

    @mercime
    Participant

    @doodledogcody as of now, there’s only a premium plugin https://premium.wpmudev.org/project/ning-to-buddypress-user-importer/ that does Ning to BP import.

    #184008
    Morgan Kay
    Participant

    I am using the following code to add a custom post type to users’ activity streams:

    
    add_filter ( 'bp_blogs_record_post_post_types', 'ecomukti_activity_publish_custom_post_types',1,1 );
    function ecomukti_activity_publish_custom_post_types( $post_types ) {
    	$post_types[] = 'product';
    	return $post_types;
    }
    
    add_filter('bp_blogs_activity_new_post_action', 'ecomukti_cpt_activity_action', 1, 3);
    function ecomukti_cpt_activity_action( $activity_action,  $post, $post_permalink ) { 
        global $bp;
        if( $post->post_type == 'product' ) {
            if ( is_multisite() )
                $activity_action  = sprintf( __( '%1$s created a new campaign, %2$s, on the site %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', '<a href="' . get_blog_option( $blog_id, 'home' ) . '">' . get_blog_option( $blog_id, 'blogname' ) . '</a>' );
            else
                $activity_action  = sprintf( __( '%1$s created a new campaign, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
        }
    
        return $activity_action;
    }
    

    However, I also want this activity to show up in the group loop for all groups the user belongs to. How can I get this to show on the group page?

    I have read the following pages, but I haven’t found them helpful:

    Add custom filters to loops and enjoy them within your plugin

    Groups Loop

    #184007
    saturdaysound
    Participant

    @shanebp

    Thanks for that! It’s doing something different now, but not what I need unfortunately.

    What is happening now is that the Title and Content are the only thing on the page, there is no other content… not my page header, not the Buddypress profile page, nothing at all.

    Here’s the new code.

    function profile_tab_favourites() {
          global $bp;
     
          bp_core_new_nav_item( array( 
                'name' => 'Favourites', 
                'slug' => 'favourites', 
                'screen_function' => 'favourites_screen', 
                'position' => 40,
          ) );
    }
    add_action( 'bp_setup_nav', 'profile_tab_favourites' );
     
     
    function favourites_screen() {
        //add title and content here - last is to call the members plugin.php template
        add_action( 'bp_template_title', 'favourites_title' );
        add_action( 'bp_template_content', 'favourites_content' );
        bp_core_load_template( 'buddypress/members/single/plugins' );
    }
    function favourites_title() {
        echo 'Title';
    }
    
    function favourites_content() { 
        echo 'Content';
    }

    -NOTE: my buddypress templates are all inside a directory called “buddypress” on root, hence the “buddypress/members/single/plugins” not “members/single/plugins”.

    Any known reason for this behaviour?

    #184006
    danbp
    Participant
    #184005
    shanebp
    Moderator

    Try changing this:

    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘buddypress/members/single/plugins’ ) );
    

    To this:

    bp_core_load_template( 'members/single/plugins' );

    #184003
    danbp
    Participant

    This filter will remove any members count everywhere. Goes into bp-custom.php or theme’s functions.php

    add_filter ('bp_get_total_member_count', '__return_false');

    Now you see a count with zero. But this count is hardcoded in a span. So you can hide this with css:

    #activity-all span, 
    #members-all span{
    	display:none;	
    }

    See html/css details in index.php of each folder in bp-templates/bp-legacy/buddypress/

    #184002
    saturdaysound
    Participant

    Hello!

    I’m having trouble with getting my content to work when adding a new tab to the profile page. Here’s my code:

    
    function profile_tab_favourites() {
      global $bp;
      bp_core_new_nav_item( array( 
        'name' => __( 'Favourites' ), 
        'slug' => 'favorites', 
        'screen_function' => 'favourites_screen', 
        'position' => 40 ) 
      );
    
      function favourites_screen() {
        //add title and content here – last is to call the members plugin.php template
        add_action( 'bp_template_title', 'favourites_title' );
        add_action( 'bp_template_content', 'favourites_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'buddypress/members/single/plugins' ) );
      }
    
      function favourites_title() {
        echo 'Title';
      }
    
      function favourites_content() {
        echo 'Content';
      }
    }
    add_action( 'bp_setup_nav', 'profile_tab_favourites' );

    Adding the tab works great, but my screen function doesn’t work at all. infact, when I click on my tab I just get 404’d and there’s no content echoing at all.

    I have searched and searched for an answer everywhere and I can’t find anyway to figure this out. I would love some advice.

    If you need me to supply anything, just let me know!

    Thanks!

    ajm113
    Participant

    Hi I just migrated my site to a new server, and everything works fine and all, but not it appears BP-Album is broken, and will no longer let me upload photos or make changes to avatars.

    I get this nasty error when ever I log into wordpress admin.

    Your sever does not meet the minumum requirements to run Bp-Album, this means the plugin may not function correctly. Please check that you have the required WordPress and BuddyPress versions, as well as up to date versions of PHP, MYSQL and the GDLib.

    Server Specs:
    PHP 5 suPHP
    MySQL 5.5
    Wordpress 3.9.1
    BuddyPress 2.0.1
    Apache 2.2.27

    Any help would be appreciated, thank you! 🙂

    tormorten
    Participant

    Hi,

    I don’t know if this is a BuddyPress bug or something in my own code, but I’ve been struggling with this for a couple of weeks.

    I create a new, hidden, group as per usual. Everything good all the way so far.

    After this I go to wp-admin to use the “Groups” option page. I can’t seem to find the group anywhere. I try making it a public group (I can manage it because I still have it open in another tab in my browser). Still doesn’t show up.

    On this installation I have almost 200 other hidden groups that show up just fine. Does anyone have any idea why this may be?

    I’d greatly appreciate a response to this!

    Thanks,
    Tor

    #183994
    ariane1001
    Participant

    Hi, it was the theme. after updating it everything worked again.

    If you look for information about updating you find an old post that says you have to deactivate buddypress before updating. But when you do that, and your theme is using parts of buddypress this will nog work and give the white screen.
    It would be nice if the info would be more up to date.

    #183992
    mrknutsson
    Participant

    Hello,

    I’m using BuddypPress 1.6.4 with WordPress 3.5.1

    I want to upgrade my BuddyPress 1.6.4/WordPress 3.5.1 to BuddyPress 2 and WordPress 3.9.1 but cant find any information how to do the upgrade. In the codex there is information about how to upgrade from older versions of BuddyPress to 1.6. http://codex.buddypress.org/getting-started/upgrading-buddypress/ but no info about how to go from there to BuddyPress 2..

    Also, there is no info in the plugin page in the admin panel next to the BuddyPress plugin about any new versions.

    Anyone with more info about this or experience of upgrading from BuddyPress 1.6 to 2?

    Thanks / Marcus
    http://www.musiklararportalen.se/

    Anonymous User
    Inactive

    Hi,

    Depending on the theme you use (regular WordPress theme, BP Default or a child of it, or a standalone BuddyPress theme), you can override some templates to achieve your goal.

    Have a look at the codex starting with this page : https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    If it’s a regular WordPress theme, then you can can add a buddypress folder in it and copy these templates into it respecting the ‘tree’ :
    – bp-templates/bp-legacy/buddypress/activity/index.php
    – bp-templates/bp-legacy/buddypress/members/single/activity.php

    Once done, you should have :
    – yourthemefolder/buddypress/activity/index.php
    – yourthemefolder/buddypress/members/single/activity.php

    Then into these two files search for bp_get_template_part( 'activity/post-form' ); and you should see a line above an if statement containing is_user_logged_in().... Replace is_user_logged_in() by bp_current_user_can( 'theminimumcapability' )

    where theminimumcapability is the the role capability you’re targeting. See the WordPress codex to define it : https://codex.wordpress.org/Roles_and_Capabilities

    #183986
    Anonymous User
    Inactive

    Hi,

    You can use the Group Extension API to build your own group area : https://codex.buddypress.org/developer/group-extension-api/

    Morgan Kay
    Participant

    I want to add a menu item to the groups page.

    I have found plenty of information about how to use bp_core_new_nav_item() to add menu items to the profile page, and pages such as this http://themekraft.com/blog/customize-profile-and-group-menus-in-buddypress/ that explain how to add and reorder menu items on the groups page, but I haven’t been able to find anything about how to add a menu item to the groups page.

    Does anyone know how to do this?

    #183981
    hragupathi
    Participant

    Hello,

    new to buddypress and attempting to add some user profiles to our company website.

    Is there a way to set permissions on buddypress? We are trying to add user profiles to our company site. What we want to do is allow users(our customers) to sign up, but we want to restrict the ability to view members and send private messages to only the admins. How would I go about doing this in buddypress? When I take away the members page, the ability to see/edit/view profiles is taken away as well.

    RikusWhite
    Participant

    Hey guys.

    I’m new to buddypress and have found it great to work with on my site as I am starting a paid membership community for business users.

    I do have one problem that still hangs over my head. I am trying to restrict some member types from posting activities from their profiles. This will only be available for some users.

    Is there a plug-in that I require? Am I missing something in the setting somewhere?

    Please help out.
    Thanks.

    #183977
    Chris Perryman
    Participant

    Just wanted to follow up…we did come up with a solution for this in case any one else is looking for it.

    Full details are now on my blog at Revelation Concept.

    function rc_buddypress_profile_update( $user_id ) { 
     
         $admin_email = "YOUR-EMAIL@DOMAIN.COM";
         $message = sprintf( __( 'Member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; 
         $message .= sprintf( __( 'Color: %s' ), bp_get_profile_field_data('field=Color') ). "\r\n\r\n";
         wp_mail( $admin_email, sprintf( __( '[YOUR SITE] Member Profile Update' ), get_option('blogname') ), $message );
     }
     
     add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
    paton400
    Participant

    Now we are talking very basic WordPressing here.

    Go to the appearance/menus screen and from there it’s pretty self explanatory.

    click on ‘Create a new menu’, call it whatever you want, then select what pages you would like to appear in the menu.

    Underneath the list of WordPress pages you see a tab full of Buddypress options that can also appear in the menu, one of which is the log-in/log-out button.

    Regards

    paton400
    Participant

    You need to add it to one of your menus or as a widget.

    Go to appearance/menus – then you can select a range of Buddypress options to add to your nav bar for both logged in or logged out users. Click the Buddypress tab (below the pages tab). If you don’t have a nav bar then create a new one.

    Otherwise appearance/widgets – and place the login widget somewhere!

    Regards

    #183962
    simonwillan
    Participant

    BuddyPress version: 2.0.1
    Wordpress version: 3.9.1

    Hi all,

    As part of an ongoing project, the wp_bp_friends table for us is of no use as we have our own system in place. That being said, the function bp_add_friend_button(); is regularly used and rather than changing all occurrences of this function to a custom one, we’d like to just override the function. I have noticed bp_get_add_friend_button(); has an apply_filter at the bottom so I can filter it, however filtering doesn’t help as that function still executes “bp_is_friend()” and “bp_is_friend()” tries to access the wp_bp_friends table (which has a completely different structure now)

    Is there anyway I can override bp_add_friend_button(); and stop it from running any of the BP based content so we can just generate our own without having to replace the function call all over the project?

    theworldsstage
    Participant

    Hi,

    I installed Buddypress into my website which is a Gabfire Theme and is supposed to handle buddypress…..buddypress friendly.

    I am NOT a tech guy but understand basics.

    Once it is installed I cannot find a log in or regsister bar/tab at the top of the page for people to sign up.

    There are other plug ins that were installed previously. Could that be a problem and if so, what is the productive solution that I can do?

    Thank you all.

    #183953
    danbp
    Participant

    Anyway an image says more as words (in our case).

    Check if this plugin can help you:
    https://wordpress.org/plugins/buddypress-profile-tabs/

    #183952
    msegroves
    Participant

    WordPress 3.9.1, bbPress 2.5.4, BuddyPress 3.0.1

    I’m still learning BP and building my site. All my users have been added by Admin and I’m testing, debugging. But when I login as a non-admin user, that user cannot edit their profile. Trying to do so produces this error message:

    Permission Denied

    Not Found / No Access

    The page you are looking for either does not exist, or you do not have the permissions to access it.

    Any pointers would be appreciated.

    #183942
    dromy
    Participant

    Thank you for the quick response.

    when adding groups and more fields the groups and fields are displayed on the member page as a table.
    I would like to create a tabs display to the member information (my created fields and group) when each group of (ex.wp-widget base) div\table is displayed on a different tab.

    hope I am clear.
    on the admin or edit cases I do not want to touch for now. This relate only for the view buddypress member profile as a member or as anonymous.

    (and sorry, I meant how on topic and not hot)

    #183939
    danbp
    Participant

    On xprofile component, the default field group is called Name and contains only one field who will contain the username. This group is already tabed on a profile page and is the only group field who appears on the register page.

    Now, on the xprofile admin you can add as many fields and group fields you want, and you can set each field to different visibility.
    These new field can be grouped and each group you create will automatically be tabed on a profile page.

    https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/

    If you mean showing groups on the profile, this also made automatically by BP. On each profile, you have (if exist) the groups the member belongs to.

    If all this is not what you mean, be more explicit 😉

Viewing 25 results - 25,051 through 25,075 (of 94,569 total)
Skip to toolbar