Search Results for 'profile fields'
-
AuthorSearch Results
-
December 26, 2009 at 6:20 pm #59522
In reply to: Friends and Groups for BuddyPress 1.3
teebes
ParticipantI love the idea of as an admin, creating a relationship between profile fields (not necessarily required ones) and groups. In fact, I was scouring around my new 1.2 install hoping this feature was already live
I see it as a good way to get folks involved in their specific demographic while always having the ability to leave the group if they want.I see this as an option when defining a group, keeping the current public/private options intact, just adding another criteria or ‘group profile rule’.
December 24, 2009 at 5:47 pm #59481sclough
ParticipantI never could get this to work right. I had to instead create a plugin that hooked into actions to save the data and then hooks into the template to add the edit fields on the group profile page.
December 23, 2009 at 3:14 pm #59405In reply to: Enterprise Buddypress
peterverkooijen
ParticipantThe name field was previously split into “First Name / Last Name” fields, but this is an issue for internationalization. In future versions it may be possible to apply rules to profile fields that will determine the content allowed.
That is such a silly argument. 90 percent of the civilized world uses firstname + lastname. Why make life difficult for the rest of us just because theoretically a few places in the world use only one name or three names or whatever? Why not let them hack a workaround it?
My issue with this is also not just about that field, but more about what it says about Buddypress’ priorities. If you want to register members in your company or sports club with name, address, phone number, etc. there is no easy way to do it, you’ll have to hack core files and later you’ll have to use custom functions to retrieve the data from several different tables in the database.
Also, BuddyPress will automatically synchronize profile fields with the WP profile fields. Check the function xprofile_sync_wp_profile()
No it doesn’t. Version 1.0 only added first name and last name to wp_usermeta if a user updated his account data after signup. You couldn’t count on the data to be there for every member. I had to write a custom function, based on xprofile_sync_wp_profile, to force that synchronization to happen upon registration.
December 23, 2009 at 2:52 pm #59401In reply to: Enterprise Buddypress
Andy Peatling
KeymasterAlso, BuddyPress will automatically synchronize profile fields with the WP profile fields. Check the function xprofile_sync_wp_profile()
December 23, 2009 at 2:50 pm #59400In reply to: Enterprise Buddypress
Andy Peatling
KeymasterThe name field was previously split into “First Name / Last Name” fields, but this is an issue for internationalization. In future versions it may be possible to apply rules to profile fields that will determine the content allowed.
December 23, 2009 at 2:29 pm #59396In reply to: Enterprise Buddypress
peterverkooijen
ParticipantTo me the biggest barrier to more professional use of Buddypress is the lousy member/user management. Everything is based on username/password. There isn’t even a built-in way to get people to sign up with their real name, first name + last name. There is a required custom field for “Name”, but with the way the sign-up form is structured new users are almost encouraged to enter a garbage name – lowercase, one word anonymous nickname bs.
After lots of painful hacking in core files I now have a form with one Real name field on top. My custom code in the back splits the real name and stores it in various places in the database, so at least I have synchronized data in wp_usermeta etc. Buddypress does none of this out of the box and in general BP developers don’t seem to see this as a problem. But the one field for real name still doesn’t really force new users to enter a full two-part name.
In a previous version of my site I did have separate first name and last name fields. I NEVER had people sign up with cutesy one name names. Sure, you can create custom fields in xprofile, but synchronizing the input with all the other username, nickname, name etc. fields in the datebase and integrating them with other member management scripts businesses will have on their server requires serious database and php programming skills.
December 22, 2009 at 7:08 am #59282In reply to: Is BuddyPress confusing to users?
Andy Peatling
KeymasterJust add the profile fields in the backend.
December 15, 2009 at 11:24 pm #58828In reply to: Groups vs Roles vs Custom Profile Fields
Anonymous User 96400
InactiveNo worries. Glad I could help
December 15, 2009 at 11:12 pm #58826In reply to: Groups vs Roles vs Custom Profile Fields
Kate
ParticipantOkay, great. Thanks for clearing it up for me. Really appreciate the help!
December 15, 2009 at 10:53 pm #58823In reply to: Groups vs Roles vs Custom Profile Fields
Anonymous User 96400
InactiveNot exactly what I meant. There are BP profile fields (added through the backend) and then there are usermeta (which you will have to code yourself and is WP core). Stuff that’s in your profile will be displayed publicly on your profile. Usermeta can be displayed, but doesn’t have to necessarilly.
December 15, 2009 at 3:20 am #58737In reply to: Groups vs Roles vs Custom Profile Fields
Kate
ParticipantThanks so much for the reply Travel-Junkie. So, basically option 3: a custom profile field added to the registration form? I added a couple of these for other purposes and saw how the data is stored. Again, may be a stupid question, but I’m a WPMU/BP newbie! My only concern was that I assume the data would be erased if the drop-down itself were somehow removed by my client.
BTW: Users can only create accounts for the main blog. They don’t have blogging privileges themselves.
Thanks again!
December 15, 2009 at 12:44 am #58728In reply to: Groups vs Roles vs Custom Profile Fields
Anonymous User 96400
InactiveI’d give them the choice during registration, then store that value as usermeta and check for each bp-component for that value and then either display the contents of that component or a nice little reminder with a link to upgrade their account.
Not sure how well roles would work as you can have different roles in different blogs.
December 13, 2009 at 12:27 am #58569In reply to: calling specific profile fields individually
John James Jacoby
Keymasterrfauster has the right idea.
December 12, 2009 at 11:24 pm #58566In reply to: calling specific profile fields individually
Roland Fauster
ParticipantI wanted to do the same thing as h4x3d and tried his dirty trick which works..
Anyhow here is how I did it (dunno if this is less dirty)
$platforms = xprofile_get_field_data('Plattformen');
$data = xprofile_format_profile_field('checkbox', $platforms);
echo $data;December 12, 2009 at 10:32 pm #58562David Lewis
ParticipantNo need for a plugin… just make your own copy of the registration template in your child theme and delete the optional fields. Or maybe even just use CSS to hide them.
December 6, 2009 at 11:44 am #58109In reply to: BP Member Filter
h4x3d
ParticipantI think I narrowed the problem down:
the output seems to go bust when there are more than one results.
I can query the members for different profile fields, but as soon as there are more than one hit, the function halts (cut off in html when viewing source).
with error reporting on it shows: (sorry for breaking the lines)
Notice: Undefined variable: field_filter_last_users in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 150
Notice: Undefined variable: temp_array in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 170
Catchable fatal error: Object of class stdClass could not be converted to string in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 174the fatal line is:
// Remove duplicate user_id's<br />
$temp_array = array_unique( $temp_array );any clues or tipps?
YAY!! uncommenting that line fixes it!!
… but still… the selectbox issue remains, no select boxes for me with this release!

