Try:
function kisses_posts() {
add_action( 'bp_template_content', 'kisses_screen' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function kisses_screen() {
locate_template( array( 'buddypress/members/single/kisses.php' ), true );
}
Or
function kisses_screen() {
echo ' put the code from kisses.php here';
}
Hello,
I am currently using a plugin known as iMember360 which basically lets me limit access to certain pages and use my user database for my clients from Infusionsoft to login. Everything works wonderfully with Buddypress thus far except for one thing. I want certain users to have a Buddypress profile and certain users to NOT have one. I can either find where in the coding the Buddypress profiles are created and enter a shortcode? Or some how say to Buddypress that certain Tag IDs should have these membership pages created. Adding the shortcode into the site seems like the easiest way but I’m not certain how that is done. I hope this explanation kind of steers you in the direction I’m attempting to get you in. Thanks in advance for your assistance.
Cheers
When I try and activate, email or delete a user on the Manage Signups page I get the error:
You do not have sufficient permissions to access this page.
I’m the multisite superadmin.
I’m running WordPress 4.01 multisite subdomain install in root directory and Buddypress 2.1.1.
I’m running Catchbox Pro 3.2 and have tried switching to twentytwelve on the main blog but the problem reoccurs.
I have no custom functions in bp-custom.php. I’ve tried deactivating all plugins on the main blog except buddypress and network deactivating all network activated plugins.
I’ve found no relevant errors in the system logs. Just this:
[Thu Dec 11 20:12:21 2014] [error] [client 17.142.151.92] script ‘/var/www/vhosts/webhive.com.au/httpdocs/r.php’ not found or unable to stat
I have my own dedicated server running Ubuntu 10.04.
I’ve never used Manage Signups before so don’t know if it used to work.
Thanks!
Read this for a better approach to your issue: Filtering by Xprofile fields
Another approach: bp_user_query
Hi All,
This is my first time posting on the buddypress support forum. I need some assistance with a project I am working on. This website i am working on will be keeping track of a custom field that will work similar to a points system. I am looking to create a custom members page with the orderby filter to have an option to display the users as a leader board. I have tried adding this I manipulated from another post in the theme’s functions.php file. The issues is once I get to the loop of the new page I am unable to display the sorted information in the order created by the function below. Any help would be greatly appreciated.
function du_users_by_value($field_id){
$numberedUsers = array();
$orderedIds = array();
if ( bp_has_members(bp_ajax_querystring( 'members' ) ) ) : while ( bp_members() ) : bp_the_member();
// Get the field value from all members
$display_id = bp_get_member_user_id();
$number_field = get_user_meta($display_id,$field_id,true);
// Push user id and number value to an array
$numberedUsers[$display_id] = $number_field;
endwhile;
endif;
//print_r($numberedUsers);
// Sort the members by the custom field value, highest to lowest
arsort($numberedUsers);
//print_r($numberedUsers);
// Create a new array with just the member id’s in the correct order
foreach ($numberedUsers as $user => $value) {
array_push($orderedIds, $user);
}
print_r($orderedIds);
// Echo out the include argument along with comma seperated values of the members in order
$orderedIds=implode(",",$orderedIds);
//echo 'include=' . $orderedIds;
return $orderedIds;
}
I’m new to Buddypress and in mydomain.com/register where my Buddypress registration has been set at, I see that there is a ‘Blog Details” section where the new user will get to create his/her blog by entering the name for it in a field provided as such: mydomain.com/BlogName
My questions are:
1- How can modify this so when users create a “blog” they don’t get the same Admin page as I do as a super user? (because when they login, I see that they can see all other plugins and other things that I see as a super user)
2- Can this feature be set for specific role?
Thanks!
Forgot to mention that this can be made with CPT as soon as BP 2.2 is out.
About Post Types and BuddyPress Activities
If you’re comfortable with coding, you can try what described here. Be aware that it’s an old topic with possible changes to work with BP 2.1.1
https://buddypress.org/support/topic/adding-a-second-element-for-posting-with-an-activity/
Dear @shanebp,
The answer from the support team at appbuddy was not really helpful.
Their answer was ‘Appbuddy should just override bp files in the same hierarchy, Thanks.’ … haha
shane i was hoping that you might be able to tell me where i would find the codes for the sub-nav-menus so i can check the appbuddy buddypress files and whether they are correct or not on my own ?
Thank you in advance.
Hello everyone,
I recently have plugged in BuddyPress and am trying to evaluate to see if this add-on will do what I need, and I greatly appreciate community’s suggestions/directions.
I have 2 type of users: 1-ordinary users 2-schools
The ordinary users are straight forward. As far as the Schools, I need to provide a registration page that contains additional fields which the schools have to fill in. So, I got a plugin called ARforms that has Signup page as it will let me create my own fields.
My question is: is there a way to map the registration fields to each other?
Thanks for all help.
I have the following on another network:
<?php
/*
Plugin Name: BP Multi Network
Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
Version: 0.1.1
Author: Ron Rennick
Author URI: http://ronandandrea.com/
*/
/* Copyright: (C) 2011 Ron Rennick, All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function ra_bp_multinetwork_filter( $prefix ) {
global $wpdb;
if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
$current_site = get_current_site();
return $wpdb->get_blog_prefix( $current_site->blog_id );
}
return $prefix;
}
add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
function ra_bp_multinetwork_meta_key_filter( $key ) {
global $wpdb;
static $user_meta_keys = array(
‘last_activity’ => false,
‘bp_new_mention_count’ => false,
‘bp_favorite_activities’ => false,
‘bp_latest_update’ => false,
‘total_friend_count’ => false,
‘total_group_count’ => false,
‘notification_groups_group_updated’ => false,
‘notification_groups_membership_request’ => false,
‘notification_membership_request_completed’ => false,
‘notification_groups_admin_promotion’ => false,
‘notification_groups_invite’ => false,
‘notification_messages_new_message’ => false,
‘notification_messages_new_notice’ => false,
‘closed_notices’ => false,
‘profile_last_updated’ => false,
‘notification_activity_new_mention’ => false,
‘notification_activity_new_reply’ => false
);
if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
return $key;
if( !$user_meta_keys[$key] ) {
$current_site = get_current_site();
$user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
}
return $user_meta_keys[$key];
}
add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );
In terms of the BP Multi-Network plugin I have the following on one network:
<?php
/*
Plugin Name: BP Multi Network
Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
Version: 0.1
Author: Ron Rennick
Author URI: http://ronandandrea.com/
*/
/* Copyright: (C) 2011 Ron Rennick, All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function ra_bp_multinetwork_filter( $prefix ) {
global $wpdb;
if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
$current_site = get_current_site();
return $wpdb->get_blog_prefix( $current_site->blog_id );
}
return $prefix;
}
add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
function ra_bp_multinetwork_meta_key_filter( $key ) {
global $wpdb;
static $user_meta_keys = array(
‘bp_new_mention_count’ => false,
‘bp_favorite_activities’ => false,
‘bp_latest_update’ => false,
‘total_friend_count’ => false,
‘total_group_count’ => false,
‘notification_groups_group_updated’ => false,
‘notification_groups_membership_request’ => false,
‘notification_membership_request_completed’ => false,
‘notification_groups_admin_promotion’ => false,
‘notification_groups_invite’ => false,
‘notification_messages_new_message’ => false,
‘notification_messages_new_notice’ => false,
‘closed_notices’ => false,
‘profile_last_updated’ => false,
‘notification_activity_new_mention’ => false,
‘notification_activity_new_reply’ => false
);
if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
return $key;
if( !$user_meta_keys[$key] ) {
$current_site = get_current_site();
$user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
}
return $user_meta_keys[$key];
}
add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );
I’m running WordPress 4.01, bbpress 2.5.4 and buddypress 2.1.1. I have one forum installed and I have just created a second forum. The problem is when I create the second forum it basically picks up all the topics and menu choices of the original forum. The original forum is private and is password protected. I don’t want the 2nd forum private but public nor have the topics or menu choices of the original forum and not password protected. I basically want it to be it’s own forum separate from the original one. Any help would be greatly appreciated
I can’t upload an avatar for any of the groups on my site. When I try to I get a ‘404 not found’ error message.
I only discovered this recently. I suspect the problem arose after I moved my site to a new server several months ago. Groups I created before then still have their original avatars. However I cannot add avatars to any new groups I create. Of course I’m reluctant to try changing an avatar on one of the old groups in case I can’t get the previous one back.
Can anyone suggest what the problem might be?
I’m using WordPress 4.0.0 and BuddyPress 2.1.1.
I tried that plugin , still no luck. Any activity post or group invitation or mentions etc..nothing related to buddypress is sending emails to users. Site emails are working as mentioned just the buddypress emails are not.
Hi There,
I have a (potentially) large multisite installation that calls on xprofile fields for each user on a particular site in order to return users for a specific item. Due to all the sites having this info, but only needing to pull from users from each specific site, I used the code in the link below to make sure that the profiles aren’t syncing xprofile info between all the sites, problem is, the code supplied doesn’t work, here it is… https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite/
I am getting a ton of error messages on the site and it has to do with these 4 lines, looks like this code hasn’t been updated in a while, is there any way we can get an updated version that will work?
$bp->profile->table_name_data = $wpdb->prefix . ‘bp_xprofile_data’;
$bp->profile->table_name_groups = $wpdb->prefix . ‘bp_xprofile_groups’;
$bp->profile->table_name_fields = $wpdb->prefix . ‘bp_xprofile_fields’;
$bp->profile->table_name_meta = $wpdb->prefix . ‘bp_xprofile_meta’;
Thanks,
K
Most users goes to what seems them the easiest.
3 solutions:
– remove the What’s new form
– add a message above or below the form
– use a giant FORUM button ! 😉
You can use this snippet to show them a message (add it to your child-theme functions.php or to bp-custom.php
function bpfr_post_in_msg() {
echo 'your message to users goes here';
}
add_action( 'bp_before_activity_post_form', 'bpfr_post_in_msg' ); // above what's new form
add_action( 'bp_after_activity_post_form', 'bpfr_post_in_msg' ); // below what's new form
To remove the form, use an empty post-form.php containing only the opening & closin php tags
and add it to /child-theme/activity/post-form.php
The original file is in bp-templates/bp-legacy/buddypress/activity/post-form.php
Hi,
I have BuddyPress but i create some new fields in the profile and now i need that when a user register in that field he can put the same than other user how can i do it ?
First file absent though there is no buddypress folder in twentyfourteen (i think????)
second file present
it begins /*! buddypress – v2.1.0 – 2014-10-06 9:39:07 PM UTC – https://wordpress.org/plugins/buddypress/ */
I’m not sure if I should start a new thread about this. All was going well with the translation but I don’t seem to be having any luck with this phrase (line 5561 onwards in the orignal buddpress.pot file):
#: bp-templates/bp-legacy/buddypress/members/activate.php:16
msgid “”
“Your account was activated successfully! You can now log ”
“in with the username and password you provided when you signed up.”
msgstr “”
If I add my own phrase in the msgstr “” line, nothing changes.
I’m just wondering if it is OK that the original phrase is underneath the msgid “” line rather than within the quote marks?
Or is there something else I am doing wrong?
many thanks again for your time.
Mariette
Hi,
I wonder if there is any recommendation regarding using SSL on Buddypress? I’m thinking of adding ssl sitewide but I would like to know if there is any common issues or advices regarding this.
Hi,
I am using latest WP and BP versions and I want to disable all kinds of commenting on my website. I searched and found this line to add in functions.php – add_filter(‘bp_activity_can_comment’,’__return_false’);
This solution however is not working. I have also added it to bp-custom.php and not working there either. It took a whole day of mine and I will be grateful if someone points me to a solution.
Thanks.