Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,901 through 8,925 (of 94,562 total)
  • Author
    Search Results
  • anrahulpandey
    Participant

    Hi,

    I have created a group and want to add user to it automatically whenever the admin create the new user from WordPress user dashboard. I am using the following code snippet –

    function automatic_group_membership_bp($user_id)
    {
        //if no user id return
        if (!$user_id) {
            return false;
        }
    
        // 1 is the group id
        $group_id = 1;
        //Get user meta to find the role
        $user_meta = get_userdata($user_id);
        $user_roles = $user_meta->roles;
        //only add user to group if it subscriber
        if (in_array("subscriber", $user_roles)) {
            $update_bp_user_last_activity = bp_update_user_last_activity($user_id, date("Y-m-d H:i:s"));
            //Buddypress hook to add member to a group
            $status = groups_join_group($user_id, $group_id);
        }
    
    }
    
    add_action('user_register', 'automatic_group_membership_bp', 10, 3);

    I am adding a user with role subscriber to group. $status returns 1 that means the user is getting added to the group. I can even see the user in http://siteurl/members list. But I cannot see the user in a group. I am not sure what I am missing here, can you please help me out.

    Asharam Seervi
    Participant

    Hello Community,

    Loved new version, and still exploring BuddyPress. Currently, I’m facing an issue, while I don’t want to show “activity” of any of users to anyone. How to hide these activity from any member, while their profile and listings must be shown as displaying there.

    When, I check “Activity Streams” from the dashboard, it gets hidden as expected but @username there also got hidden, which I really not wanted. Kindly help.

    #273130
    Varun Dubey
    Participant

    It will help you to set default template pack for the theme, little confusing for now as site admin’s choices will not work inside BuddyPress Option after defining add_theme_support.

    #273129
    Varun Dubey
    Participant

    You can define following

    add_theme_support('buddypress-use-nouveau');

    or

    add_theme_support('buddypress-use-legacy');

    #273128
    devoctopix
    Participant

    Yes I understand!

    “buddypress-use-legacy” ? I can not find anything in the documentation about this. Is it a constant?

    Thanks a lot for your feedback!

    #273127
    Varun Dubey
    Participant

    @devoctopix it will be hard to keep support for both templates in a single theme. You can force Legacy via ‘buddypress-use-legacy’ on existing themes.

    #273125
    devoctopix
    Participant

    Hi,

    I was wondering if it was possible to build a theme compatible with both existing template packs (nouveau and legacy).

    For MYTHEME/buddypress/members/members-loop.php can we have MYTHEME/buddypress/bp-nouveau/members/members-loop.php and MYTHEME/buddypress/bp-legacy/members/members-loop.php ?

    And how to manage the fact that the theme can be used for BP3.0+ and BP2.9.X ?

    Thanks in advance!

    rhwentworth
    Participant

    In BuddyPress 3.0.0, there is a bug insofar as if a registration form is submitted and a multi-select or checkbox is involved, and multiple options are present, the registration fails with a run-time error as follows:

    Warning: trim() expects parameter 1 to be string, array given in /home8/fromchao/public_html/buddypress/wp-content/plugins/buddypress/bp-members/screens/register.php on line 93

    In my local copy, I patched line 92 to add a check to see if an what was returned is an array, and this eliminated the error for me. Might even be the right fix, as the individual returns in an array shouldn’t need trimming.

    if ( isset( $_POST[ ‘field_’ . $field_id ] ) and !is_array( $_POST[ ‘field_’ . $field_id ] ) ) { // FIXED!!
    $_POST[ ‘field_’ . $field_id ] = trim( $_POST[ ‘field_’ . $field_id ] );
    }

    This problem occurred on a dev test site running WordPress 4.9.6. But, the problem and its cause seem pretty obvious, and not a function of WordPress itself. Just needs to be fixed in the official distribution.

    ajaxthemestudios
    Participant

    Hi

    This is how it happened. We got an email from registered members that they are being spam. Another member was sending them SPAM messages.
    The mail sent to them contained the name of the member so we searched for it. We also got the spammer’s account username and link by checking the affected members messages directly under their profile page on the frontend. The spammer has a profile page already. However, the username could not be found in the users section of the backend.
    Then we checked users that have not activated their account or received the activation email through a plugin named Unconfirmed.
    That was when we found the spammer info meaning the spammer has not activated his/her account yet but is already interacting with the community.
    That I cannot explain why it happened. It seems even though the user has not activated his/her account, he/she is already recognized by buddypress.

    Regards

    #273118
    Varun Dubey
    Participant
    jasbirs
    Participant

    <?php echo bp_core_fetch_avatar ( array( ‘item_id’ => $logged_user_id, ‘type’ => ‘full’, ‘html’ => TRUE )); ?>
    But this is working with single wordpress site

    #273106

    Topic: Codes

    in group forum Installing BuddyPress
    joaovitorb
    Participant

    Hi, What is the codes for login and registration?

    Can I change the layout of BuddyPress just making a css edition?

    Dggerhart
    Participant

    Hi,

    I’m reading lots of posts that are a 18 mo’s to more than two years old. So I thought to re-ask the question, hoping for some more current advice.

    How can I stop Spam Users from registering?

    WordPress 4.9.6 running Idyllic theme.
    BuddyPress Version 2.9.4
    Site https://insideouthope.org

    What’s the plugin, combination of them or other treatment we can deploy that will best insulate our real community from vermin?

    My inclination is to blacklist/whitelist domains somehow.

    Thanks in advance for your considered response(s).

    #273104
    ldellc
    Participant

    BuddyPress is missing member edit activity/profile features. I’ve tried deleting and reinstalling BP. I even deleted on server, but it didn’t work either.

    #273102
    #273084
    Varun Dubey
    Participant

    @mckennapoole checked at your site, You have added custom css to hide mandatory fields

    remove it from custom css section

    #buddypress .standard-form #profile-details-section {
        display: none;
    }

    After that, it will work
    I have registered at your site and it worked
    https://drive.google.com/a/wbcomdesigns.com/file/d/1oLVWUD_vFJgHffHu9nXEu2x03MFvsRW5/view?usp=drivesdk

    #273071
    Venutius
    Moderator

    Is the student sidebar widget a learndash add-on, or are you using the BuddyPress Members widget?

    webfacemedia
    Participant

    I have a custom buddypress friends list page that displays the friends videos and I’ve set my per_page to 50. How can I paginate the friends list in the event a user has more than 50 friends?

    <div class="dashboard-wrapper">
    <h1>My Friends' Videos</h1>
    <a href="?part=default" class="button">Dashboard</a><br>
    <?php
    $user_id = bp_is_user() ? bp_displayed_user_id() : bp_loggedin_user_id();
    
    $args = apply_filters('bp_show_friends_args', array(
        'user_id' => $user_id,
        'type' => 'active',
        'per_page' => 50,
        'max' => $limit,
        'populate_extra' => 0
            )
    );
    
    if (bp_has_members($args)) {
        ?>
        <ul class="bpsf-members">
            <?php while (bp_members()) : bp_the_member(); ?>
    
                <li class="bpsf-member">
                    <?php bp_member_name(); ?>
                    <div class="item-avatar">
                        <a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name(); ?>">
                            <?php bp_member_avatar($avatar_args) ?><?php display_friend_colors(bp_get_member_user_id()); ?>
                        </a>
    
                    </div>
                    <?php do_action('bp_show_friends_after_friend_avatar', bp_get_member_user_id()); ?><div class="cleared"></div>
                    <div class="videos">
                        <ul>
                            <?php
                            $args = array(
                                'author' => bp_get_member_user_id(),
                                'orderby' => 'post_date',
                                'order' => 'DESC',
                                'post_type' => 'member_video',
                                'posts_per_page' => -1 // no limit
                            );
                            $current_user_posts = get_posts($args);
                            foreach ($current_user_posts as $post) : setup_postdata($post);
                                $thumbnail = get_post_meta(get_the_ID(), 'thumbnail');
                                //d($thumbnail);
                                ?>
                                <li>
                                    <a href="<?php the_permalink(); ?>"><img src="<?= $thumbnail[0] ?>" /></a>
                                    <p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
                                </li>
                                <?php
                            endforeach;
                            wp_reset_postdata();
                            ?>
                        </ul>
                    </div>
                    <div class="cleared"></div>
                </li>
    
            <?php endwhile; ?>
        </ul>
    <?php }
    ?>
    jameshh93
    Participant

    Sorted using the code from :https://buddypress.org/support/topic/private-message-friends-only/

    One question will the messages still be stored in the database even if the message isnt sent? I dont want these spammers filling up my database with junk..

    🙂

    #273047

    In reply to: post via email?

    Paul Wong-Gibbs
    Keymaster

    BuddyPress does not offer reply to comments by email.

    #273044

    In reply to: members directory

    Varun Dubey
    Participant

    @emmanuel1234
    You can check

    Members Loop


    It has explained how to modify loop filtering by Xprofile fields

    #273042

    In reply to: Change words

    Venutius
    Moderator
    #273041
    ivailo333
    Participant

    How can I change these phrases given in the fields?
    WordPress – v. 4.9.5
    BuddyPress – v. 2.9.4
    Site – https://puhkavi.com/
    Edit

    ajaxthemestudios
    Participant

    Hi

    I discovered that users (spammers in this case) can send private messages and spam other users even though their accounts are yet to be activated by WordPress.
    Is this how Buddypress is designed or is this a bug?

    Regards

    #273037
    groston
    Participant

    Thanks again for the help! This post, https://buddypress.org/support/topic/how-to-customize-the-order-of-fields-of-registration/, led me to the answer: the function bp_get_the_profile_field_name() returns the ‘friendly’ name of the field, i.e., that which is defined in wp-content\plugins\<my-plugin>\include\users\profile.php as the label parameter for the field.

Viewing 25 results - 8,901 through 8,925 (of 94,562 total)
Skip to toolbar