Search Results for 'profile fields'
-
AuthorSearch Results
-
May 16, 2014 at 8:22 pm #183027
In reply to: [Resolved] How to hide more than one profile field?
shanebp
ModeratorTry:
while ( bp_profile_fields() ) : bp_the_profile_field(); if ( bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' && bp_get_the_profile_field_id() != 'ID # 2nd field YOU WANT TO SKIP' ) :May 14, 2014 at 10:59 pm #182934In reply to: Select Box – on Select 'Other' open Textbox
julianprice
Participant@antimuffin are you referring to extending profile fields. If so here’s the link for that which supports drop down select. however unsure if it supports conditional/dependent fields. You may have to look into a plugin.
i.e
Drop Down Select:
– option 1 NAME
– option 2 NAME
– option 3 Other
if other [TEXT BOX]Anyways here’s the link to codex https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/
May 14, 2014 at 3:16 pm #182889In reply to: Probleme using BP core functions
mika89
ParticipantIt doesn’t seem to work :(.
Maybe I’m not doing it in the good way…I also tried the function
/** * Search the friends of a user by a search string. * * @param string $filter The search string, matched against xprofile fields (if * available), or usermeta 'nickname' field. * @param int $user_id ID of the user whose friends are being searched. * @param int $limit Optional. Max number of friends to return. * @param int $page Optional. The page of results to return. Default: null (no * pagination - return all results). * @return array|bool On success, an array: { * @type array $friends IDs of friends returned by the query. * @type int $count Total number of friends (disregarding * pagination) who match the search. * }. Returns false on failure. */ function friends_search_friends( $search_terms, $user_id, $pag_num = 10, $pag_page = 1 ) { return BP_Friends_Friendship::search_friends( $search_terms, $user_id, $pag_num, $pag_page ); }I called it this way :
friends_search_friends('', $user_id, 0, 0);
But doesn’t workMay 13, 2014 at 8:30 am #182826In reply to: 18 and older only signups
sharmavishal
Participant1. Use BP Xtra Signup plugin and add an xprofile field of birth date
2. Not sure on this but this plugin might help Buddypress Xprofile Custom Fields
May 7, 2014 at 9:05 pm #182622In reply to: Limit members search to full name only
kevinmorton
ParticipantI’m looking for a solution to this as well. With a members directory that only shows a list of member names, the results are unintuitive unless I have a way to only search the member name, rather than all profile fields.
May 6, 2014 at 2:45 pm #182553In reply to: WP profile fields not editable in BP profile
elaborate
ParticipantI think I need to clarify that it’s the not being able to configure the WordPress profile in BuddyPress that I think is the issue. Displaying the fields is another side of it that I might agree should be left to a plugin developer.
…it will require keeping up with WP if they decide to switch which fields are included on that page.
I agree that this is an issue, but realistically, the WordPress profile hasn’t been updated in several years, apart from very recently when they actually removed fields in an effort to simplify it, so I doubt they intend to add anything to it either.
The fields at wp-admin/profile.php are very odd, and not appropriate for most BuddyPress installations…
As I mentioned above, those fields (AIM, Jabber and Yahoo/gTalk) were recently removed.
As noted in the ticket, First Name and Last Name are the two possible exceptions I see here.
That just leaves display name selection, nickname and website; email and password are configurable in BuddyPress and you already display username and bio on the profile when Extended Profiles are disabled. Why not allow the user to edit them too and add the remaining three fields? This would effectively move the profile to the front-end and nobody would need to configure their profile in two places again, which I think is the underlying issue here.
…it causes problems when other plugins add their own (hardcoded) fields, which BP won’t know about
I’m getting into deep water, but wouldn’t adding a hook before and/or after the fields be sufficient to deal with that?
May 6, 2014 at 1:56 pm #182550shanebp
ModeratorYou may be interested in this premium plugin which allows you to select which profile fields appear in the listing for members in a group:
May 6, 2014 at 12:11 pm #182543In reply to: WP profile fields not editable in BP profile
Boone Gorges
Keymaster> I can’t find any arguments for not including the WordPress profile in BuddyPress.
The arguments are:
– The fields at wp-admin/profile.php are hardcoded in WP. There’s no way we can ask WP which fields it provides in a programmatic way; we’d have to hardcode them as well. This is inelegant; it causes problems when other plugins add their own (hardcoded) fields, which BP won’t know about; and it will require keeping up with WP if they decide to switch which fields are included on that page.
– The fields at wp-admin/profile.php are very odd, and not appropriate for most BuddyPress installations (or most websites that were built after 2004 – who uses AIM, and who among them would want to store that information in their WP profile?)As noted in the ticket, First Name and Last Name are the two possible exceptions I see here.
May 5, 2014 at 12:00 am #182486In reply to: Can't locate registration page file
Joe LeBeau
ParticipantBuddypress really should have a character limit option for the profile fields and comments…
May 4, 2014 at 4:46 pm #182471In reply to: Text in fields linked – by design?
bp-help
Participant@sooskriszta
Sounds cool if there was a box or something beside each field in the dashboard/profile fields for admins to choose to be linkable.April 29, 2014 at 3:01 pm #182194Mathieu Viet
ModeratorHi,
Make sure to leave the base group profile fields available for all users
Then explore in this direction :
/* Profile display */ function excluding_group_id_depending_on_user_role( $args = array() ) { if ( user_can( bp_dispayed_user_id(), 'capability_to_check' ) { $args['exclude_groups'] = "2,3,4"; //Comma-separated list of profile field group IDs to exclude } return $args; } add_filter( 'has_profile', 'excluding_group_id_depending_on_user_role', 10, 1 );/* profile editing */
It will be a bit more complex as you’ll need to filter ‘xprofile_filter_profile_group_tabs’ and use a pattern to exclude the tabs you don’t want the role to edit.Finally to restrict group creation, i’ve shared a code on the BuddyPress fr community :
http://bp-fr.net/agora/sujet/restreindre-la-creation-des-groupes-a-des-roles-wp/April 26, 2014 at 10:30 pm #182114investacube
ParticipantThanks for the quick reply @naijaping, I should have said that at the moment members changing their avatars is the only profile update that shows in my activity stream. I would like to add to that the changes made to personal profile fields. I appreciate the link to bp-tricks, I haven’t yet ventured into coding my own stuff but do you think the avatar change code is something that could be tweaked to include profile fields changes?
April 25, 2014 at 9:58 pm #182085klogan2
ParticipantSO it seems the ‘Profile Details’ portion of the registration form, in spite of the fact that the people that wrote the BP app allow for ‘required’ fields in the ‘Profile Details’ portion of the form, neglected or forgot to include validating the ‘Profile Details’ portion of the form (OR chose NOT to),,,, anyone know how to do this???,,, as efficiently as it’s being done for say the user/email/password fields???
I’ve been reading up on validating forms,,and it actually seems like something I could do, but not without rewriting the BP files,,which I would really like to avoid (BP updates would overwrite the changes). I would think it might be possible to do via the theme function files,,,but beyond adding a function here, or a filter there, my knowledge/experience wouldn’t be sufficient I think to accomplish this task,,,
So,,any ideas/methods how to deal with this?? Answers would be greatly appreciated.
Cheers, Kevin LoganApril 25, 2014 at 8:21 am #182040klogan2
Participanthmmm, no,, maybe I didn’t ask a silly question, I don’t think there ARE error fields for the extended profile registration fields,, along the lines of
bp_signup_password_errorsand thendo_action( 'bp_signup_password_errors' );in the appropriate places,,, which in this case would seem to be in thediv class=editfield.
Don’t know yet how to solve this,,, but thinking about itApril 25, 2014 at 5:20 am #182034In reply to: 2.1 top features
SK
ParticipantI’ll revise my top 5 to:
April 24, 2014 at 3:09 pm #181985klogan2
ParticipantThe page does refresh (when a required field is left empty), drops one or 2 of the values (like month & year in a birthdate field),,, but doesn’t show the error messages for any blank fields in the Profile portion of the form.
Thanks for your suggestion,,, I’d say that’s probably way over my head,,,I might be able to do it ‘eventually’,, but I hope an easier solution comes up 🙂
April 23, 2014 at 8:03 pm #181946In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantYeah it might be correct, but it doesn’t work. I have tried pretty much anything regarding the body class, but the page doesn’t output anything i can use. It works at the main profile page, where my last slug is unique to the username, but as soon as you click on any tabs at the profile page, its lost, since the slug change to a more universal one. Here´s some of the things i tried, to no luck. https://wordpress.org/support/topic/give-pages-truly-unique-id´s-classes-possible?replies=23
This is the page output:
[page] => 0 [pagename] => profile [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => profile [static] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [comments_popup] => [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [fields] => [menu_order] => [category__in] => ArrayAs you can see the page doesn’t output a class unique to the profile, so doesn’t seems to work to filter the bodyclass.
Must be another way of doing this?
April 23, 2014 at 3:34 pm #181941elaborate
ParticipantI guess I might as well add the details now.
My work so far has involved editing the bbPress and BuddyPress template files. I add the forms from the bbPress Edit page’s template file and paste them in the BuddyPress Settings page’s template file, which I then use.
My problem is that the data for the users profiles does not appear in the relevant bbPress Edit fields now that the forms reside on the BuddyPress settings page with a different URL.
I looked up how HTML forms work with PHP and found out that the
actionattribute in a<form>tag is the URL for the destination of the input, so you might think that changing the URL of the bbPress forms to the BuddyPress Settings page would solve the problem, but it doesn’t.Doesn’t the user data need to be sent to and retrieved from the database somehow?
Thanks.
April 17, 2014 at 10:58 pm #181622In reply to: Proximity Search
csimpson
Participanthi there, ive found something that appears to do the job tonight as i require this to.
You will need to use “xprofile-fields” plugin and then use the wp plugin at https://geomywp.com/ used in conjunctions with their paid add-on found here: https://geomywp.com/add-ons/xprofile-fields/
regards Craig
April 16, 2014 at 9:14 pm #181487In reply to: wp-admin/profile.php content in Buddypress Profile
modemlooper
ModeratorMost plugins that add user fields are for the WordPress profile. The new Extended profile in the admin is for BuddyPress specific user information.
April 16, 2014 at 1:00 pm #181336In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantWell, this didn’t work.. It only works for my main profile page where my slug/url is unique to the profilname. If i click other fields in the profile page, notifications, activity etcetera the url changes, and so does my css changes.
Any other ideas?
April 15, 2014 at 1:27 pm #181291Henry Wright
ModeratorThe best approach is to list all of the places a member can enter text then try to lock each one down.
Off the top of my head I can think of:
The WP admin area – creating posts and pages etc
Comments (if you have comments enabled)
The BP profile area (xProfile fields)
The activity stream (commenting, replies, new updates etc)
Private messaging?
April 12, 2014 at 3:33 pm #181170In reply to: Buddypress x-profile visibility doesn't work
serks
ParticipantHi have a very similar issue and I think it may be related to the same cause.
I have set up a xprofile group where I have a bunch of different radio fields like so…
About You Widget
Show | HideDisplay Avatar On Profile
Show | HideSubscribed Member Badge
Show | Hideetc.
I have put code all around my website to show or hide things according to a users settings and it all works as it should BUT, the only problem is that the settings don’t take effect until a user goes to edit the particular profile group and clicks the ‘Save Changes’ button.
Even though the defaults are set as they should be initially, they do not actually work until the user saves them.
Any help on this issue would be much appreciated.
Thanks
April 8, 2014 at 6:06 pm #180981In reply to: Statistics about my communinty
shanebp
ModeratorWe provide a premium plugin for reporting:
But it does not show data re profile fields.
Re ‘checked boxes’ – you would want a total of the number of members who have checked box ‘x’ or a list of all members who have done so ?
April 7, 2014 at 5:33 pm #180922In reply to: restrict listing users see certain users
shanebp
ModeratorIf ‘offer service’ and ‘search service’ are extended profile fields, you can adapt this example:
-
AuthorSearch Results
