Search Results for 'profile fields'
-
AuthorSearch Results
-
September 29, 2013 at 2:56 am #171950
In reply to: considering BuddyPress
modemlooper
Moderator1. members are searched by profile fields
2. you can create unlimited profile fields
3. there may be an events plugin
4. BP has invite only private groups
5. there was a geo plugin, not sure its up to date
6. members are unlimitedSeptember 28, 2013 at 2:57 pm #171933In reply to: How to change the font color of Profile Fields.
wp_lover_4ever
ParticipantYou should look into the style.css of your theme, and edit the profile field div, and change the html color code from white to black.
You can edit your style.css of your theme either from the dashboard by going to editing, or through FTP access.Good luck!
September 28, 2013 at 2:23 pm #171932In reply to: How to change the font color of Profile Fields.
serie3369
ParticipantI would love to know this too. I cannot see my profile field label. Its white on white. How do I change the text color of that?
September 27, 2013 at 3:29 pm #171902In reply to: Adding classes to profile fields
applegateian
ParticipantThanks for the advice @danbp – I have given this a go but really can’t get the code correct.
Sorry to ask again, but with my four check boxes being as follows, can you let me know what to put in that snipped of code for functions.php? These are the checkboxes I have with the title Budget:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
Thanks,
Ian
September 26, 2013 at 5:17 pm #171860Hugo Ashmore
Participant@haykayltduk check through tickets if you haven’t as there was one a while back on issues with setting default select options or something to do with that aspect of profile fields.
September 25, 2013 at 2:39 pm #171782In reply to: Disallow HTML tags in profile fields
Henry
Memberfound it
bp_get_profile_field_dataSeptember 24, 2013 at 5:12 pm #171755In reply to: Xprofile check if user can view field
Remco Beugels
ParticipantThanks guys. bp_xprofile_get_hidden_fields_for_user() was the thing that I needed! This is my code:
<?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(); ?> <?php if(xprofile_get_field_data('field_name') && !in_array(xprofile_get_field_id_from_name('field_name'), $hidden_fields)) : ?> <p><?php echo xprofile_get_field_data ('field_name'); ?></p> <?php endif; ?>September 23, 2013 at 11:28 pm #171735In reply to: Xprofile check if user can view field
September 20, 2013 at 6:55 pm #171596In reply to: Adding classes to profile fields
danbp
ParticipantTry first and ask after when you receive some help ! 🙄
in the example, simply replace Amount by Budget and give it a try
The function checks for “Budget” and the “foreach” looks for the checked box. So you will finally only see the checked box value. This data can be styled by using this:
div.checkit span {your css stuff}September 20, 2013 at 3:09 pm #171591In reply to: Adding classes to profile fields
applegateian
ParticipantHi @chouf1
Thanks for this, but I don’t really follow. The moneytizer example has really confused me, can you let me know how I could do this if the title of my field is Budget and the four checkboxes are
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
September 20, 2013 at 10:55 am #171580In reply to: Geting input values in Edit Profile page
rchiriac
ParticipantI re-added this in the edit.php inside the while ( bp_profile_fields() )
do_action( 'xprofile_updated_profile', bp_displayed_user_id(), bp_get_the_profile_field_id(), trim(strip_tags(bp_get_the_profile_field_value())) );Now… Do you know what is the hook do to upon user registration?
September 16, 2013 at 8:59 pm #171393In reply to: Adding classes to profile fields
danbp
ParticipantYou create a new field on profile (ie. title=Amount)
This field is a checkbox type field
You have 4 items to check, so you need to create 4 checkboxes.The field name called by the function correspond to the title you give to your new field. So you actually have 1 field name and 4 checkbox values.
The example above will output the checked value by the user on the member profile header (bp_before_member_header_meta)
function my_moneytizer() { if ( $money = xprofile_get_field_data( 'Amount', bp_get_member_user_id() ) ) : foreach ( $money as $mon ) { echo '<br/><div class="checkit">'; echo '<span>Earned today: </span>'; echo $data; echo '</div>'; } endif; } add_filter ( 'bp_before_member_header_meta', 'my_moneytizer' );September 16, 2013 at 3:13 pm #171381In reply to: Adding classes to profile fields
applegateian
ParticipantThanks @danbp – I’m not entirely sure how to create that filter function, can you expand on that?
The four unique names are:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
September 13, 2013 at 9:09 am #171277Squirrel
ParticipantMy portal theme only lets admin / editor users view all members profiles or other users view other profiles if they are friends. If you want more info on how I did this let me know.
September 13, 2013 at 12:19 am #171263In reply to: New profile fields!
bp-help
Participant@budskab
The code I provided calls the current user dynamically if that is what you are wondering. Even thought it is one link it will take each user to their edit profile field group you created. Feel free to experiment around with it. Try these as well:<a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/1/'; ?>">Edit My Profile</a></div>Or:
if ( is_user_logged_in() ) { <a href="<?php echo bp_loggedin_user_domain(); ?>">Profile</a>//link to users profile <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/friends/'; ?>">Friends</a>//link to users friends <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>">Messages</a>//link to users messages }As a final thought if you add those links I would wrap them in a conditional to check if the user is logged in like the links just above.
September 12, 2013 at 9:47 pm #171253In reply to: New profile fields!
budskab
ParticipantAdding an image would be easy enough yes..
Thanks for the line.. I’m still new to PHP, so this is the hardest part right now 🙂 But the line above seems logic… could i then just change the ‘profile/edit/group/2/’ part to other profile URLS? Sure would be cool. Our users are most likely not that techie and we desperately need to make it easy filling out their profiles 🙂
Can I change the standard registration fields in any way?
September 12, 2013 at 9:36 pm #171252In reply to: New profile fields!
bp-help
Participant@budskab
This link should work below. You could also add an image to replace the text providing you know some basic html.<a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/2/'; ?>">Edit My Profile</a></div>September 12, 2013 at 9:23 pm #171251In reply to: New profile fields!
budskab
ParticipantHi
Ahh… There they are… Is there a way to make them a little more visible for the users?
Otherwise could we link to “../members/admin/profile/edit/group/2/” in a usermanual, and then the user will be directed to their own profile edit page?
September 12, 2013 at 9:14 pm #171250In reply to: New profile fields!
bp-help
Participant@budskab
They are not visible until the user fills them out. In the My Account Menu at the top right hover over it and select Profile/Edit. When you are on the next screen below the profile tabs you will see “Base” and whatever other field group you created. By default you will be on “Base” these fields are the ones that correspond with your registration form. The other Field Group button you made will display the other fields you created within that field group. This is assuming your theme is functioning correctly. If you are still having issues you may want to try some basic troubleshooting by activating a known theme that works well with BP like Twenty Twelve or bp-default as well as disabling any plugins other than BP. Good luck!September 12, 2013 at 6:17 pm #171233Ben Hansen
Participantyou can’t really hid the entire profile out of the box but you can hide most of the fields and info by setting the default visibility in the profile field setup screens.
September 12, 2013 at 2:23 pm #171198In reply to: Credential system for members of certain groups
Artisantopia
Participantok – just adding this here so I have everything in one place:
How to Add an Image Field to Buddypress Extended Profile FieldsSeptember 12, 2013 at 2:03 pm #171196In reply to: Credential system for members of certain groups
Artisantopia
Participantooh what about this one for the file uploads:
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/Can anyone advise which of these options works best?
thanks
September 12, 2013 at 1:58 pm #171193In reply to: Credential system for members of certain groups
Artisantopia
ParticipantWhat if I just set up xprofile fields in a separate profile field group? If I use a field type of multi line text box then they could enter unlimited credentials. This field could then be searched couldn’t it?
hmmmm, but then how to get the file upload in?..
September 12, 2013 at 1:37 pm #171192In reply to: Credential system for members of certain groups
Artisantopia
Participanthttps://wordpress.org/plugins/buddypress-profiles-manager/
ok, doing some more research and I’ve found this plugin which would possibly work by only showing the credentials profile fields for the experts. I’m not using S2member, but I am looking at other membership plugins, or I assume I could just use a capability manager to create new roles….
Yes? No? Maybe?
ok – back to Google for some more research…
September 11, 2013 at 8:41 am #171135In reply to: Remove the Name (required)
danbp
Participanthi @famous,
so far i know, is the registration process a fully part of WordPress who use a function called wp_create_user.
This function requires 3 variables: name, pwd and user email to authenticate.As a templated plugin, BP let you handle visualy a part of this process, particulary with extended profile fields. But BP doesn’t alter the orignal registry handling. The only 2 other things you can do is to change the NAME field name and allowing synchronization between WP and BP.
So the BP name field stays mandatory in any case and you cannot remove it.
-
AuthorSearch Results