Search Results for 'buddypress'
-
Search Results
-
Hi to everyone,
I’m new with buddypress, so i would show some columns in the admin user view (/wp-admin/users.php).
I’ve created 2 custom field in extended profiles (/wp-admin/users.php?page=bp-profile-setup) so i would insert this 2 custom field in the panel where the admin can edit/view all users (about 30 members).
The two custom fields are numerical, so the user can update manually this value.
Please could you tell me how i can make this?
Thanks a lot
Kind regardsNote: Sorry, my english is not so good
I’ve been having a problem getting the profile image and cover image to work. When I attempt to crop the image, it give me the “there was an error cropping your profile image” error and doesn’t post.
The site is hosted on a dedicated server.
I have deactivated all plugins except Buddypress and activated the 2015 theme, and it still gives the same error.
PHP version: 5.6
Buddypress version: 2.4.3
Wordpress version: 4.4.1The file I’m trying to uplaod and use is 9.7kb, titled X.png, and 300px by 375px
Any help or advice would be appreciated/
In the past – I’ve used the following code in my functions.php to resolve this issue:
/**BuddyPress**/ add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' ); remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ ); remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ );I’ve also tried following the advice in this thread, with no luck.
https://buddypress.org/support/topic/use-standard-wordpress-registration/The only changes i’ve made since implimenting the above fix was to make updates to wordpress and my plugins. I suspect, the buddypress plugin update in particular to be the cause here but I cannot be sure. I’ve spent several hours trying to troubleshoot this and i’m about ready to pull my hair out here… Any advice / help would be greatly appreciated.
Helpful information:
- Site is a subdomain
- was using the wordpress registration page in earlier versions of (wordpress/buddypress) just fine.
- tried disabling/updating all plugins
- Tried googling the issue already – no luck
- the code in functions.php was added under the child theme, so updates would not over-write it
Hi, I want to change the subject of the email buddypress sends after a friend request.
Here’s what I have, it is not working:
function newSubject($initiator_name ) { $subject = bp_get_email_subject( array( 'text' => sprintf( __( 'New subject %s', 'buddypress' ), $initiator_name ) ) ); return $subject; } add_filter( 'friends_notification_new_request', 'newSubject', 10, 1);What am I doing wrong? (reference)
Thanks!
Hey All,
Just sharing in case this might be helpful. I (like many) had done much fruitless searching for a way to bump activity feed items that had new comments. This isn’t ideal, but seemed the only way to stay appraised of new comments on older posts and make these visible to users.
@r-a-y ‘s “BuddyPress – Show Individual Activity Comments Separately” plugin works great for this. It not only adds new activity items for comments on the activity feed, but also for blog comments (in my case, a variety of custom post type comments!).
The new activity feed items say “(user) posted a new activity comment (x time ago)”
In the case of comments on the blog or custom post types, the items say “(user) commented on the post (title) (x time ago)”
Additionally, each item includes a button “View Conversation”, taking you directly to the original activity item OR post on which the comment was made.
https://gist.github.com/r-a-y/10937509
I hope that all made sense.
JMGrodi
Dear All,
I am new to buddypress, in my registration page there is one extra field that i want to remove its the name of “hero” and my link is http://shaaadii.com/register/ .
please help me to remove this extra filed.I have a custom registration form that tweaked the registration.php template to include a couple additional inputs. The form works as expected, being processed through the buddypress channels
bp_core_screen_signup()Then I hook into the bp_core_signup_user like so:
# Capture registration form's metadata fields add_action('bp_core_signup_user', array( $this, 'add_registration_metadata' ),10 ,1);Through my custom add_registration_metadata() method I store the $_POST meta to the user_id like so:
public function add_registration_metadata($user_id){ $type = isset($_POST['team_type']) ? $_POST['team_type'] : FALSE; if ($type){ # Make sure that the post value matches the available options if (($type == "type1") || ($type == "type2")) # Save the value as user meta add_user_meta( $user_id, 'team_type', $type); } /* Save username to metadata */ $username = isset($_POST['signup_username']) ? $_POST['signup_username'] : FALSE; /* Save first name to metadata */ $fname = isset($_POST['signup_fname']) ? $_POST['signup_fname'] : FALSE; /* Save last name to metadata */ $lname = isset($_POST['signup_lname']) ? $_POST['signup_lname'] : FALSE; /* Update WordPress Details */ $userdata = array ( 'ID' => $user_id, 'first_name' => $fname, 'last_name' => $lname, 'nickname' => $username, 'user_nicename' => DIV_Helper::slugify($username) ); wp_update_user( $userdata ); }As expected all the values are set in the usermeta table. I would think this is all that is left to do but its not and there is some confusion as to what is happening next.
So now the user attempts to activate their account through their email obviously passing the activation key. This works! BUT my metadata values are gone. For some reason BuddyPress wipes the values stored in the usermeta table. So then I try to hook into the bp_core_activate_signup like so:
add_action('bp_core_activated_user', array( $this, 'setup_registration_metadata') );This custom method attempts to re-update the user information but for some reason no combination seems to work, here’s what I have at the moment:
public function setup_registration_metadata($user){ if (! empty( $user ) ) { if ( is_array( $user ) ) { $user_id = $user['user_id']; } else { $user_id = $user; } if ( ! empty( $user_id ) ) { $usermeta = get_user_meta($user_id); // This doesn't seem to work as expected $type = $usermeta['team_type']; // But this does... $type = get_user_meta($user_id, 'team_type' TRUE); # Make sure the value matches the available options if (($type == "type1") || ($type == "type2")) # Set the member type bp_set_member_type($user_id, $type); # Setup username $username = $usermeta['username'][0]; # Setup first name $fname = $usermeta['first_name'][0]; # Setup last name $lname = $usermeta['last_name'][0]; /* Update WordPress Details */ $userdata = array ( 'ID' => $user_id, 'first_name' => $fname, 'last_name' => $lname, 'nickname' => $username, 'user_nicename' => DIV_Helper::slugify($username) ); wp_update_user( $userdata ); ... }Any clues as to how I can update the first & last names (not using some xprofile field that redundantly stores the same information), as well as any other custom fields I may add in the future. It’s seems I’m on the right track, this just is working right now.
Thank youl
Topic: installing and settings…
Hi,
I think Buddypress + bbpress would help me. I am looking for a solution like this:
A want to have a list of members and groups. All groups will be private of hidden.
Further I will give each group its own forum. I am using bbpress for this.I want to be sure each member can only see the forums from own group. How can I get it done? or does it already work this way?
Trying it out I have seen that some group forums could be accessed from the forum root. How can I avoid this?Thanks a lot for taking the time to help!
Cheers!
Hello everyone!
I have a huge problem. I’m building a closed community with BuddyPress. I’m trying to completely close site using Force Login plugin (maybe we have more options then this plugin). I’m using KLEO theme.
It’s working like that:
1. Site is closed
2. Registration is allowed
3. Using registration button is redirecting you to wp-login.php?redirect_to=http%3A%2F%2Fsitename.com%2F – which is closed, because is redirecting you to register page inside the website. Site is closed, so there’s no option to register. It’s a loop.I’m trying to building options to register using wp-login.php.
Thank you for your help and maybe better ideas – how to fix this problem.
Topic: Subdomains
Hello everyone.
I want to make a couple of social networks in the BuddyPress. Each network should be different, should uses different plug-ins and has a different themes. My provider advised me to do this in a subdomain. I created them in cPanel but they were not active. Then he told me that I have to make WP Multisite. I did this by using the tutorials https://www.youtube.com/watch?v=y3cd5N4NcDw. But again subdomains are not active. Then I came across this tutorial https://www.youtube.com/watch?v=c0yQHucyENk who says that we have to make the MySQL and database. Is that all necessary and whether is a problem that I made WP multisite? I tried to used those sites that I made with multisite but they seem not support BP and they are unable to put different themes for each site.
I hope someone will be able to help me I really have no idea what to do next.
Regards,
Frida