Search Results for 'buddypress'
-
Search Results
-
Hello,
I am having my site users register through a registration page setup with the Memberpress plugin. Registrants are required to submit first name, last name, username, email, and password. This information is used to fill out these items of the wp-admin/profile.php. While I would like to use the Memberpress registration form and page I would like for the buddypress profile page to remain the users’ main interface to their profile information and social activity. The problem though is that the default first name and last name fields of the Memberpress registration page don’t automatically propagate in the respective fields on the Buddypress profile page. Is there a way I can get these fields to draw from the entries for first name and last name already existing in the user databases (/wp-admin/user-edit.php) to auto-fill in the relevant fields of the Buddypress profile page? Currently after registration the last name field is empty and the first name field contains the username. Yes, the member can delete the username and enter both names again, but I’m trying to avoid this. They may wonder why they need to enter their first and last names twice. Does this make sense? I had assumed that whether registering through the Buddypress page or the Memberpress page the first name and last name would be stored in the same data table serve the same function.
My test user is still showing in the widget even though I deleted their profile from the front end.
Hello – I’m trying to figure out a way to limit what is shown in the activity stream, so that only content before the MORE tag is display. Is there a simple way to do this?
(I want to do this because I am using another membership plugin that allow content restriction after the MORE tag; however Buddypress displays in the activity stream content after the more tag even to non-logged-in users. I’d like teaser content to appear before the MORE tag in both posts, and the activity stream).
BP 2.6.2, WP 4.6.1, Genesis 2.3.1
Thanks!
KellyTopic: Eliminate buddypress pages
Buddypress Versión 2.6.1.1
Wordpress Version 4.5.4Is there a way to eliminate or block the followings pages ???
domain/members/username/settings/notifications/
domain/members/username/settings/capabilities/
domain/members/username/settingsBecause it is very important that users cant enter to those pages
I allow frontend publishing for my users, and was wondering if there was a way to add a link to their posts within their BuddyPress profile page?
Hallo everyone,
I have searched a lot true multiple forums and also here on buddypress. I’m trying to create my first plugin that ads a tab to the profile page with a bubble post count of user x account.
I found some code that archieve to create the bubble but can’t get the count to work! I need to say im not a programmer so please forgive me for that and hope to learn something why it is not working.
See the following code:
function profile_tab_advertenties() { global $bp; $count = count_user_posts( bp_displayed_user_id() , "post_type" ); $class = ( 0 === $count ) ? 'no-count' : 'count'; bp_core_new_nav_item( array( 'name' => sprintf( __( 'Advertenties <span class="%s">%s</span>', 'lang-domain' ), esc_attr( $class ), number_format_i18n( $count ) ), 'slug' => 'advertenties', 'screen_function' => 'advertenties_screen', 'position' => 20, 'parent_url' => bp_displayed_user_domain() . '/advertenties/', 'parent_slug' => $bp->profile->slug, 'default_subnav_slug' => 'advertenties' ) ); } add_action( 'bp_setup_nav', 'profile_tab_advertenties' );I used the following code from @shanepb :
$count = // code that retrieves the count $class = ( 0 === $count ) ? 'no-count' : 'count'; bp_core_new_nav_item( array( 'name' => sprintf( __( 'Animals <span class="%s">%s</span>', 'lang-domain' ), esc_attr( $class ), number_format_i18n( $count ) ), // etcAnd added some code behind the $count = // code that retrieves the count.
Are there any suggestions how i can make this to work!?
If i do the following code inside a loop it’s working perfect and output the post count of the user.
<?php echo 'Number of posts published by user: ' . count_user_posts( bp_displayed_user_id() , "post_type" ); ?>Thanks,
PatrickGreetings,
After a user submits the registration form on the Buddypress site I’m building, the form disappears and the page content refreshes (url remains the same) to a page with the heading “Check Your Email To Activate Your Account!” that says: “You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.”
However, I want new registrants to be manually approved by an admin. Thus, I’ve edited the email new registrants receive and removed the activation link from it, plus I installed a plugin that sets the status of new accounts to pending and requires an admin to approve their account before the registrant can log in. The only thing left I need to do is edit the text of the completed registration page (as described above) to notify users that their account is awaiting approval instead of stating that they’ve received an activation email. How should I go about this?
Thanks,
trecksHello,
I am having my site users register through a registration page setup with the Memberpress plugin. Registrants are required to submit first name, last name, username, email, and password. This information is used to fill out these items of the wp-admin/profile.php. While I would like to use the Memberpress registration form and page I would like for the buddypress profile page to remain the users’ main interface to their profile information and social activity. The problem though is that the default first name and last name fields of the Memberpress registration page don’t automatically propagate in the respective fields on the Buddypress profile page. Is there a way I can get these fields to draw from the entries for first name and last name already existing in the user databases (/wp-admin/user-edit.php) to auto-fill in the relevant fields of the Buddypress profile page? Currently after registration the last name field is empty and the first name field contains the username. Yes, the member can delete the username and enter both names again, but I’m trying to avoid this. They may wonder why they need to enter their first and last names twice. Does this make sense? I had assumed that whether registering through the Buddypress page or the Memberpress page the first name and last name would be stored in the same data table serve the same function.
Topic: Field groups in registration
I found this question in this forum, which is my question also. But the answer (this code) doesn’t work for me. The question is really old, and so is the code. The current register.php has changed quite a bit.
I did get some guidance from the pastebin code and tried different variations. Here’s a shortened version:
<?php do_action( 'bp_after_account_details_fields' ); ?> <?php /***** Extra Profile Details ******/ ?> <?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => true ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <!-- <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?> --> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?> <?php /***** Extended Profile Fields: About Me (group 9) ******/ ?> <?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'About Me', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 9, 'fetch_field_data' => true ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <!-- <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?> --> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?>Basically I reused the original profile field loop and made it specific to the group field I want. I have 5 other groups I need in the register form. And repeating the initial loop for each one makes them display beautifully in the register form, but when I fill them out and click submit only the last group is displayed in the profile. It’s like only the last bit of code is being executed, so each loop is overwriting the previous one. In the forums I read that placement of
<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />is very important but after playing around with it I still have nothing.I also found this but have no idea of where or how to use it.
Any guidance will be greatly appreciated.
I installed https://wordpress.org/plugins/postman-smtp/ on my WP (v 4.6) + BuddyPress (v 2.6.2) site, then configured it to use my Gmail account’s SMTP server settings.
The emails sent by the site uses the SMTP settings when:
– A member registers and PMPRo (https://tl.wordpress.org/plugins/paid-memberships-pro/) sends out an email confirmation
– Emails sent using the plugin (https://wordpress.org/plugins/email-users/)(I can see these sent emails in the “Sent” folder of my Gmail account.)
However, when BuddyPress sends out an email (e.g. email notification for friend request, etc.), it seems to ignore the SMTP server settings I have configured. Instead, it uses the server’s default.
How do I make BuddyPress email notifications send using my Gmail SMTP server settings?
I created many custom notifications on my theme, such as notification on post comments, but after a post is commented and the notification is sent, the listing of posts and of other custom post types display a 404 page.
This happens only on the listing page of posts, not on the single post pages.
I really hope in an help.
This is my code: