Search Results for 'profile fields'
-
AuthorSearch Results
-
October 1, 2014 at 10:56 am #203207
In reply to: Modifying The Member List
1a-spielwiese
Participant1. I renamed the second field from ‘Teamgründung bzw. Geburtsjahr’ into ‘year’ – and it works.
2. With the field ‘Bezirk oder Statutarstadt; CH: Bezirk o.ä.; D: LANDKREIS oder KREISFREIE STADT; Li: Gemeinde’, again, it does not work. – Therefore I guess, the problem are blank, points etc. – Is true? Is there a any way to resolve the problem?
3. Is there any way to get displayed the age at any current moment (instead of the year of brith or team fundation, which is inserted into profile fields)?
September 30, 2014 at 9:38 am #202802In reply to: Modifying The Member List
1a-spielwiese
Participant@ https://buddypress.org/support/topic/modifying-the-member-list/#post-187019:
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php
To modify this file, you make a copy of it and put it into your child-theme
/your-child-theme/buddypress/members/members-loop.phpI did it, and inserted behind:
<?php /*** * If you want to show specific profile fields here you can, * but it'll add an extra query for each member in the loop * (only one regardless of the number of fields you show): * * bp_member_profile_data( 'field=the field name' ); */ ?>the following code:
<?php bp_member_profile_data( 'field=Geschlecht' ); ?> <br> <?php bp_member_profile_data( 'field=Teamgründung bzw. Geburtsjahr' ); ?> <br> <?php bp_member_profile_data( 'field=Bundesland, Kanton oder Wahlkreis' ); ?>The first and the third fields are displayed; the second not. – Why and how can I change it?
September 29, 2014 at 9:28 pm #202778In reply to: Reshaping the registration page
1a-spielwiese
ParticipantI decided to test theses instructions – and in general they work.
My registration page has now a new design:
http://1a-spielwiese.de/registrieren/
This result I got using two means:
1st:
I tested with ‘Simple Custom CSS’-Plugin that code:
#buddypress .standard-form #basic-details-section, #buddypress .standard-form #blog-details-section, #buddypress .standard-form #profile-details-section { border: 2px solid #8b008b; float: none; clear: left; width: 100%; padding: 10px; margin-bottom: 1em; } #user-role-section { border: 2px solid #8b008b; float: none; width: 100%; padding: 10px; } #wp_rar_user_role { width: 100%; } h4-a { color: #8b008b; font-size: 11px; font-size: 1.1rem; font-weight: bold; letter-spacing: 0.05em; line-height: 1.9091; text-transform: uppercase; } .wp-editor-container { border: 1px solid #DCDCDC; }Finally I will insert it into my child-theme.
2nd:
The relecant section of the register.php with in my reddle-child/buddypress/members-folder is now:
<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?> <?php do_action( 'template_notices' ); ?> <p><?php _e( 'Mitglied bei 1a-Spielwiese zu werden, ist sehr einfach - und kostenlos. Fülle einfach die Felder unten aus und wir erstellen für Dich umgehend ein Benutzer/in/konto und in Kürze auch einen eigenen Blog (Webseite).', 'buddypress' ); ?></p> <?php do_action( 'bp_before_account_details_fields' ); ?> <div class="register-section" id="basic-details-section"> <?php /***** Basic Account Details ******/ ?> <h4-a><?php _e( 'Account Details', 'buddypress' ); ?></h4-a> <p><small><em>Diese Daten werden für Deine Registrierung als neues Mitglied und die Einrichtung Deines eigenen Blogs (Webseite) benötigt.</em></small></p> <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_username_errors' ); ?> <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" /> <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_email_errors' ); ?> <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" /> <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_password_errors' ); ?> <input type="password" name="signup_password" id="signup_password" value="" class="password-entry" /> <div id="pass-strength-result"></div> <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label> <?php do_action( 'bp_signup_password_confirm_errors' ); ?> <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" /> <?php do_action( 'bp_account_details_fields' ); ?> </div><!-- #basic-details-section --> <?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-a><?php _e( 'Profile Details', 'buddypress' ); ?></h4-a> <p><small><em>Diese Daten werden künftig in Deinem Profil angezeigt. Einige Angaben sind verpflichtend, um aussagekräftige Profile zu erhalten; bei anderen Formularfeldern ist es Dir selbst überlassen, ob Du Angaben machst oder nicht.</small></em></p> <?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' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div<?php bp_field_css_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; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_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 if ( bp_get_blog_signup_allowed() ) : ?> <?php do_action( 'bp_before_blog_details_fields' ); ?> <?php /***** Blog Creation Details ******/ ?>3nd:
Nevertheless I have two questions regarding the design:
a) Why the 100%-width for
#wp_rar_user_roleis ignored?b) How can I place the third section (‘Mitglieder-Kategorie’) above the other two sections (or between the other two sections)?
4th:
I recognised as well: Deleting there:
<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>'profile_group_id' => 1,results in getting not only displaying the ‘base group’ of the xProfile fields, rather all fields of all field groups. 🙂Questions:
a) How can I get the names (titels) of the different xProfile field groups displayed as well?
b) How can I ensure, that only new members, which choose the user role ‘team’, get displayed the profile fields for teams and new members, which choose the user role ‘fan’, get displayed the profile fields for fans?
September 28, 2014 at 9:45 pm #202419In reply to: Seeking guidance on building multisided directory
DogGuyJosh
ParticipantI’ve played with various membership plugins and user role assignments, but the more I play, the more combinations I stumble upon and the more customization is required (or additional plugins for mapping and linking fields).
I’m currently exploring Users Ultra out of the box, which seems to do everything I want (minus geolocation), however their documentation isn’t very helpful so I’m waiting to hear from their support staff.
Regarding Geo Mashup, does it have the ability to map a custom profile field (address) to display a map on the user’s profile via shortcode?
The User Pro plugin is also starting to look like a viable option.
September 26, 2014 at 2:23 pm #2011561a-spielwiese
ParticipantSo, the following questions remain:
A. How can I make profile fields, which are asigned only to one member category / user role, ‘required’? Cfr. above.
B. Anyone knows, whether there is a function already written, which allows to change or delete the standard user role in WP MultiSite?
C. What is the purpose of the penultimate step of the instructions of @noizeburger? – What have I to check for seeing, whether it works or not?
D. Why does the last step of the instructions of @noizeburger do not work for me? How can I make the member category / user role unchangeable for my members?
@amalsh / @jonaro / @lebearuk / @kamillamonkey and @jeffacubed:Do you have any idea regarding this issues?
September 26, 2014 at 2:04 pm #2011511a-spielwiese
ParticipantFollow-up:
7th:
Capability Manager Enhanced to define custom user roles, if you’re not satisfied with the default wordpress roles (subscriber, contributor,…).
The first step is to create your user roleshttps://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/
As ready implied there: I did this – and it works so far.
8th:
Create a xprofile field (selectbox) with the title “User Role” and name the options “Band Role” and “Fan Role” – in my case. You can call them whatever you want. Place this field in the “base” profile group, otherwise it won’t be shown during registration. Also make the field “required”. In my case the user can’t decide, if the visibility of the field can be changed.
I did it already, when I installed and activated ‘BP Profile Search’-plugin – and it works.
However, to choosed a dropdown menu and the categories ‘team’ and ‘fan’.
9th:
I modified:
?php function custom_bp_core_signup_user($user_id) { $user_role = strtolower(xprofile_get_field_data('User Role', $user_id)); switch($user_role) { case "Band Role": $new_role = 'band'; break; case "Fan Role": $new_role = 'fan'; break; } wp_update_user(array( 'ID' => $user_id, 'role' => $new_role )); } add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);into:
function custom_bp_core_signup_user($user_id) { $user_role = strtolower(xprofile_get_field_data('Mitglieder-Kategorie (Team oder Fan?)', $user_id)); switch($user_role) { case "Team": $new_role = team'; break; case "Fan": $new_role = 'fan'; break; } wp_update_user(array( 'ID' => $user_id, 'role' => $new_role )); } add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);(I omitted
<?php, because I created not a new bp-costum.php, rather inserted the code into my yet existing bp-costum.php. I inserted the modified code above the line?>.)I did not understand, which effect this insertion should have – but, however, – as far as I see – it causes no harm.
Did anyone understood, for which purpose the above mentioned code is?
10th:
I inserted as well:
//hide the user role select field in edit-screen to prevent changes after registration add_filter("xprofile_group_fields","bpdev_filter_profile_fields_by_usertype",10,2); function bpdev_filter_profile_fields_by_usertype($fields,$group_id){ //only disable these fields on edit page if(!bp_is_profile_edit()) return $fields; //please change it with the name of fields you don't want to allow editing $field_to_remove=array("User Role"); $count=count($fields); $flds=array(); for($i=0;$i<$count;$i++){ if(in_array($fields[$i]->name,$field_to_remove)) unset($fields[$i]); else $flds[]=$fields[$i];//doh, I did not remember a way to reset the index, so creating a new array } return $flds; }into my bp-costum.php – again above the line
?>.It does not work:
— threre the user role is still changeable:
— http://1a-spielwiese.de/members/kampfsportlerinnenneuwied/profile/edit/group/1 causes an redirection error. – The redirection error disappears, when I’m not logged in as kampfsportlerinnenneuwied, rather as superadmin.
September 26, 2014 at 10:08 am #2011361a-spielwiese
Participant@ section 5th, part c):
'I guess it’s, because the “fan-question” requires as well an answer; but it is not answered, because that member is a team (not a fan).'It’s in deed that: When I change the (first) “fan-question” from ‘required’ into ‘not required’ it’s possible to save the answer of kampfsportlerinnenneuwied regarding the team question, and it is displayed correctly in the frontend:
http://1a-spielwiese.de/wp-content/uploads/2014/09/kampfsportlerinnen_answer.jpg
But I don’t want to change the “fan-question” from ‘required’ into ‘not required’.
—-
PS.:
The text of the second “fan-question” was still not displayed; and the text of the 5th question (‘Ergänzende Hinweise zu Deinem Geschlecht’) of the ‘base group’ wasn’t displayed as well:
http://1a-spielwiese.de/wp-content/uploads/2014/09/text_missing.jpg
It was because I deactivated (by chance) ‘Buddypress xProfile Rich Text Field’-Plugin. Reactivating it, both profile fields get displayed again.
September 26, 2014 at 8:38 am #201130In reply to: [Resolved] Translation for Spanish
ivanguinea
ParticipantSorry:
This is the list of my plugins:
BackWPup
Better WordPress Minify
Breadcrumb NavXT
Buddypress
BuddyPress Registration Groups
Formulario de Contacto 7
Cookie Law Info
Gears
Hide Admin Bar From Non-admins
Hide User Profile Fields
Límitador de intentos de login
Nav Menu Images
Paid Memberships Pro
PMPro Check Levels
PMPro Customizations
PMPro Email Templates
PMPro Register Helper
Regenerate Thumbnails
Remove Dashboard Access
Revolution Slider
Simple Social Icons
Editor de Roles
WordPress SEO
WP-Optimize
WPBakery Visual Composer
WP Google Fonts
WP Smush.it
WP Super Cache
WP User Frontend ProMy theme is Klein (http://klein.dunhakdis.me/)
September 24, 2014 at 8:34 pm #201028In reply to: Creating a new profile -“field type”
1a-spielwiese
ParticipantNow there is such text editor for form / profile fields:
https://buddypress.org/support/topic/new-plugin-xprofile-rich-text-field/
Thank you @needle (Christian Wach) for writing and @danbp for information.
PS.:
I just installed and activated the plugin, and my user ‘Fan Eins’ used it, for writing the word ‘Keine’ in italics:
September 22, 2014 at 12:18 pm #199585In reply to: Field name not displayed in Registration form
1a-spielwiese
ParticipantI can create a new group and also add fields to it(I can’t see how to display the new group in the rigistration form)
Only the ‘base’-group is currently displayed on the registration page. The other profile fields the user should fill in later (after registration). –
However, I would also prefer to place all field groups already within the registration page:
https://buddypress.org/support/topic/reshaping-the-registration-page/, section 4th.
September 22, 2014 at 6:22 am #199342In reply to: Field name not displayed in Registration form
triplebit
ParticipantBP ver 2.0.2
Theme name OneCommunity
I’m able to create a new field in another group
I saved changes
I installed Buddypress Xprofile Custom Fields Type and if I select for the field type something that offered by this plugin it works fine.
Regards
I. LesherSeptember 22, 2014 at 5:09 am #199338In reply to: Creating a new profile -“field type”
triplebit
ParticipantThank you all,
As ACF doesn’t do the job,
is there any other way to add an edit box to the fields profile as my client wants?
Thanks in advance
I. LesherSeptember 21, 2014 at 4:52 pm #198961In reply to: Creating a new profile -“field type”
1a-spielwiese
Participant“BP’s xProfile component is not intended to be used as text editor, like the one you use to publish posts.”
However, if someone decides to have xProfile-fields like ‘Favorite Books’ or ‘Favorite Movies’ it would be nice, if the users could style the
- titels in italics
- and the authors respec. directors in regular.
As well ul- and li-tags for lists like, ‘favourite bands’ or ‘favorite dishes’ would be nice.
September 21, 2014 at 4:36 pm #198958In reply to: Creating a new profile -“field type”
danbp
ParticipantSeptember 21, 2014 at 10:53 am #198939In reply to: Add a new field in the "profile fields"
1a-spielwiese
ParticipantYes:
- Settings/BuddyPress/Compenents: Activate ‘Exteneded Profiles’
then:
- user/profile fields/add field – select the ‘field type’ you like
September 20, 2014 at 7:15 am #198033In reply to: Confirm Email Address – Registration Form – HELP
WisdmLabs
Participant@monicajay:
You can easily add one more profile field as “confirm email” from dashboard->users->Profile Fields.
You don’t need to mess with bp files.
For validation, you just need to add few lines of code to match email ID using javascript(for client side validation). It doesn’t need high level of coding skill.
@dhyana:
Don’t add fields directly in the core file, Buddypress provides you option page to add fields here. dashboard->users->Profile Fields
FYI registration file is located at –
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.phpSeptember 18, 2014 at 7:22 pm #197868In reply to: Duplicate edit-profile groups
adamt19
ParticipantYa I’m using sweetdate. Definitely a child-theme issue. I restored to base SD and it went away. I’ve disabled all plugins (other than BP) and am deleting functions.php code like 100 lines at a time.
interestingly, I added a 4th profile group, and now this problem only occurs on the FIRST profile group. The second profile group (About) no longer repeats fields.
I know it’s not your job to support this! 🙂 just wondering if anything popped into mind. I have the production site in maintenance mode because if people edit + save their profiles with the repeated fields populated, it’s saving the information doubly as well, which will persist even after I fix this bug. D: eek.
September 18, 2014 at 7:13 pm #197867In reply to: Duplicate edit-profile groups
shanebp
ModeratorIt sounds like a theme issue.
Are you using a custom template for profile edit?The fact that the 3rd group doesn’t exhibit the same behavior is a clue.
Try adding a fourth group and see if the 3rd group starts to also duplicate fields.September 18, 2014 at 8:59 am #1973341a-spielwiese
ParticipantPS.:
I have no problem to access the BuddyPress Settings within the Dashboard (components, pages, settings).
I can as well access to “Benutzer/Profilfelder” (users/profile fields), “activity” and “groups” within the Dashboard.
September 18, 2014 at 8:57 am #197333In reply to: BuddyPress registration terms and conditions.
danbp
ParticipantUnder users> Profile fields> Add new field. This is only allowed to site admin, so i guess TOS is not intended to him.
Adding a TOS link to register page would be more usefull, no ?
This example snippet will do that (add to child-theme functions.php or bp-custom.php):
function bpfr_tos_link() { echo ' <b><i class="icon-thumbs-up"></i> Terms and conditions</b>'; } add_action( 'bp_before_register_page', 'bpfr_tos_link' );September 18, 2014 at 2:48 am #197316Iryna_B
ParticipantYes, I’ve seen the calculator, but that’s not exactly what I am looking for. I want a feature in Buddypress profile fields, that when a woman puts her child’s age or pregnancy week, she could see week by week development information on her profile page. Many baby web-sites have this feature, I was just wondering if BP has something similar.
September 17, 2014 at 7:28 pm #197289In reply to: [Resolved] Plugin suggestions please
danbp
Participant1 & 2) xprofile component let you add all fields you need – styling is theme related and on your side css work.
3) buddydrive
4) field values are clickable, this let the user find similar values on others profile.
5) buddypress default datajohnhutchy2014
Participanthmmmm!! Ive deleted the additional fields I added and change first name to full name, I then ran a bogus registration, and its given them a username as it should and then gave them a full name as inserted during the registration process, so fingers crossed it appears to have worked!
Now my next big dilemma is can I change those have already registered, so that their profiles read correctly ?? is there a way that you know of??
Thanks
danbp
ParticipantIf you created additionnally first and last name fields, it’s useless somehow, but i don’t think that it is related to your issue. Or only if you create those fields with an extra function related to the user table.
You have nothing to loose to remove them and give a try to your profile by using only the default name fields.
Username | Password | Email| ( wp part)
NAME (bp part)
The important thing to know is that the values of this 4 fields are stored in wp_users table.Any other profile field values are stored in _bp_xprofile_data table even if you create 20 first name or last name fields on the default showing BASE group.
What you can do is to give some guidance in the NAME field description, such as: enter here your first name and last name. Alas without any waranty that the user will follow your advice.
It’s exactly the same problem for the original wordpress “username” field. Some enter Bobby as username and John Doe into the name field (wow! correct !). Others do the opposite and others enter StupidCow in both fields. 😉
johnhutchy2014
ParticipantHi
“The NAME field in BuddyPress is intended to receive first and last name and replace the two original fields (first name, last name) coming with WordPress.”Does this mean that If I remove the first name and last name fields from ‘profile fields’ then that should fix the issue?
Thanks
-
AuthorSearch Results