Search Results for 'profile fields'
-
AuthorSearch Results
-
June 18, 2013 at 5:34 am #166246
In reply to: Using BuddyPress for Personnel Data
modemlooper
ModeratorBuddyPress profile fields are searchable.
June 16, 2013 at 2:54 am #166136In reply to: How to create different user accounts
kansas3d
ParticipantThank you mercime for your response!
I really appreciate it.I tried that plugin already and it’s not bad.
I’m just not sure how to realise two different user profile pages.
The yshould look different and have different tabs and fields.One user should be free the other one should have a monthly fee.
Do you know how to realise that?
Thank you a lot
June 15, 2013 at 1:35 pm #166110In reply to: Read birthdays from wp_bp_xprofile_data table
praveshraheja
Participantany one here to help me
installed and activated plugin and in widget area it is asking to put Birthday field Name (or ID)from where i can get this ?
and as said in plugin page Birthday field must have been previously created in the Buddypress profile page so i opened USERS >Profile Fields >Add New Field
here i user date selector to create it and after that in registration page user have to put their date of birth .but from where i can get Birthday field Name (or ID) please help .Thankyou
June 14, 2013 at 10:29 am #166036In reply to: Dynamic profile fields
Henry
Member@hnla i’ve made a start but have to pop out for a while. You can see where i’ve got to so far
June 14, 2013 at 9:50 am #166035In reply to: Dynamic profile fields
Henry
MemberLoving the second approach! although not as clean as the first approach, it’ll be much easier to do. jQuery show, hide and toggle could all be used to get the desired effect! i’m going to have a crack at it this weekend…
June 14, 2013 at 8:58 am #166032Reacton
ParticipantRESOLVED – None of the buttons, text fields where appearing in profile, comments etc because they are linked to the following field and I had set it to display none.
p:last-child {
margin-bottom: 0px;
display: none;
}June 14, 2013 at 8:52 am #166029In reply to: Dynamic profile fields
Hugo Ashmore
Participant@4ella one bump is sufficient!
@henrywright-1I think this is going to have attendant issues difficult to deal with. Gravity forms allows for forms with repeater fields and you can then tie submissions into existing functionality but profile fields are going to be hard to deal with, if they aren’t created. The repeater fields are created via JS on submission you have to tie it in to creating new profile field label etc then if you can do that you create those extra for all users.
What may be a better approach is to add in advance all the fields you may need then on front end hide them with JS and allow user to show them as and when needed, public profile would be set to ignore any empty fields & labels.
June 13, 2013 at 9:57 pm #165986In reply to: Dynamic profile fields
4ella
Participantnice idea, bump
June 13, 2013 at 1:22 pm #165919In reply to: Members directory sorting not working
chland
ParticipantCheck the value of the “bp-xprofile-fullname-field-name” entry in the WordPress “wp_options”-table.
SELECT * FROM wp_options WHERE option_name LIKE 'bp-xprofile-fullname-field-name'Its value should match the name of the profile field containing the Member-Name. Usually the same as whats returned by
SELECT name FROM wp_bp_xprofile_fields WHERE id = 1If the value in bp-xprofile-fullname-field-name is invalid (for example: in my case it contained “Name” but I renamed the first profile field to “Lastname, Firstname”), BuddyPress goes bonkers and tries to execute an invalid SQL-query resulting in an empty memberlist.
The main problem is the code located in “plugins\buddypress\bp-core\bp-core-classes.php” around line 260:
} else { $fullname_field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", bp_xprofile_fullname_field_name() ) ); $this->uid_name = 'user_id'; $sql['select'] = "SELECT DISTINCT u.{$this->uid_name} as id FROM {$bp->profile->table_name_data} u"; $sql['where'][] = "u.field_id = {$fullname_field_id}"; $sql['orderby'] = "ORDER BY u.value"; $sql['order'] = "ASC"; }$fullname_field_id is empty if the value in bp-xprofile-fullname-field-name points to an non-existing fieldname.
Hope this helps others with the same problem.
June 13, 2013 at 12:59 pm #165918In reply to: Dynamic profile fields
Henry
Memberbump
June 12, 2013 at 8:11 am #165820Reacton
Participant@mercime I did edit afew of the html files: header, page, index, sidebar, and footer. however I realised I may have worded that wrong, its when I post a comment it says who posted it the time and everything but the actual comment does not appear?
and if I add a profile field and fill it in it shows the profile feed name in the profile page but not what I typed inside it.
should I copy the javascript file over to my child theme also?
Thanks,
Lloyd
June 12, 2013 at 4:22 am #165811chriswinch
ParticipantThanks for your help.
Managed to get it working by using the wordpress user id as you mentioned.June 11, 2013 at 5:15 pm #165771@mercime
Participant@reacton What kind of modifications did you make on your BP Default child theme? Note that if made changes in the HTML markup in the template files of the BP-specific pages, you might also have to copy over and revise the JS files of BP Default theme.
June 10, 2013 at 5:36 pm #165713In reply to: Duplicate profile field names
danbp
ParticipantYou maybe right, and i’m unsure too. The best way to know, is to give a try. But do you absolutely need to ask twice for the user email ?
Or you could simply name the email fields differently.
Private mail
Work mailJune 10, 2013 at 5:06 pm #165707In reply to: Duplicate profile field names
danbp
ParticipantHi @henrywright-1,
i guess you can also filter by group profile ID
<?php if ( bp_has_profile('profile_group_id=2') ) : echo bp_get_profile_field_data( 'field=Email' ) endif; if ( bp_has_profile('profile_group_id=45') ) : echo bp_get_profile_field_data( 'field=Email' ) endif; ?>June 9, 2013 at 3:14 am #165641In reply to: [Resolved] Show empty fields in profile
junithorn
ParticipantJust an FYI to anyone curious, here is the solution:
<?php do_action( 'bp_before_profile_loop_content' ); ?> <?php if ( bp_has_profile('hide_empty_fields=0') ) : ?> <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php if ( bp_profile_group_has_fields() ) : ?> <?php do_action( 'bp_before_profile_field_content' ); ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <h4><?php bp_the_profile_group_name(); ?></h4> <table class="profile-fields"> <?php while ( bp_profile_fields() ) : bp_the_profile_field('hide_empty_fields=0'); ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr> <?php elseif ( !bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr> <?php endif; ?> <?php do_action( 'bp_profile_field_item' ); ?> <?php endwhile; ?> </table> </div> <?php do_action( 'bp_after_profile_field_content' ); ?> <?php endif; ?> <?php endwhile; ?> <?php do_action( 'bp_profile_field_buttons' ); ?> <?php endif; ?> <?php do_action( 'bp_after_profile_loop_content' ); ?>June 7, 2013 at 9:12 pm #165572In reply to: Error in saving profile but data is saved
devrap
ParticipantI’m having this same issue, but on a newer version of BP (1.7.1). I’ve submitted a ticket to report this bug, https://buddypress.trac.wordpress.org/ticket/5046#ticket. The error doesn’t occur if *all* fields of the extended profile are filled out.
@mercime
ParticipantJune 6, 2013 at 5:52 pm #165471In reply to: [Resolved] Show empty fields in profile
junithorn
ParticipantErr, sorry I had those two reversed.
June 6, 2013 at 4:59 pm #165466In reply to: Call specific User profile fields to a page.
Kingrammer
Participantsome more details if they will help,
It’s a brand new install of wordpress and buddypress. a multisite install, subdomains.
The only other plugin is Theme My Login. Custom Community Theme being used at the mo.
Would someone give me a nudge? Thank you so much to anyone with suggestions. Learning Buddypress and reading through the Ofcom radio broadcasting guides at the same time are pickling my brain!1
June 6, 2013 at 12:22 am #165433Shuji Suzuki
ParticipantThanks!
It indeed was.June 6, 2013 at 12:09 am #165432modemlooper
Moderatorlooks like your theme is hard handing your form css. you will need to find the css and edit it.
June 5, 2013 at 5:01 pm #165413modemlooper
Moderator$user_id = get this from WordPress;
xprofile_get_field_data( $field, $user_id );The way you are getting members id is only good on member pages. If you are on a blog post you can get the author id, if you want logged in user id get that.
June 5, 2013 at 12:01 am #165385In reply to: Display Profile Groups
@mercime
ParticipantDo you know how to rearrange the order of those groups?
@ebraxton30 near the bottom of the Extended Profile webpage I linked to above, I’ve listed ways to rearrange profile fields and profile field groups.June 4, 2013 at 7:22 pm #165376In reply to: Display Profile Groups
ebraxton30
ParticipantThank you so much. I was not clear on how it would display, but your example helped me out. I was using Gravity Forms User Registration add-on and those existing entries were not populating or connecting to the fields I had created through the profile group fields. This actually works much better for this particular site.
Do you know how to rearrange the order of those groups? My profile groups are not in the same order as they are in the admin area.
-
AuthorSearch Results