Search Results for 'buddypress'
-
Search Results
-
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
subscriberonly: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_typestab: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-ajaxfrom button class but not working. It’s showing 400 error. Andmembers-order-byfilters 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:
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.0I 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!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!
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!
Topic: Noindex Buddypress users
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.
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?
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/
Topic: Multisite issue
Good Morning,
WordPress 5.2
BuddyPress 4.3.0I’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/org3each 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
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,
-DavidTopic: Mention Autosuggestion
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
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.