in bp-filter.php there is a line commented out in regards to selectboxes. when “activating” it,
it returns:
Fatal error: Call to undefined function bp_filter_the_profile_field_options() in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 257– this function is not added yet, correctly?
now the problem is: dropdown boxes work, but when saving profiles the data is not saved when using dropdown boxes (I have to use selectboxes there). when using selectboxes with this filter, the selectboxes are not displayed!
anything I am missing?
thanks
December 5, 2009 at 9:12 am #58033Bowe
ParticipantHi John,
The tabs are already working and are powered by jQuery Tools (http://static.flowplayer.org/tools/). The JS only weighs 50kb and works a treat.. I’ve also used it for the welcome slider tut op BP-Tricks.com. See an example here: http://cfcommunity.net/FOK2009.
I think I’m getting the idea (I can’t write php so this makes this all the more difficult) and if I understand correctly you can call the groups already under a different tab? How would I format the code for every tab?
I’m guessing I need to modify
<?php if ( bp_profile_group_has_fields() ) : ?>
and say that *if user fills in something from profile group “medical” show it in this tab*. Right? haha sorry for asking me to basically spell it out for me, hope to get there some day
December 5, 2009 at 5:46 am #58031John James Jacoby
KeymasterI think to do this correctly, your loop will need a few more logic checks and error traps in the event that all of the info under a tab may be totally empty, or that some of the fields are empty and others are not. This might not be a problem if all of the fields are required, but you’ll need to modify the idea to taste. Example would be taking…
<?php if ( bp_field_has_data() ) : ?>…and displaying something if the field actually is empty. Same with<?php if ( bp_profile_group_has_fields() ) : ?>I’d also check around the web for a lightweight JavaScript tab library, or do a quick Google for jQuery tabs and use the jQuery library that comes bundled with WP, and then follow the examples. I know there’s a few that just wrap the tabbed content in a container div and use an H3 or some other logical element as the clickable “tab.”
Otherwise the code above should be sufficient to output the profile data into tables, you just need to find the engine to make your tabs go.
December 4, 2009 at 11:18 pm #58019In reply to: Character Limit in Extended Profile Fields?
Paul Wong-Gibbs
KeymasterFor the benefit of anyone who finds this post via Google, you can view the current Roadmap here: https://buddypress.org/about/roadmap/
December 4, 2009 at 6:31 pm #58013In reply to: Character Limit in Extended Profile Fields?
kellerbrooke
ParticipantThanks John – can’t wait!
December 4, 2009 at 11:41 am #57998In reply to: calling specific profile fields individually
h4x3d
ParticipantDecember 4, 2009 at 10:59 am #57992In reply to: calling specific profile fields individually
h4x3d
Participantor maybe something with unserialize&stripslashes?
I found this in reference to the code mentioned above:
* xprofile_format_profile_field()<br />
955 *<br />
956 * Formats a profile field according to its type. [ TODO: Should really be moved to filters ]<br />
957 *<br />
958 * @package BuddyPress Core<br />
959 * @param $field_type The type of field: datebox, selectbox, textbox etc<br />
960 * @param $field_value The actual value<br />
961 * @uses bp_format_time() Formats a time value based on the WordPress date format setting<br />
962 * @return $field_value The formatted value<br />
963 */<br />
964 function xprofile_format_profile_field( $field_type, $field_value ) {<br />
965 if ( !isset($field_value) || empty( $field_value ) )<br />
966 return false;<br />
967<br />
968 $field_value = bp_unserialize_profile_field( $field_value );<br />
969<br />
970 if ( 'datebox' == $field_type ) {<br />
971 $field_value = bp_format_time( $field_value, true );<br />
972 } else {<br />
973 $content = $field_value;<br />
974 $content = apply_filters('the_content', $content);<br />
975 $field_value = str_replace(']]>', ']]>', $content);<br />
976 }<br />
977<br />
978 return stripslashes( stripslashes( $field_value ) );<br />
979 }and this
function bp_unserialize_profile_field( $value ) {522 if ( is_serialized($value) ) {
523 $field_value = maybe_unserialize($value);
524 $field_value = implode( ', ', $field_value );
525 return $field_value;
526 }
527
528 return $value;
529 }
December 4, 2009 at 10:33 am #57991In reply to: calling specific profile fields individually
h4x3d
ParticipantThis works great on single field entries, but for checkboxes it outputs stuff like
a:3:{i:0;s:19:”Beschaffung/Einkauf”;i:1;s:26:”Marketing & -kommunikation”;i:2;s:20:”Strategie/Innovation”;}
where as in the sidebar (random member) it comes through just fine.
How can I fix this?
thanks
the random profile data function does some magic like this:
function bp_the_site_member_random_profile_data() {
1138 global $site_members_template;
1139
1140 if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?>
1141 <?php $random_data = xprofile_get_random_profile_data( $site_members_template->member->id, true ); ?>
1142 <?php echo wp_filter_kses( $random_data[0]->name ) ?>
1143 <?php echo wp_filter_kses( $random_data[0]->value ) ?>
1144 <?php }
1145 }
How can I apply that to James’ code above to fix the output?
December 3, 2009 at 10:37 pm #57968In reply to: Character Limit in Extended Profile Fields?
John James Jacoby
KeymasterNot yet, but this is on the roadmap for probably 1.3.
December 2, 2009 at 8:30 pm #57912In reply to: “My Favorites” Plugin
designodyssey
ParticipantThere’s a plugin in the WP repository to favorite posts (https://wordpress.org/extend/plugins/wp-favorite-posts/). The favorites are stored in the database so they can be retrieved with the user id for the profile. I agree this concept should be expanded to other components (groups, blogs) in BP. I plan to create a custom post type and use this plugin (possibly modified) to show favorites of that post-type on the profile (e.g. favorite bars). For example, Tastykitchen.com could use to track favorite recipes as recipes are just posts with custom fields.
This functionality is needed and if it doesn’t exist when I get to that stage of my project, I’ll add it and shsre. The more people think of WP/BP as a CMS, the more the need for these types of functionalities becomes apparent.
-
AuthorSearch Results