Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,451 through 3,475 (of 3,881 total)
  • Author
    Search Results
  • #59522
    teebes
    Participant

    I 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’.

    #59481
    sclough
    Participant

    I 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.

    #59405

    In reply to: Enterprise Buddypress

    peterverkooijen
    Participant

    The 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.

    #59401

    In reply to: Enterprise Buddypress

    Andy Peatling
    Keymaster

    Also, BuddyPress will automatically synchronize profile fields with the WP profile fields. Check the function xprofile_sync_wp_profile()

    #59400

    In reply to: Enterprise Buddypress

    Andy Peatling
    Keymaster

    The 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.

    #59396

    In reply to: Enterprise Buddypress

    peterverkooijen
    Participant

    To 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.

    #59282
    Andy Peatling
    Keymaster

    Just add the profile fields in the backend.

    #58828
    Anonymous User 96400
    Inactive

    No worries. Glad I could help :)

    #58826
    Kate
    Participant

    Okay, great. Thanks for clearing it up for me. Really appreciate the help!

    #58823
    Anonymous User 96400
    Inactive

    Not 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.

    #58737
    Kate
    Participant

    Thanks 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!

    #58728
    Anonymous User 96400
    Inactive

    I’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.

    #58569

    rfauster has the right idea.

    #58566
    Roland Fauster
    Participant

    I 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;

    David Lewis
    Participant

    No 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.

    #58109

    In reply to: BP Member Filter

    h4x3d
    Participant

    I 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 174

    the 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

    #58033
    Bowe
    Participant

    Hi 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 :)

    #58031

    I 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.

    #58019
    Paul Wong-Gibbs
    Keymaster

    For the benefit of anyone who finds this post via Google, you can view the current Roadmap here: https://buddypress.org/about/roadmap/

    #58013
    kellerbrooke
    Participant

    Thanks John – can’t wait!

    #57998
    h4x3d
    Participant

    I figured it out, somehow:

    http://paste2.org/p/546483 (dirty)

    works :)

    #57992
    h4x3d
    Participant

    or 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 }

    #57991
    h4x3d
    Participant

    This 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?

    #57968

    Not yet, but this is on the roadmap for probably 1.3.

    #57912
    designodyssey
    Participant

    There’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.

Viewing 25 results - 3,451 through 3,475 (of 3,881 total)
Skip to toolbar