Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 17,776 through 17,800 (of 68,918 total)
  • Author
    Search Results
  • #176286
    modemlooper
    Moderator

    You do not need to “integrate” BuddyPress with a theme in the current version. What theme are you using?

    #176284
    modemlooper
    Moderator

    What an exhaustive way to get “post to someone’s profile functionality”. This could have easily been done using the core activity stream without the need to remove and then replace with almost identical code.

    You can add customized activity items with a custom post form. As for changing Activity text to Wall that is simple to edit as well. Adding custom template files for the activity isn’t a good idea as they can be altered in a theme.

    Create custom activity using this function https://codex.buddypress.org/developer/function-examples/bp_activity_add.

    #176279
    rianhall
    Participant

    I am still having this problem and REALLY need a solution. I’m not a developer so ca anyone walk me through what I need to do?

    so far I have added this to my functions.php

    // to exclude only defined roles in the Buddypress Members LOOP
    
    function exclude_by_role($exclude_roles) {
    
    $memberArray = array();
    
    if (bp_has_members()) :
    while (bp_members()) : bp_the_member();
    $user = new WP_User( bp_get_member_user_id() );
    $user_role = $user->roles[0];
    foreach ($exclude_roles as $exclude_role) {
    if ($exclude_role==$user_role) {
    array_push($memberArray, $user->ID);
    break;
    }
    }
    endwhile;
    endif;
    
    $theExcludeString=implode(",",$memberArray);
    
    return $theExcludeString;
    }
    

    Then added this to my member-loop.php

     
    $excluded_roles = array ('administrator', 'author', 'subscriber'); // this can be any roles you have set up
    	if (bp_has_members( 'exclude=' . exclude_by_role($excluded_roles) . '&' . bp_ajax_querystring( 'members' ) ) ) : 
    

    Unfortunately, no luck. It is not excluding any of the three roles noted above.

    #176278
    davidassange
    Participant

    Oh, and am using the latest WordPress and BuddyPress.

    #176276
    sundev
    Participant

    happy new year everybody.

    Congratulations to us @mfmsw2youth. to get this solved.
    @hnla. thanks for your contribution.

    @buddypress newbies: Please ensure to put the code in your theme-child to keep the changes in the feature update.

    And of cause finally the BOSS himself 🙂 @henrywright-1. Thank you very, very much for the great code. It worked greatly.

    #176273
    johnnymestizo
    Participant

    I couldn’t get it working with the latest buddypress – just whitescreened my buddypress pages. (header still loaded.) will get back to you with some debug info…

    #176261
    e-regular
    Participant

    Hi BuddyPress,

    I am in the same boat as ProfC also – search functionality for BBPress forums is no longer functioning since I installed buddypress 1.9 with WordPress 3.8 – the URL does not change to http://domainname/search/blahblah when I hit submit.

    Kind regards,
    Henry

    #176260

    In reply to: Double message button

    e-regular
    Participant

    Hi BuddyPress support,

    I am having exactly the same problem. My website is http://plantswap.com.au – buddypress 1.9 with WordPress 3.8 install.

    All Private Messages sent twice.

    I am not using any other chat or PM plugins.

    Cheers,
    Henry

    #176258
    modemlooper
    Moderator
    #176255
    hughshields
    Participant

    With 1.8.1 I created a new page called “Clubs” and pointed the Buddypress Groups page to it so that the URL and breadcrumb now appear as “Clubs”. So this problem is now solved.
    I would like to know the best way to change the word “Group” to “Clubs” on the rest of my site (Member Profile Tab etc). I see some very old threads that suggest using a language translation file but wanted to ask for the latest recommendations.

    #176248
    sunnyj
    Participant

    @Henry
    hope it will be okay writing it like this for clearity in case of anything happen? Also do I need to put the php tag as shown below:

    <?php

    // filter gender field

    function custom_activity_text_change_avatar( $entry, $user_id ) {
    $gender = bp_get_profile_field_data( ‘field=Gender&user_id=’ . $user_id );

    if ( $gender == ‘Male’ ) {
    $entry = sprintf( __( ‘%s changed his profile picture’, ‘buddypress’ ), $userlink );
    } else if ( $gender == ‘Female’ ) {
    $entry = sprintf( __( ‘%s changed her profile picture’, ‘buddypress’ ), $userlink );
    } else {
    // the user hasn’t told us if they are male or female so do nothing
    }
    return $entry;
    }
    add_filter( ‘bp_xprofile_new_avatar_action’, ‘custom_activity_text_change_avatar’, 10, 2 );

    ?>

    #176242
    Henry
    Member

    Try adding this to your theme’s functions.php file:

    function custom_activity_text_change_avatar( $entry, $user_id ) {
        $gender = bp_get_profile_field_data( 'field=Gender&user_id=' . $user_id );
    
        if ( $gender == 'Male' ) {
            $entry = sprintf( __( '%s changed his profile picture', 'buddypress' ), $userlink );
        } else if ( $gender == 'Female' ) {
            $entry = sprintf( __( '%s changed her profile picture', 'buddypress' ), $userlink );
        } else {
            // the user hasn't told us if they are male or female so do nothing
        }
        return $entry
    }
    add_filter( 'bp_xprofile_new_avatar_action', 'custom_activity_text_change_avatar', 10, 2 );

    Notes:

    1. Your profile field should be called Gender and it should be a radio button. Options should be Male or Female

    #176241
    sunnyj
    Participant

    I will like to change it to HIS for male,HER for female and their for female I’m comfortable with that.As Henry explain above i think using a filter code like this will do the work only if i know how to correctly apply it in the buddypress core. Please lend your support. Thanks

    “if ( is a male ) {
    // the filter will be ‘his’
    } else if{
    //is a female, the filter will be ‘her’
    }
    else {
    // a group, e.g company; the filter will be ‘their’
    }”

    #176239
    sunnyj
    Participant

    Example:
    “themeethurpe changed their profile picture 4 days, 12 hours ago”

    In the above line of activity “themeethurpe” is a username of a guy who changes his profile picture, but as you can see, “their” above was surpose to be a singular pronoun “his” referring to a man not two or group of people. The same thing happens either for man or woman, I just wish buddypress could differentiate a man from woman in the activities stream using profile information just like facebook and other social network site instead of using plural pronoun “THEIR” for all.

    #176234
    sunnyj
    Participant

    Kindly help out Henry in fixing this filter my problem is not different I have created a profile field Namely gender using radio button in buddypress xprofile members now have opportunity to select their gender male or female. Happy new year friends.

    #176229
    modemlooper
    Moderator
    #176227
    nscycwa
    Participant

    I attempted to look everywhere for this including the forums. I noticed on the the customizr theme forums he is planning on making this work. However I do not know how long that will take.

    In the mean time is there a theme out there similar to this theme, that buddypress ready?

    #176221
    silverchief
    Participant

    I’ve got this working for the most part on a testing site. I’m using mapped domains that use WordPress’ network functionality.

    I’ve got Buddypress working, using the same community throughout the network, but it’s tricky. You have to configure buddypress the same under each site. It works, but I’ve got one small problem. When you create a group under one “site”, the group avatar doesn’t show up when you view it in the other domains.

    For example, my base domain is FanCentral.co:

    http://fancentral.co/groups/carolina-panthers/ (see the avatar)
    – this was created under this base domain

    http://charlotte.fancentral.co/groups/carolina-panthers/ (no avatar)

    http://fancentral.co/groups/charlotte-hornets/ (no avatar)
    – this was created under the “Charlotte” subdomain

    http://charlotte.fancentral.co/groups/charlotte-hornets/ (see the avatar)

    Compare the two:
    http://charlotte.fancentral.co/groups
    http://fancentral.co/groups

    And one that hasn’t been configured yet:
    http://newyork.fancentral.co/groups

    #176218
    Roger Coathup
    Participant

    That’s more of an s2member question than a BuddyPress one – so, better asked on their forums.

    Anyway:

    In your PHP template for displaying the user, you can add the following code:

    echo get_user_field('s2member_access_label', $user_id);

    and to get the $user_id for the displayed user, you can use:

    global $bp;
    $user_id = $bp->displayed_user->id;
    #176183
    kenrichman
    Participant

    @bmk0220 What you are asking for is exactly what I need as well. I would love to see this in a future Buddypress. Without it, Multisite is limited for use with Buddypress.

    Have you made any progress? Have you tried, for instance, Ron Rennick’s bp-multi-network plug-in (link above)?

    #176171
    itinigo
    Participant

    All it took for me to figure this out was asking the question. A further search revealed that because I am logged in to wordpress/buddypress already I am being directed away from the register / activate pages. If I disable maintenance mode and logout I can see the pages fine.

    Cheers All.

    #176157
    Shmoo
    Participant

    What I did is I changed the form + validation stuff inside the template files to customize my own forms and validation process.

    First of all I didn’t like the default validation process that BuddyPress is using where you have to push Submit and then the script checkes if every field is filled correctly, if not it pushes a text_message into the page through an Action.
    Result, often the error message shows up at the top of the page where you aren’t looking and not at the form where the problem occurs, and even more important it’s an extra page-load to get this message into the page.

    I didn’t like that so I left everything of that untouched as a back-up system and simply used my own ( Zurb’s ) validation JavaScript to check while writing if the fields are correct.
    Plus this JavaScript disables the Submit buttons if a form or field is not valid.

    This is a screenshot of the Profile Settings page but all forms work the same so you can just diff into the template files and add alter them.
    BuddyPress custom form + validation

    The script I use is part of Zurb’s Foundation Framework so if you don’t like to work with Frameworks like me you have to strip all the needed code out of it.
    http://foundation.zurb.com/docs/components/abide.html

    There are probably also scripts like this one to be found online.

    #176147
    stoi2m1
    Participant

    When I found Buddypress Media I was 50% on the way to having my own custom component developed and it sounded impressive but… I was hoping for so much more and when i fell short. For starters, I have my own custom player for the site, couldnt tie into well, and playlists where hurting. Ill just stop there.

    I just decided to continue building my own so… back to my question. Trying to add in custom taxonomy and post meta into the URL.

    I used the buddypress skeleton component to build my music component. Id say its about 80% done now. Really just looking for help to getting custom taxonomy and possibly post meta into the music component url.

    Thanks,
    Jesse

    #176140
    Henry
    Member

    Have you tried BuddyPress Usernames Only? https://wordpress.org/plugins/buddypress-usernames-only/

    #176130
    b a
    Participant

    I suggest looking inside Buddypress media

    here is already done what you trying to do, so hope it helps

Viewing 25 results - 17,776 through 17,800 (of 68,918 total)
Skip to toolbar