Search Results for 'profile fields'
-
AuthorSearch Results
-
October 11, 2013 at 1:31 pm #172675
In reply to: Adding classes to profile fields
applegateian
ParticipantSorry, meant to put @bphelp
October 11, 2013 at 1:20 pm #172674In reply to: Adding classes to profile fields
applegateian
ParticipantHi there
Thanks @bp-help for the response. I’m not inspecting on the edit profile page, no, because I am displaying the ‘budget’ information for site visitors.
It’s on the view profile page ( /profile) that I am showing this field using:
<div id="profileProjectSize"> <?php $data=bp_get_member_profile_data(array('field'=>'Budget')); echo $data; ?> </div>If I go to edit profile page, I can see the following for a checkbox:
<label><input type="checkbox" name="field_229[]" id="field_758_0" value="£0-£100k"> £0-£100k</label>How would I get that unique id to show on the view profile page where I am using it?
October 11, 2013 at 1:00 pm #172673In reply to: Adding classes to profile fields
bp-help
Participant@applegateian
I just created a checkbox called “Sign up for our newsletter” and this is what is return when I inspect the element:<div class="editfield field_21 field_sign-up-for-our-newsletter"> <div class="checkbox"> <span class="label">Sign up for our newsletter </span> <label><input checked="checked" type="checkbox" name="field_21[]" id="field_22_0" value="Yes"> Yes</label> </div> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-21"> This field can be seen by: <span class="current-visibility-level">Anyone</span> <a href="#" class="visibility-toggle-link">Change</a> </p> <div class="field-visibility-settings" id="field-visibility-settings-21" style="display: none;"> <fieldset> <legend>Who can see this field?</legend> <ul class="radio"><li><label for="see-field_public"><input type="radio" id="see-field_public" name="field_21_visibility" value="public" checked="checked"> Anyone</label></li><li><label for="see-field_loggedin"><input type="radio" id="see-field_loggedin" name="field_21_visibility" value="loggedin"> Logged In Users</label></li><li><label for="see-field_adminsonly"><input type="radio" id="see-field_adminsonly" name="field_21_visibility" value="adminsonly"> Admins Only</label></li><li><label for="see-field_friends"><input type="radio" id="see-field_friends" name="field_21_visibility" value="friends"> My Friends</label></li></ul> </fieldset> <a class="field-visibility-settings-close" href="#">Close</a> </div> <p class="description"></p> </div>I could see how this could be targeted. Are you inspecting on the edit profile page that has the checkbox’s?
October 11, 2013 at 12:42 pm #172671In reply to: Adding classes to profile fields
applegateian
ParticipantHi @bp-help yes I have, there is no id coming through on the checkboxes, they are coming out without any html wrapped around them, eg:
<div id="profileProjectSize"> £0-£100k, £100k-£500k, £500k-£2m, £2m+ </div>I can’t see how to give each one an ID
ThanksOctober 11, 2013 at 12:09 pm #172670In reply to: Adding classes to profile fields
bp-help
Participant@applegateian
Have you tried using firefox in conjunction with firebug to target those elements? You could also use google chromes or IE’s dev tools.October 11, 2013 at 12:04 pm #172668In reply to: Adding classes to profile fields
applegateian
ParticipantThe site is behind a password, anywhere I can DM you?
I just can’t see how to add a unique id to each checkbox.
Thanks,
Ian
October 8, 2013 at 2:54 am #1724463rdaxis
ParticipantI really appreciate your help. Thats the first bit of code that has worked to display the xprofile fields and iv tried allot.
Im not sure if you could help me with this one aspect. I would like to also call something like google+, twitter or facebook links that I created in the xprofile fields.
I can call those fields with the code posted here, but im wondering if @henrywright-1 or anybody stopping by this post could help with the code needed to make the called data as a link with alt text so it looks like Twitter, Google +, Facebook.
Thanks for any help or pointers
October 7, 2013 at 6:35 pm #172414In reply to: Adding classes to profile fields
Henry
Member@applegateian each checkbox should have a unique ‘id’ which you can use to target specific checkboxes.
Do you have a link to your page with the checkboxes on it?
October 7, 2013 at 5:36 pm #172411In reply to: Adding classes to profile fields
applegateian
ParticipantSorry to chase, can anybody help clarify this? Thanks again.
October 7, 2013 at 5:09 pm #172409Henry
MemberYou have to give the field a title when you add new profile fields via WP Admin > Users > Profile Fields. Whatever you’ve chosen as your field title is what you should use
October 7, 2013 at 4:09 pm #172404In reply to: [Resolved] Order Members Loop by Custom Field Value
buddhatunes
ParticipantAny suggestions on how to do with an existing drop-down select box field type in Profile Fields?
October 4, 2013 at 9:07 am #172301In reply to: Adding classes to profile fields
applegateian
ParticipantThanks @modemlooper
So the checkboxes for ‘budget’ fall under a third tab within admin:

