Search Results for 'buddypress'
-
Search Results
-
Hi everyone!
I have a custom field in the registration page asking the new user to give us his/her ideas of what’s on their mind about a personal project so we can help him/her make it possible.
The thing is that I need that custom field to be part of the notification email that the admins recieves whenever somone registers.
I tried to follow the instructions given here:
https://buddypress.org/support/topic/using-xprofile-fields-in-notification-mail/But I’m not sure whre to put this code. In the functions.php? Is that code right?
Thaks ahead!
Hi,
I am really struggling with trying to hide my admins from my site. I searched this site and tried every code available with no success. Below is the last code I tried with no success.
https://buddypress.org/support/topic/hide-admins-activities-from-all-activity-feeds-in-buddypress/
Any ideas what I am doing incorrectly? This code is inserted in my child themes fuction.php correct?I am racking my brain on this one!
Thanks for any help,
KenThe Theme I am using is KLEO by Seventh Queen
Buddy Press version Version 2.2.1
Website:http://www.cmpg-annex.org/Other Plugins
Akismet
bbPress
BuddyPress Cover Photo
K Elements
MOJO Marketplace
Paid Memberships Pro
PMPro MailChimp Integration
PMPro Register Helper
PMPro Set Expiration Dates
Register Helper Example
Revolution Slider
rtMedia Pro for WordPress, BuddyPress and bbPress
The Events Calendar
WPBakery Visual Composer// deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 ); // Remove admin from the member directory function bpdev_exclude_users($qs=false,$object=false){ $excluded_user='1'; // Id's to remove, separated by comma if($object != 'members' && $object != 'friends')// hide admin to members & friends return $qs; $args=wp_parse_args($qs); if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude'] = $args['exclude'].','.$excluded_user; else $args['exclude'] = $excluded_user; $qs = build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2); // once admin is removed, we must recount the members ! function bpfr_hide_get_total_filter($count){ return $count-1; } add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter'); // hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 1 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );Hi
I have the BuddyPress folder structure duplicated in my child theme and successfully overriding the files in /members/; however I want to edit the registration.php file (I am customising the registration form). Weirdly, when I put the custom registration page in /registration/ in my buddypress folder in my child theme, it is still using the default buddypress registration file. Does the file override only work in the members folder?
Hello I have a problem that I need help with. When someone goes to upload videos, they can select multiple categories. I don’t want this because what happens is that people will select all categories just so their video shows up on the home page multiple times under the different genere’s. I tried to download some wp plugin called ONE CATEGORY but it had no effect.
Can someone help me fix it so that they can ONLY select one category for their video. Even if it’s custom programming, I’ll page. Site is clichetv.tv but you can’t see the upload video page unless your registered but easy enough problem to understand.
Thanks.
Hello
Wordress 4.1.1
Buddypress 2.2.1I have two issues with the members registration.
1. I would like to hide the username on the registration form. I would like the user to register with his email, lastname, firstname. I created a firstname field and I use the name field as the lastname.
But I can’t remove the username. I understand that this field is mandatory and very useful for wordpress so it can’t be removed but can I hide it? or fill it with a random value?
I tried to put the email address as the username but after it is used in the URL of the profile and I don’t want the member email to be displayed.
For me the better solution would be to fill the username with a random value and replace it with the user_id once the user is created but I don’t know how I can do this.2. On Buddypress if I understand well, it is the display name which is displayed everywhere. How can I insert in the display name field the name + first name I ask in the regsitration form?
Thank you very much for your help.
Topic: Blank Pages on BuddyPress
I am using the Invention theme by Jozoor.
I have been trying to create a BuddyPress forum for a product we are about to launch, and we need this fixed quite soon, my problem is quite simple, on EVERY page associated with buddyPress, even those it creates itself like Groups, is blank, I cannot do anything with BuddyPress as is.I used BuddyPress many months ago, about 5 probably and it was so easy to use, can’t remember what theme I was using back then, but I was surprised that nothing at all shows up.
Has anyone else had this problem or know a fix?
Its been a few years since I’ve worked with BuddyPress. Today I installed the plugin and clicked on the Activity section and BAM! PHP errors:
Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(138) : runtime-created function on line 6 Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(138) : runtime-created function on line 6 Warning: usort() [function.usort]: Array was modified by the user comparison function in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 138Any idea what might be going on?
Using WordPress version 4.1.1
Topic: Cookies and BuddyPress
How and for what does BuddyPress us cookies for.
One of my corporate clients ran IBM Security AppScan against a WordPress install with BuddyPress and it is returning low-risk security warning for Client-Side (JavaScript) Cookie References.
Specifically, it cited this file:
buddypress/bp-core/js/jquery-cookie.min.js/Is this used for login functionality or something else as well? The security guy wants it removed, but is there a safe way to remove it, and how much is going to break if we do?
Hey, I’m kinda stuck for a day now got a tips to check the database, but can’t find any solution.
I use this to get a avatar:
<?php echo get_avatar(1); ?>Then I use this to get the name:
<?php $user_id = 1; $key = 'first_name'; $single = true; $user_first = get_user_meta( $user_id, $key, $single ); echo '<span>' . '' . $user_first . '</span>'; ?>This above works great but when I now have created “profile fields” with BuddyPress in the user area I trying to do the same thing but can’t get the right result out of it.
<?php $bp_get_member_user_id = 1; $key = 'field_2'; $single = true; $user_last = bp_get_user_meta( $bp_get_member_user_id, $key, $single ); echo '<span>' . '' . $user_last . '</span>'; ?>In this code above I have found that the field has the name
field_2, but this aint right? If I change it tofirst_nameit generate thefirst_nameHow can I find the real field name?