Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 4,701 through 4,725 (of 68,986 total)
  • Author
    Search Results
  • #305994
    Brajesh Singh
    Participant

    Hi Naomi,
    You can download it from here(see the bottom dropdown).

    BuddyPress


    Select the version and download.

    Now that you can download it, I will suggest looking at the issues and fixing it for future. Being on the current version helps you with security and a lot of other problems.

    Best regards
    Brajesh

    #305988
    Venutius
    Moderator

    Hi there, You need to select Screen Options and make sure BuddyPress is selected.

    harunrrayhan
    Participant

    I’m adding a tab in member types list on BuddyPress members directory. I want it to filter by user roles. I already tried but there are two big issues. 1. Not working via AJAX. It’s showing 400 error. 2. ‘members-order-by’ filter not working either. It’s loading all user instead of specific roles.

    Generated User IDs specific to subscriber only:

    
    function getSubscriberIds() {
       $user_ids = get_transient( 'bp_only_subscriber_ids' );
       if ( false === $user_ids ) {
         $args     = array(
        'role__in' => 'subscriber',
        'fields'   => 'ID'
         );
         $user_ids = get_users( $args );
         set_transient( 'bp_only_subscriber_ids', $user_ids, 12 * HOUR_IN_SECONDS );
        }
    
        return $user_ids;
    }
    

    Generated member_types tab:

    
    function onlySubscribersTab() {
    
        $button_args = array(
            'id'                => 'subscribers',
            'component'         => 'members',
            'link_text'         => sprintf( __( 'Subscribers %s', 'buddypress' ), '<span>' . count( getSubscriberIds() ) . '</span>' ),
            'link_title'        => __( 'Subscribers', 'buddypress' ),
            'link_class'        => 'subscribers no-ajax',
            'link_href'         => bp_get_members_directory_permalink() . '?show=subscribers',
            'wrapper'           => false,
            'block_self'        => false,
            'must_be_logged_in' => false
            );
    
        ?>
    
        <li id="subscribers" <?php if ( isset( $_GET['show'] ) && $_GET['show'] == 'subscribers' ) { ?> class="current" <?php } ?>><?php echo bp_get_button( $button_args ); ?></li>
        <?php
    }
    add_action( 'bp_members_directory_member_types',  'onlySubscribersTab' );
    

    And then filtered only subscribers:

    
    function filterSubscribers( $r ) {
        if( isset( $_GET['show'] ) && $_GET['show'] == 'subscribers' ) {
            $user_ids = $this->getUsersIds();
            if( $user_ids ) {
                $r['include'] = $user_ids;
            }
    
        }
        return $r;
    }
    add_filter( 'bp_after_core_get_users_parse_args',  'filterSubscribers' );
    

    Now, it’s working but not as I expected. I want to to work through AJAX. I removed no-ajax from button class but not working. It’s showing 400 error. And members-order-by filters not working either. When I change the filter, it’s showing all user instead of subscribers.

    Can you help me?

    Thanks in advance 🙂

    Hi,

    I know there’s is a article about multi-site menu settings:

    BuddyPress Links in WordPress Menus

    But in my case, I need to add menus separately for each sub sites (manually translation purpose). In sub sites ‘Menu’ section doesn’t contains “BuddyPress” menu option. So, I don’t see any option to redirect users from sub-sites to their user profiles or profile settings pages.

    WordPress version: 5.2
    BuddyPress version: 4.3.0

    I tried “Multisite Master Shared Menu” (https://tt.wordpress.org/plugins/multisite-shared-menu/) plugin to share WordPress root site menu with other sub sites and it’s working. But still I’m unable to change menu text (if I change root site menu, changes applied into all sites menus).

    Is there any additional options available to link menus into sub sites?
    Thank you!

    #305977

    In reply to: Number of groups limit

    Venutius
    Moderator

    one option would be to use https://wordpress.org/buddypress-restrict-group-creation and limit the number of groups an individual can create.

    But for your main request, what you could do is simply wait till 70 groups are created and then turn off group creation for non admin.

    #305975
    Venutius
    Moderator

    You could add the following to your functions.php:

    add_action( 'bp_setup_nav', 'bpex_logout_tab', 50 );
    
    function bpex_logout_tab() {
    	
    	if ( ! bp_is_user_profile() && ! bp_is_user_activity() && ! bp_is_user() ) {
    		return;
    	}
    	
    	bp_core_new_nav_item( array(
    				'name'                => __( 'Log Out', 'buddypress' ),
    				'slug'                => 'logout',
    				'position'            => 99,
    				'screen_function'     => 'bpex_wp_logout',
    				'default_subnav_slug' => 'public',
    				'item_css_id'         => 'logout-tab'
    	) );
    	
    }
    
    function bpex_wp_logout() {
    	wp_logout();
    	wp_redirect( home_url() );
    }
    NaRanJiTo
    Participant

    Hi,

    The users i have in buddypress have a very sensitive info and don’t want it to be visible for everybody who access the user url or something like that. Want to set as private and only visible for wordpress admins. Is this possible? Or set buddypress as private? Or any plugin who does this?

    If so, what i have to do?

    Thanks so much in advance!

    NaRanJiTo
    Participant

    Hi,
    I want a tab in user profile where the user is able to fill some fields.

    I used “BuddyPress Xprofile Custom Field Types” to create that fields. But that fields appears in register page, so the registration is with many extra fields (awful).

    I don’t want these fields to appear when an user wants to create an account, i want these extra fields i created appearing only in user profile, and then the user can fill there instead registration form.

    Is this possible? If so, what i have to do?

    Thanks so much in advance!

    #305965
    Venutius
    Moderator

    Check out this – https://buddypress.org/support/topic/noindex-tag/, instead of is_buddypress() you could use bp_is_user_profile() || bp_is_user_activity() || bp_is_user() to tell if the current page is a profile page.

    #305963
    Juegos.Games
    Participant

    Hello, I’m using Buddypress at https://juegos.games and I’d like to know how to add noindex tags to the user profiles. Regards.

    #305961
    jennifersanchez
    Participant

    Hi! i tried but it isnt work.. i mean one message inside buddypress inbox like a user write to another.. is it?

    function send_message_to_new_member( $user_id, $key, $user ) {
    
        if ( ! bp_is_active( 'messages' ) )
            return;
    $recipients = array( $user_id );
    
        $args = array(
            'sender_id' => 1,
            'thread_id' => false,
            'recipients' => $recipients,
            'subject' => 'Hello new user',
            'content' => 'Welcome to the site',
            'date_sent' => bp_core_current_time()
        );
    
        $result = messages_new_message( $args );
    }
    add_action( 'bp_core_activated_user', 'send_message_to_new_member', 3 );
    #305957
    jsanjak
    Participant

    I am having an issue with BuddyPress public messaging. When users attempt a public message, the activity form (buddypress nouveau) does not appear on the page. It appears that the requisite javascript files are unable to load. I’ve tested this with default wordpress themes ( twentynineteen). I contacted my hosting service provider, wpengine, and they identified the following database error:

    [Fri May 17 17:14:48.061122 2019] [php7:notice] [pid 18420] [client 127.0.0.1:27604] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘( user_id, blog_id ) VALUES ( 1, 1 ) /* From [menastage.wpengine.com//wp-admin/?’ at line 1 for query INSERT INTO ( user_id, blog_id ) VALUES ( 1, 1 ) /* From [menastage.wpengine.com//wp-admin/?wp-cmd=ensure] in [/nas/content/live/menastage/wp-content/plugins/buddypress/bp-blogs/classes/class-bp-blogs-blog.php:127] */ made by require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WpeCommon->real_ip, WpeCommon->process_internal_command, WpeCommon->ensure_standard_settings, wp_update_user, wp_insert_user, do_action(‘profile_update’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, bp_blogs_add_user_to_blog, bp_blogs_record_blog, BP_Blogs_Blog->save

    Can anyone identify a solution to this issue? Or perhaps anything else I should try?

    kjhjkhjk
    Participant

    Hi

    Is there a way (plugin or code) to limit the length of xprofile fields to a specific amount of characters?
    Or better, what’s above + like a left character countdown.

    Thanks

    I read that post before where they posted a link with a possible solution, but now the link it’s down…Anyone pls tell me a solution…

    I have been hours searching for a solution…

    https://buddypress.org/support/topic/how-to-limit-length-of-a-xprofile-field/

    #305950
    pandraka
    Participant

    Good Morning,

    WordPress 5.2
    BuddyPress 4.3.0

    I’m in the process of creating a multisite which will contain an existing BuddyPress site. Right now I’m just setting up the site. I’ve created a simple top site, then enabled BuddyPress. When I upload bp-custom.php the site starts to throw errors:

    The plugin generated 3 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Warning: Cannot modify header information – headers already sent by (output started at /home/navalw5/XXX.XXXXwargaming.com/wp-content/plugins/bp-custom.php:7) in /home/navalw5/test3.navalwargaming.com/wp-includes/option.php on line 948

    If I remove the bp-custom.php these errors go away.
    This is the code in bp-custom:
    <?
    add_action( ‘init’, ‘remove_xprofile_links’ );
    function remove_xprofile_links() {
    remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 3 );
    }
    >?
    Pretty standard and a direct copy from the production site, I was curious so I just uploaded a blank bp-custom. I still got the errors.

    I had network activated BuddyPress, so I deactivated and then activated the plugin in the main site.

    Still, have the error.

    My intention is to have a multisite / BuddyPress installation. where members can be part of several or just one other department of the organization.

    site/org1
    site/org2
    Site/org3

    each site would have its own groups & forums

    All the research seemed to indicate that BuddyPress / bbpress should be network activated.

    wp-config. currently looks like:

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘test3.navalwargaming.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    define( ‘BP_ENABLE_MULTIBLOG’, true );

    I’m confused as to the error, should I be using the child theme’s function.php instead? Any help is greately appreciated.

    Thanks

    #305949

    In reply to: Email Activation

    shanebp
    Moderator

    You could put it in your theme > functions.php
    Or in bp-custom.php

    bp-custom.php

    oneskysandy
    Participant

    We are trying to filter the group lists Group Meta queries, but the BuddyPress Groups Widget isn’t using the same filtering method. We are following this tutorial:

    Group Meta Queries: Usage Example

    But BP_Groups_Widget isn’t calling bp_has_groups with bp_ajax_querystring.

    This is /bp-groups/classes/class-bp-groups-widget.php:

    if ( bp_has_groups( $group_args ) )

    While bp-default/groups/groups-loop.php is using this:

    if ( bp_has_groups( bp_ajax_querystring( ‘groups’ ) ) )

    Is this a bug? Is there a way to customize which groups the BuddyPress Group Widget displays?

    #305929

    thanks @venutius in media post with rtmedia 4.5.6
    when i give comment in any media activity by rtmedia. the comment bocome activity post with comment. otherwise others buddypress post not do this. after deactivation of the plugin rtmedia, this complain absent. so i think this problem arise by the plugin rtmedia 4.5.6

    #305928
    Venutius
    Moderator

    Hi there, Just tried commenting on an activity item with WP 5.2 and it’s working fine at this end. I suggest you first rule out any other plugin issues by deactivating all of your plugins apart from BuddyPress and try it again. What version of PHP is your site using?

    #305923

    my website http://www.mdpathy.com i use wordpress 5.2 Buddypress 4.3.0
    after update wordpress in 5.2 the buddypress activity comment make new activity post.
    what can i do.

    David Jamieson
    Participant

    Hi all,

    I have Buddypress groups with 2 different group types, and I’m looking to make some customizations to the group nav.

    Specifically, I want to hide the “Members” nav item on specific group types, but display it on others.

    Is there a function that will alow for this?

    Cheers,
    -David

    #305900

    In reply to: Wrong count shows

    bdd
    Participant

    @prashantvatsh I’m having a similar problem and would appreciate a little clarity on your suggestion.

    1. Which email are you talking about when you say to disable the activation email?
    2. How do I auto-login them on registration?
    3. Where/how do I set it so that they’re redirected to the proper place to activate their account? (You mentioned the Users screen and you mentioned their BuddyPress profile. For either, which specific page do I list and where do I list it?)

    Thank you!

    #305895
    elliotchav
    Participant

    Hello guys so i want a pop up that shows usernames with i press @, i found this plugin that works but when i click the name that i want on the editor, it doesn’t let me space up between the name and the text, i have the skip the link for me to type.

    This is the codes in the plugin.

    <?php
    /*
    Plugin Name: bbp Mentions Suggest
    Plugin URI: http://www.rewweb.co.uk/mentions_suggest
    Description: Adds the Buddypress mentions suggest as you type to bbpress topics and replies
    Version: 1.3
    Author: Robin Wilson
    Author URI: http://www.rewweb.co.uk
    License: GPL2
    */
    /*  Copyright 2018  PLUGIN_AUTHOR_NAME  (email : wilsonrobine@btinternet.com)
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License, version 2, as 
        published by the Free Software Foundation.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    
    	*/
    	
    
    add_action( 'wp_enqueue_scripts', 'bms_enqueue_submit' );
    
    function bms_enqueue_submit() {
    	$path = plugins_url('bbp-mentions-suggest/js/forum.js') ;
    	//loaded dependent on the buddypress bp-mentions being loaded
    	wp_enqueue_script( 'bms_enqueue_submit',$path, array( 'bp-mentions' ));	
    }
    	
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'bms_enable_mentions_in_group_forum_textareas' );
    /**
     * Enable at-mention autocomplete on BuddyPress group forum textareas.
     */
    function bms_enable_mentions_in_group_forum_textareas( $retval ) {
    	$bbpress = false;
    
    	// Group forum reply.
    	if ( bp_is_group() && 'topic' === bp_action_variable() && bp_action_variable( 1 ) ) {
    		$bbpress = true;
    	}
    
    	// Group forum topic.
    	if ( bp_is_group() && bp_is_current_action( 'forum' ) ) {
    		$bbpress = true;
    	}
    
    	// Do stuff when on a group forum page.
    	if ( is_bbpress() ) {
    		$retval = true;
    		
    	}
    	
    	return $retval;
    }

    JS

    jQuery(document).ready(function($) {
    	/* necessary to get @ mentions working in the tinyMCE on the forums */
    	window.onload = function() { 
    	      my_timing = setInterval(function(){myTimer();},1000);
    	      function myTimer() {
    	        if (typeof window.tinyMCE !== 'undefined' && window.tinyMCE.activeEditor !== null && typeof window.tinyMCE.activeEditor !== 'undefined') {  
    		        $( window.tinyMCE.activeEditor.contentDocument.activeElement )
    					.atwho( 'setIframe', $( '.wp-editor-wrap iframe' )[0] )
    					.bp_mentions( bp.mentions.users );
    				 window.clearInterval(my_timing);
    		    }
    	      }
    	      myTimer();
    	};
    })

    HELP please

    issaquahtechacademy
    Participant

    I did not realize you would have to buy Eduma to test this. I would think that WordPress would have a program where plug-in developers have access to some kind of test accounts or something, where they can quickly spin up a site with specific themes or plugins, specifically for this type of issue.

    Regardless, the people at Eduma went ahead and did the debugging for me. Here is the response I got from Huyen last night…

    Dear jbonifacejr,

    I’m so sorry.

    I tried to deactivated all plugins on your site to check it.

    And BuddyPress plugin is the reason why this issue came.

    Best regards,

    Huyen Anh

    #305884

    In reply to: Finding Themes!

    Venutius
    Moderator
    masumbillah22
    Participant

    I have deactivated all plugin except buddypress. switched to Twenty Nineteen version 1.4 then created new user name “Oliver Jake” you can see that new user on this page http://dev.masum-billah.com/members/ but if you set “New Members” filter on this activity page http://dev.masum-billah.com/activity/ nothing showing up just one message “Sorry, there was no activity found. Please try a different filter.”

Viewing 25 results - 4,701 through 4,725 (of 68,986 total)
Skip to toolbar