Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 2,176 through 2,200 (of 73,985 total)
  • Author
    Search Results
  • #323912

    In reply to: Get group ID from slug

    resortstylebeanbags
    Participant

    I don’t know why, but I have found a solution. As ‘check_slug’ worked, I just took the code from that function, amended it to return the group id instead of the slug, and included it in my function – which worked. Be good to understand why none of the other functions worked though?

    
    function ofc_add_registrant_to_group($registration, $old_STS_ID, $new_STS_ID, $context) {
      
       global $wpdb;
     
       $user_id = get_current_user_id();
    
       if (! $registration instanceof EE_Registration ) {
            // No EE_Registration, get out
            return;
        }
       
        $event_id = $registration->event_ID();
        $subgroups = get_field('event_sub_group', $event_id);
    
        $slug = $subgroups[0]->post_name;
    
        // These two lines made the difference
        $bp = buddypress();
        $group_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE slug = %s", $slug ) ); 
    
        if ( ! groups_is_user_member($user_id, $group_id )) {
           groups_join_group($group_id, $user_id);
        }
    }
    add_action('AHEE__EE_Registration__set_status__to_approved', 'ofc_add_registrant_to_group', 10, 4); 
    
    sportsfanrank
    Participant

    Using buddypress 10.1.0 and buddyx theme 4.3.3. WordPress 5.9.2 SportsFanRank.com

    Newly created group types no longer appear when creating new groups.

    When creating the group, the group types available to choose from only contain group types that were made weeks ago. The newly created group types do not appear when creating new groups, so we cannot select newly created group types.

    Any guesses as to why this may be?

    Administrator role is being used during this process.

    mikel87
    Participant

    Hello

    I am having a problem.
    I can list groups and if I click a group I got a white page and in brwoser tab shown “page not found ”
    But just when I am loggedin

    When I am logged out and click any group it will be shown and I can join groups or see the inside of groups

    Hope anybody can help me

    Page: https://netzwerk-helden.com

    thank you so much
    Michael

    #323890
    parkerspegs
    Participant

    Wordpress: 5.8.3
    BuddyPress: 10.1.0
    URL: https://learn.rebeccagordonastrology.com/

    Why can’t a user that has access to a hidden group not be able to see that group on the groups page?

    Thank you for your help.

    #323888
    ditout
    Participant

    Hi
    I have the similar cas, when I uploaded a photo, it showed a red belt as the joint photo:
    https://si3.photorapide.com/invites/photos/2022/03/148l95.jpg
    2 months before, the upload was Ok, than suddenly, it doesn’t work.
    For the upload Cover Image is OK.
    my WP is 5.9.2
    Buddypress 10.1.0
    Can someone help me ?
    thank you so much !

    #323886
    shanebp
    Moderator

    Member Types is probably your best bet. And then add some if / else code to the profile templates.

    Member Types

    #323884
    adaptec
    Participant

    I have a BuddyPress installation as an intranet for our employees. When employees quit I go in and delete under “Users”. Even though they are deleted and not showing up in the users list anymore, their login still works! How do I actually delete or deactive a user?

    #323880
    mindarch
    Participant

    Hi All,
    I am extremely new to wordpress and buddypress development. I’ve been searching the forum and trying multiple plugins to find this answer without success. I was hoping someone might be able to point me in the right direction.

    I think buddypress will be able to do what I want but I just can’t say for certain right now.

    I have been using the extended profile to allow a user to enter a bunch of information for their company product. I have created an extended profile with multiple tabs and each tab has multiple fields. that’s good

    That is for category 1. What I need to do though, is create a whole different set of tabs with multiple fields but under category 2.

    User 1 may only have the fields available for category 1 to fill out.
    User 2 may only have the fields available for category 2 to fill out.
    User 3 ma only have the fields available for category 1 AND category 2 to fill out.

    Then, it would be logged in, and visitors to site would only be able to see the profile information for the categories they are allowed to see.

    If a plugin exists that would give us that functionality, great. If it’s something I’d have to code myself (and it could be done) that’s fine also. I’ve spent 2 days and my boss is anxious for an answer that we can do this.

    Thanks

    #323877
    bastings
    Participant

    Hi all, pretty new here.
    I’m using the buddypress members widget on my frontpage and it is showing the recent registered member or the active members. I don’t want visitors to choose, i only want to show the newest members. How can i remove this option? Can it be done with a snippet or in bp-custom.php?
    Remove option

    #323874
    inetrface
    Participant

    Hi,

    i have a Listings Page where User can register and offer there service.
    Listings is to each Person where are register.
    Can i add the buddypress profil to each listings?
    Also i want to add the PM system to this listings.
    Is there a way to create this when user register and post a listings?

    cu

    seema vaidya
    Participant

    Does Buddypress will fullfull all the features of reddits

    #323859
    giuseppe2016
    Participant

    Hello friends,

    i’m creating a wide social with Buddypress.

    Having already considered all the security measures regarding wordpress (first of all registration), which are the way or best practices to avoid maliciuos code injected via publishing a post by a member (that is not manual approval of any commment of course)?

    Example: dedicated plug-in, limitation of some symbol as “bad word” (i have plugin) or others.

    Many thanks,

    Giuseppe

    #323857
    macoholder
    Participant

    Is there a way to force submissions made via buddypress to require admin approval before being published?

    #323852
    shanebp
    Moderator

    The error comes from this plugin: pmpro-buddypress
    You need to contact the creators of that plugin.

    #323849
    bigtinydesigns
    Participant

    Hi,

    I get this message when my pages disappeared and I get a 404-page error.

    Notice: Trying to get property ‘ID’ of non-object in <b>/home/micomuni/public_html/wp-content/plugins/pmpro-buddypress/includes/restrictions.php on line 232

    Please help?

    Thanks.

    #323847
    shanebp
    Moderator

    Did you activate the Friends component? Settings > BuddyPress > Components ?
    If you’ve already done that, then it is probably an issue with your theme.
    Verify by switching momentarily to a WP theme like 2020.

    #323838
    anjanphukan
    Participant

    Sure no problem. So here is my scenario.

    There are 2 member types and I have a custom user field created, let’s called it Items.

    Both member types need to select some of those Item checkboxes. Now I need to show the oposite member types with common Items on a member profile. For that I created a custom page and run the Members loop. I was able to show the oposite members. But I am not sure how to match the Items and filter those oposite members. The my_custom_id() function works well if it is a textbox field. But it doesn’t work with the checkboxes. You can see how they are stored in the database.

    I can get the current logged in user’s Items list in an array format. I think if I follow the my_custom_id() function then I will have to pass the field name and the array to compare like this my_custom_id($item_field, $current_user_items_array)

    I think with that the SQL select query in the function needs to be modified.

    Hope this clarifies my requirement.

    I am very new to buddypress. If there is another way to achieve this then I will be happy to implement. My main goal is to show the members with common items selected but from the opposite member type to a logged in member.

    Thank you so much.

    #323825
    mihaylovra
    Participant

    Hello!

    I would like to set up the Meta Title of the profile in Buddypress. For example, to be in the Meta Title: User name, city, country.

    How to do it? Help please.

    I have a code that adds a description to a profile and it works. But I did not find how to replace the title.

    /**
     * Filters wpseo meta desc.
     *
     * @param string $desc description.
     *
     * @return string
     */
    function bpdev_bp_items_metadesc( $desc ) {
    	// if it is not buddypress page or buddypress directory pages let the plugin do its work.
    	if ( bp_is_blog_page() || bp_is_directory() ) {
    		return $desc;
    	}
    	// we do not cover directory as directory meta can be customized from pages->Edit screen
    	// now, let us check if we are on members page.
    	if ( bp_is_user() ) {
    
    		// what should me the description, I am going to put it like Profile & Recent activities of [user_dsplay_name] on the site [sitename]
    		// if you are creative, you can use some xprofile field and xprofile_get_field_data to make it better.
    		$desc = sprintf( ' Профиль %s и его активность на сайте знакомств %s ', bp_get_displayed_user_fullname(), get_bloginfo( 'name' ) );
    	} elseif ( bp_is_active( 'groups' ) && bp_is_group() ) {
    		// for single group
    		// let us use group description.
    		$desc = bp_get_group_description( groups_get_current_group() );
    
    	}
    	// do it for other components
    	// ok, so you can go and do the same for all the other pages
    	// finally return the description.
    	return $desc;
    
    }
    
    add_filter( 'wpseo_metadesc', 'bpdev_bp_items_metadesc' );
    anjanphukan
    Participant

    How to use bp_has_members() function to filter members based on a custom field which is a set of checkboxes?
    I think checkbox values are stored as array in database.
    The my_custom_ids() function in Members Loop works only with single value. But it doesn’t work with array of checkboxes.

    Thank you.

    chadriston
    Participant

    Sorry, I did not notate that well in the post above, should have been buddypress/members/single/front-member-type-{type}.php.

    #323816
    wappiez
    Participant

    Hi,

    Where can I find the group profile and background images in WordPress? I want to download them, but can’t find them in the Media section.

    Thx

    Mathieu Viet
    Moderator

    Unless you created a member type called ‘type’ and assigned the member you’re displaying to this type, the buddypress/members/single/front-member-type-type.php shouldn’t load. Instead of the second ‘type’ in your template filename, you need to use the name of your member type. If I created a “student” member type, assigned it to a user and added a buddypress/members/single/front-member-type-student.php template it should be used when I display the user having a student type.

    #323811

    In reply to: Avatar Cropping issue

    Mathieu Viet
    Moderator

    Hi @maleemuse

    The mime_content_type() issue will be fixed in 10.2.0. Thanks for your report.
    See https://buddypress.trac.wordpress.org/ticket/8646#comment:12

    chadriston
    Participant

    Also, it appears that in the multisite mode, when accessing <subdomain>/members/<user> it does not pick up my child theme’s buddypress/members/single/front-member-type-type.php file. I have manually set the sub-site bp option to use the nouveau template, and the active theme is the correct child theme.

    Thanks,

    Mathieu Viet
    Moderator

    Hi,

    That’s not a function defined into BP Core. It’s a function defined into the BP Template Pack « BP Nouveau ». My guess is your theme is not checking the BP Nouveau Template pack is active before using one of its functions. In WP Admin > Settings > BuddyPress options, Check what is the active template pack, there’s a good chance it’s BP Legacy, switch to BP Nouveau and it will fix the issue.

Viewing 25 results - 2,176 through 2,200 (of 73,985 total)
Skip to toolbar