Search Results for 'profile fields'
-
Search Results
-
Hello,
I’ll break this down into 2 parts.
xProfile Custom Fields
I’ve looked around and can’t seem to find the solution to my problem.Basically what I’m trying to do is display a Headline at the top of my users profile if they have filled out the custom profile field, if they haven’t filled it out yet then I wanted to display their fullname. Sounds easy right? Yeah but I can’t seem to get it right.. I can get it to display just the username but when it displays the headline it’s also displaying the username.
I’m also doing this outside of the profile_loop.php it’s inside the profile.php using a highly edited version of the cosmicbuddy template. If anyone could help me I’d greatly appreciate it!
Here is an example of what I want the page to display and what my code some-what looks like:
if bp_profile_field_data( ‘field=Headline’ ) is filled out (this is the line i’m having problems with)
bp_profile_field_data( ‘field=Headline’ ); display headline
else
bp_user_fullname(); display fullname
endif
Profile User Css Customization
With myspace and other popular social networks around users want to be able to customize their profile to be unique from other users. I find that this also makes them more active on their profile as well as the website.I’m trying to do the same thing with CSS by letting the user edit their profile page background using div style. I have it working and here is the code I used along with adding the appropriate xprofile custom fields:
<div style=”background-color:<?php bp_profile_field_data( ‘field=Background Color’ ); ?>”>
This is just a small snippet of what I want to achieve, I’ve also created background-image, background-repeat, etc. You would need to create an xprofile field called Background Color and the user would need to type either the color word or an HTML color such as #FF0000 which is Red. Then you would have to place the div into your template wherever you want them to change the background color then close the div.
I’m new to buddypress and I’d call myself a beginner in php so I’m sure there are much better ways to go about this, I simply want to share what I’ve thought up so far and see what others have to say about this.
Ideally I would like to display the background color if only they have entered anything into the field so it would look like..
<div style=”
if bp_profile_field_data( ‘field=Background Color’ ); is filled in
then display background-color: bp_profile_field_data( ‘field=Background Color’ );
endif
“>Another thing I’m trying to do is allow the user to display a banner above their profile if they specify the URL in the custom profile field. The problem I’m having is getting it to display a specific width and height without creating a blank banner space on another users profile that has no image. If i just put the profile field it doesn’t assign a width and height to the URL which means they could put any size of image.
It would have to look something like
if bp_profile_field_data( ‘field=Banner Image’ ); is filled in
then display <div style=”width: 600px; height: 100px;”> <img src=” bp_profile_field_data( ‘field=Banner Image’ ); “> </div>
endifSo hopefully someone can have some input on anything I’ve mentioned above
;I’d love to see (and would/will create it if I can figure out how) the ability to, via enhancements to the Group Management plugin (“BP Group Management” by Boone Gorges) the ability to
(a) Remove a member from a Group when managing the GROUP (“remove” might actually be the existing “kick and ban” option but “kick and ban” sounds much more extreme than just “remove” so I’m scared to click it
)(b) Add / Remove a User to / from one or more Groups when editing the USER (preferably in conjunction with the http://buddypress.org/community/groups/creating-extending/forum/topic/desired-plugin-for-admin-interface-view-edit-of-buddypress-registration-fields/ “desired” plugin
)So, am I crazy or what?

OR {hopeful look} maybe someone has already created such a plugin and I’m just missing it?
I’d love to see (and would/will create it if I can figure out how) the ability to, via a plugin which adds these features to the admin interface not via manual code changes, a way to
(1) View the BuddyPress profile data, including any “extended” fields”, for each user via the Admin interface
(2) Update the BuddyPress profile data, including any “extended” fields”, for each user via the Admin interface
Right now I can only see the data gathered on the BuddyPress registration screen in each indivdual user profile, and only the User can edit the data for those fields.
In the admin interface I don’t see a way to get a listing of the field data, or to edit the data in those fields. For instance, I’m collecting User Display Name, City, State, Donation E-Mail Address, Donation on Behalf of Walker, and Donation Receipt Reference Number and I’d love to see all (or a selectable sub-set of) the registration data fields in a grid for every user (or a selectable sub-set of users i.e. based on profile field value (i.e. Walker1) or based on Group(s)) then be able to select an individual user record and edit that profile data if needed.
| Edit | Display Name (core field) | City | State | Donation E-Mail Address | Donation on Behalf of Walker | Donation Receipt Reference Number |
| X | userDisplayName1 | Denver | CO | user1@domain.tld | Walker1 | user1-receipt-reference-number |
| X | userDisplayName2 | Denver | CO | user2@domain.tld | Walker2 | user2-receipt-reference-number |
| X | userDisplayName3 | Denver | CO | user3@domain.tld | Walker1 | user3-receipt-reference-number |
| X | userDisplayName4 | Denver | CO | user4@domain.tld | Walker3 | user4-receipt-reference-number |
So, am I crazy or what?
OR {hopeful look} maybe someone has already created such a plugin and I’m just missing it?
This is just an idea I want to float.
It would be nice if users could create custom/additional profile fields. Specifically, profile fields such as education and employment where they could “add more” fields to jobs/schools/etc. Something like Facebook.
Topic: Conditional Profile Fields
I was wondering if anyone has experimented with a method for adding conditional profile fields; enabling certain profile field(s) dependent upon the selected value of a separate profile field.
A perfect application for this type of relationship between fields would be user locations. Example: The selectable values of a “State” or “Providence” or “Region” dropdown select box would be populated dependent upon the value of a “Country” dropdown select box.
I’m assuming this extension of functionality would be best suited as a plugin?
At first I thought I could just loop over all the profile fields w/ the bp_has_profile() loop, but that didn’t seem the most logical method — nor did it seem to work.
Second stab? That failed.
What do I need to do?
Topic: New to buddypress
I would like to add dynamically generated checboxes (I don’t want they be a static values which can I set in the admin but I would like to collect data with my own php functions). Is there any action or filter to add custom fields and save them? It is possible to create custom field type (which will include functions and data which I need and I will be able to simple add it or remove from the profile through the “Profile Field Setup”) through some filter or action? I was looking for solution how can I add custom fields with coding for quiet long time but I didn’t find anything useful. Thank you very much for any help.