Would that need something different?
October 4, 2013 at 7:56 am #172299In reply to: Adding classes to profile fields
modemlooper
ModeratorIf you are referring to what the users see and not the admin like in your screenshot you can just target with CSS no need to use a function.
The CSS is:
#buddypress .standard-form .field_2 div.checkbox label
field_2 could be different depending on where you placed the checkboxes in the admin.
October 3, 2013 at 8:41 pm #172280In reply to: Adding classes to profile fields
applegateian
ParticipantCan anyone help me with this one? I know it’s probably really simple but I’m struggling to get this to work.
Thanks
October 3, 2013 at 6:43 pm #172271In reply to: Add extended profile fields programmatically
modemlooper
Moderator// Insert New Field xprofile_insert_field( array ( 'field_group_id' => 1, 'name' => 'Twitter', 'field_order' => 1, 'is_required' => false, 'type' => 'textbox' ) );October 3, 2013 at 1:33 pm #172254In reply to: Show custom user meta fields on user profile page
pacija
ParticipantThank you for your reply. Unfortunately my knowledge of php and wordpress APIs is not sufficient for this. I was hoping to have something to click on, or at least some code snippet.
Perhaps more people will find this feature useful, and someday it gets included in Buddypress.
October 3, 2013 at 1:07 pm #172252In reply to: Show custom user meta fields on user profile page
Hugo Ashmore
ParticipantYou would need to build a script to map the usermeta over to bp profile fields, then they will display automatically in the profile screens.
October 3, 2013 at 12:09 am #172225In reply to: How to change the font color of Profile Fields.
bp-help
Participant@serie3369
You really should still make a child theme and add that that to it. Otherwise if you update your theme it is likely that it will be overwritten.October 2, 2013 at 11:41 pm #172223In reply to: How to change the font color of Profile Fields.
serie3369
ParticipantFIX: I downloaded the firefox addon FireBug. I clicked on the label box for one of the Profile fields that were all showing up white text and were not able to see. This addon allows you to see where the source of the code lies. I found mine in my themes Bootstrap.min.css file. For an easier way to read your code or search for the text color, use your bootstrap.css file. But all final code changes need to be in bootstrap.min.css. My code looks like below:
.label,.badge{display:inline-block;padding:2px 4px;font-size:11.844px;font-weight:bold;line-height:14px;color:#000;text-shadow:0I already changed the color to black, before it would’ve been #fff
October 2, 2013 at 12:21 pm #172192In reply to: Search page to search custom user fields
shanebp
ModeratorYou could use this or study it to write your own:
https://wordpress.org/plugins/bp-profile-search/October 2, 2013 at 11:10 am #172186In reply to: displaying bp_has_members by profile fields
yasser_148
ParticipantOctober 2, 2013 at 10:57 am #172185In reply to: Search page to search custom user fields
KS Web Designer
ParticipantSo I’m trying to figure this out on my own and I got as far as finding out that since BuddyPress 1.7 there’s a new class: BP_User_Query – which should be similar to the standard wordpress WP_User_Query
However the official BuddyPress documentation page for the class is just a holding page (argh!) – https://codex.buddypress.org/developer/class-reference/bp_user_query/
Does anyone have a basic ‘Hello World’ example they could give me for pulling in a list of users based on a custom profile field?
I’d really appreciate it.
ThanksOctober 2, 2013 at 4:57 am #172169In reply to: registration form with minimum age
bp-help
Participant@randygootjes
This would be easy using just BuddyPress Xprofile fields:
https://codex.buddypress.org/user/buddypress-components-and-features/extended-profiles/
You could create a dropdown menu and make it required and only allow the selection from say 21 to 120 years of age (“Not like most of us will live that long anyway unfortunately”) But also have a check box that is required that all information entered to join the site is true etc.October 2, 2013 at 2:33 am #172163In reply to: How to change the font color of Profile Fields.
bp-help
Participant@serie3369
The codex is your Buddy:
https://codex.buddypress.org/legacy/building-a-buddypress-child-theme/October 2, 2013 at 2:11 am #172161In reply to: How to change the font color of Profile Fields.
serie3369
Participantokay first, how do you create a child theme?
Second, how do you make the child theme to only change the color of the profile fields from white to black.
I would love some step-by-step here since I know little about editing code and what not.
P.S. I do have my themes original style.css posted above for convenience.
PLEASE HELP!
-
AuthorSearch Results