Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,201 through 8,225 (of 69,109 total)
  • Author
    Search Results
  • #264961

    In reply to: Filtering activity

    Venutius
    Moderator

    You probably just need to copy the content of your old child theme buddypress directory into your new childtheme directory.

    #264949
    danbp
    Participant

    Please read the forum before asking… A similar question came up yesterday with an answer to

    This modification not work… I don’t understand why

    customizing profile-header

    #264948
    danbp
    Participant

    Copy the whole content of that example file into bp-custom.php.

    You can also transform it into a mu-plugin by just adding it some header information.

    Once done, you can test the tabs and try to understand how they work. And then apply your own preference.

    #264946
    berthaboy73
    Participant

    OK – I’ve just found this:

    add_action('bp_core_activated_user', 'kleo_add_member_activity');
    function kleo_add_member_activity($user_id)
    {
    add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s"));
    }

    on https://seventhqueen.com/blog/buddypress/show-users-members-directory-right-account-activation.html

    So will just have to import user data again (using https://codection.com/import-users-csv-meta/) and modify the code to add that activity record.

    #264941
    danbp
    Participant

    @possip,

    what i wanted to say was that if you use the allow header image option, BP will use a different header template. When you don’t use this option, BP will use member-header.php

    The’re two component who use header’s: members and groups.

    To handle groups header, it is exactly the same logic as for the members header.
    In the group directory (bp-templates/bp-legacy/buddypress/groups), you have 2 files named group-header.php and cover-image-header.php where you can handle goup header customization.

    #264939
    danbp
    Participant

    Try this plugin:
    https://github.com/r-a-y/buddypress-usernames-only

    For the “why”, perhaps it is because “chat” and “forum” have their own logic. Both aren’t part of BuddyPress.
    Note also that there is no obligation to use all the things appearing on the templates. If you don’t want them, symply remove or hide them.

    For example, the names who appear on profile header are effectively different. Why would you need to use both, that’s nonsense! I guess this is only in so you can choose which one is better for your project. And it is so because (probably) it is better and easier to choose between something you see thant between something theoretical exposed or detailed in code comments…

    Note that my remark concern only the appearence, not the internal fonctionality of username vs.displayname or nicename.

    #264937
    shanebp
    Moderator
    #264894
    Droidism
    Participant

    Environment:
    PHP 7.0.3
    Apache webserver
    MySQL v5.5.49
    WordPress v4.7.3
    BuddyPress v2.8.2
    Theme: Emmet Lite v1.5.0
    Other plugin: none

    Hi,

    I have installed BuddyPress on a fresh local install and used the Emmet Lite theme.

    My problem is that when I create a user, login to the site using a completely different browser, with the cache purged and browsing history removed on start, and go to the user profile, I do not have the option to change the profile visibility. The dropdown for the Name is not showing at all.

    Please see settings-profile-visibility on the BuddyPress codex.

    When you view the image you will see “Base -> Name” and “Visibility -> Everyone” in a dropdown. In my install the “Visibility -> Name” is not a dropdown and not selectable attall.

    Thanks in advance for helping me figure this one out.

    #264893
    Henry Wright
    Moderator

    In that case there’s a few options. You could try to find a plugin. If a plugin isn’t available you could suggest the feature. Alternatively you could hire a developer.

    Hope this helps!

    #264888
    danbp
    Participant

    General knowledge about Groups

    Groups

    Your question is really too vague (a way to reorganize the groups). Groupss can already be filtered by Last Active (default), Most Members, Newly Created, or Alphabetical.

    If not enough, you need to give more details about what you want.

    #264886
    danbp
    Participant
    #264866
    Henry Wright
    Moderator

    You can filter using bp_after_has_members_parse_args. Take a look here for examples:

    Using bp_parse_args() to filter BuddyPress template loops

    #264865
    Henry Wright
    Moderator

    Can you show us the full path you have to your child theme’s member-header.php file?

    It should be your-theme/buddypress/members/single/member-header.php

    #264845
    Hugo Ashmore
    Participant

    Note: Please do not provide a .php fix. I edited the php a couple days ago to apply a fix (unrelated to this one) and it crashed my entire site. I will not be editing the php.

    I suggest then that you consider contracting a developer to do this for you or contact memberpress to provide a solution.

    We are a volunteer help forum for buddypress, the best we can really do is provide code that might help you but doing that while bearing in mind offering code is more than should be expected on these sorts of forums.

    #264828
    Slava Abakumov
    Moderator

    Just sent a new issue!

    BuddyPress Newsletter #25 – BP 2.9 schedule, new BP.org redesign ideas, promo etc

    https://www.getrevue.co/profile/bpmail/issues/25-bp-2-9-schedule-new-bp-org-redesign-ideas-promo-etc-49050

    #264802
    zo1234
    Participant

    That seems beyond the scope of buddypress, you may want to search for a gamification plugin. Also, don’t hold your breath on getting an answer here. For such a popular plugin, the support sucks and I’m becoming less and less of a fan of buddypress. The solutions aren’t straight forward, it’s “Here modify 20 files and create this new child theme and create 1000 lines of code”. Not a very user-friendly plugin compared to others.

    #264772
    elijeh
    Participant

    I looked at the description of that before and thought it seemed to be aimed at matching people with similar characteristics – which is what I already have.

    I want something that allows a member to say he/she wants a match to characteristics that are different. For example, she doesn’t smoke but is ok if he does. Or he drinks but wants her to be a person who doesn’t. Or he is 6’3″ tall and is looking for someone who is shorter than that.

    My understanding of what I’ve currently got is that it takes one member’s profile and matches it with members who have identical profiles (except for the “man looking for a woman” field).

    Do you know if match-me-for-buddypress allows non-identical matching?

    #264771
    Venutius
    Moderator

    Take a look at https://wordpress.org/plugins/match-me-for-buddypress/ I think this is a good start.

    #264767
    shanebp
    Moderator

    You need to contact the creator of that plugin: buddypress-who-clicked-at-my-profile

    #264754
    maccast
    Participant

    I was dealing with this problem too. It might not be exactly what you’re looking for, but in my case I just decided to hook into the BP signup, extract the full name, split it at the first space and then update the WordPress ‘first_name’ and ‘last_name’ user metadata fields with the results.

    Here is the code you can add to your functions.php or custom plug-in:

    // define the bp_core_signup_user callback 
    function ac_bp_core_signup_user( $user_id ) { 
        // make action magic happen here...
        $fullname = bp_get_member_profile_data( array( 'field' => 'Name', 'user_id' => $user_id ) );
       //split the full name at the first space
       $name_parts = explode(" ", $fullname, 2);
    
       //set the firstname and lastname for WordPress based on the BP name
       //firstname
       if( isset($name_parts[0]) )
            update_user_meta( $user_id, 'first_name', $name_parts[0] );
    
       //lastname
       if( isset($name_parts[1]) )
           update_user_meta( $user_id, 'last_name', $name_parts[1] );
    
       //not needed for an action, but I always like to return something
       return $fullname;
    }
    
    // BuddyPress save first name last name to WP profile on signup 
    add_action( 'bp_core_signup_user', 'ac_bp_core_signup_user', 10, 1 );
    mikeboltonca
    Participant

    Shane, I wonder if you can help me stitch together the sequence of events between clicking “Post” on the “What’s new?” form and the moment that groups_is_user_member() is called.

    I’m wondering if there might be an intermediary step I could modify so it doesn’t perform the member check in this particular case.

    I still need groups_is_user_member() intact to keep non-managers out of the Management group, so hacking that function directly (or filtering it across the board) won’t do the job for me.

    Thanks again for your insight. BuddyPress is a gloriously complex system, and it takes a long time to reverse-engineer it by reading docs and looking through the files.

    #264750
    Henry Wright
    Moderator

    Thanks for the reply, so you’re saying I should rename this field to “First Name” and create a secondary field for “Last Name” ?

    That’s one approach you could take.

    If there is nothing special about the field, is there a hook or filter where I can replace the field entirely and map them to first / last name fields in WordPress?

    I think not unfortunately. You could request one be added by opening a ticket on Trac

    shanebp
    Moderator

    Yup, it’s failing on groups_is_user_member() in bp-groups\bp-groups-functions.php.

    You could hack that function, but I think what you really need is a filter hook on the return.
    Then your task would be simple.

    groups_post_update() in bp-templates\bp-legacy\buddypress-functions.php uses groups_is_user_member()

    You could create an enhancement ticket on trac.

    #264742
    exentric
    Participant

    For anyone else looking for this ….. and I know there are a lot of you because I found hundreds of similar posts , here it is link I think that this functionality is very very important to buddypress , and hopefully it will be added and extended (i will be posting what I add to this functionality here) , @danbp there is no way I could believe that no one else needed this function

    #264738
    AiratTop
    Participant

    PHP Notice: Trying to get property of non-object in /site_path/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 534

Viewing 25 results - 8,201 through 8,225 (of 69,109 total)
Skip to toolbar