Search Results for 'buddypress'
-
Search Results
-
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
I have used this code here:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/
and I want to filter users by certain criteria. The example for the bp-custom page is:
function my_custom_ids( $field_name, $field_value = '' ) { if ( empty( $field_name ) ) return ''; global $wpdb; $field_id = xprofile_get_field_id_from_name( $field_name ); if ( !empty( $field_id ) ) $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id; else return ''; if ( $field_value != '' ) $query .= " AND value LIKE '%" . $field_value . "%'"; /* LIKE is slow. If you're sure the value has not been serialized, you can do this: $query .= " AND value = '" . $field_value . "'"; */ $custom_ids = $wpdb->get_col( $query ); if ( !empty( $custom_ids ) ) { // convert the array to a csv string $custom_ids_str = 'include=' . implode(",", $custom_ids); return $custom_ids_str; } else return ''; }Example Usage: Get all members who have filled out the xprofile field ‘dogs’ and selected the value ‘poodles’.
<?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>How do I add more conditions to the dogs/poodles. What If I also want ‘birds’, ‘parrot’ as well as ‘dogs’, ‘poodles’ ?
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.