Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,476 through 3,500 (of 5,755 total)
  • Author
    Search Results
  • Roger Coathup
    Participant

    Yes, we’ve also noticed a problem with bp_profile_field_data() and select boxes, drop down fields, etc.

    The following workaround should handle that field for you:

    “

    This article may help you:

    http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/

    Note: @shanebp suggestion of using the unserialize function (see the comments), should also do the trick for you.

    Kookidooki
    Participant

    Hello guys,

    I’ve found and added this code in member-header.php and it’s almost working:
    `

    Location: </span
    Hobbies:

    `

    The location is displayed correctly, but hobbies are displayed as”Hobbies: array”.
    I’ve checked profile field Hobbies; Field type= Multi select Box. This might be the problem if you use this option.

    1. How do I display the selected boxes?
    2. Do I have to copy the above mentioned code to the Frisco theme? If so where?

    Kookidooki
    Participant

    Hello guys,

    Yes I’m using the Frisco theme for Buddypress and I’m completely at lost :-) …
    and I was not aware that the Frisco theme was a child-theme.

    I’m now figuring out how to add my created profile fields “Location” and “Hobbies” in the member’s header.

    Hugo Ashmore
    Participant

    @kookidooki Are you using the bp-default theme or a custom one here? Providing all pertinent detail is very important. Rogers guidance in his first post pointed out that there are actually instructions on how to add further xprofile fields, if you have created new profile fields then it should now be a simple matter of following the guide in the member-header file, let us know if that is proving an issue and perhaps provide an example of the code you are trying to add.

    Roger Coathup
    Participant

    If you are not tech savvy, it sounds like you would be best to hire a developer to do this development work.

    It would also be helpful if you posted full information on here – like the theme you are trying to modify – I notice you have asked the same question on the Frisco theme forums

    Kookidooki
    Participant

    Hello Roger,

    Thank you, I’ve found the files!

    I’m not tech savvy….. Maybe you could help me with the following issue:

    I’ve created profile fields named “Location” and “Hobbies” in Buddypress>Profile Fields.
    How do I display these fields in the member’s header just below the name of a profile.
    Pls could you provide me the code and step-by-step instructions?

    Thx in advance,
    Kookidooki.

    Roger Coathup
    Participant

    Every BuddyPress version from 1.0.1 to 1.5.6 comes with bp-default as part of the plugin package.

    Start with the documentation on theming BuddyPress: https://codex.buddypress.org/theme-development/the-bp-default-theme/

    Also, look at the BuddyPress files in your plugin directory.

    Kookidooki
    Participant

    Hello Roger,

    What version of Buddypress are you using cause I couldn’t find the files member-header.php and bp-default theme.

    I’m using the latest version of Buddypress.

    Thx in advance,
    Kookidooki.

    pmcvicker
    Participant

    I’ve seen this bug once myself, pre-populating only xprofile fields. I jumped into the database to see how the data was presented, or why it was displayed, and noticed that all of the xprofile values that were appearing in the registration form had a user id of “0” associated with them. Not sure if that’s helpful, but deleting the value from within the database cleared the registration fields.

    fisheyecom
    Member

    Hi everybody (I’m french my english is awful, be prepared),

    I tried all the Google Maps plugins for BP, BC Maps seems to be perfect for my needs but with 0 documentation I don’t know wich fields I have to add on members profile…

    BP User Profile Map: works fine but it’s only to put a map on each members profile, there’s no global map with all the members on one map only.

    BuddyPress Maps: doesn’t works

    BP Members Avatar map: could be perfect but works only with LAT and LON and I need the plugin works with cities names

    My needs :
    A map with all the members on it. To put themself on the map members will have to fill a field called “Location” with their cities name or adress
    An idea ?

    Thanks by advance

    @modernlooper — I just searched this support forum for “remove links in profile fields” and got very strange and non-related results. So I still don’t know how to fix the glitch.

    modemlooper
    Moderator

    Search here to remove links in profile fields. It’s a BuddyPress feature for searching users who are similar

    #30180
    ktrusak
    Member

    Is it possible to restrict some profile fields to some users? (e.g. advanced users would view extra input fields such as ‘specialty’ and ‘location’)

    My only thought was a second form for adding fields that were on a page that certain roles couldn’t view, like giving a role permission to an additional form.

    #136508
    aaronp5
    Member

    Anyone find a solution? Also looking for widget/plugin to show members with similar interests and match up various profile fields. The group idea is interesting, but could be extensive, i.e we have a field for state that would be at least 50 groups, not to mention we hope to go international.

    Hi guys,

    I’ve installed a blanc 3.4 WordPress.

    When I logon with a normal user (made by myself) I get a menu with their user profile. I there want them to be able to setup a single page with business info. (I would like to creat all fields for this business by myself) the page will be displayed; domain.com/nameusermadeup/

    This way they can build a page with their company info. Name address, city, etc.. Also some pictures to be uploaded and a google map location.

    How can I achieve this with buddypress?, letting users setup a single page with their business.

    Later on, I would like to add a review system and rating system so other users can review the company.. Maybe give the possibility of 2 member sign ups.. Business owners & normal users?

    Please help me out,

    Thanks Paul

    Roger Coathup
    Participant

    Have a look at the member-header.php file in bp-default theme. It documents how to add fields.

    Follow those instructions to add them in the member-header equivalent in your child or standalone theme… or add them in an action hooked on to bp_profile_header_meta

    Kookidooki
    Participant

    Hello guys,

    How do I add certain profile fields in a Buddypress member profile header?

    Thx in advance,

    Kookidooki

    #30134
    John Peden
    Member

    Hi folks,

    I’m working on the BP Random Member Widget to build a ‘Member Spotlight’ widget that will display a random member but will include information from their extended profile. The code I’ve got works perfectly on the user’s profile page but the extended profile fields vanish on the main site…very confusing as the avatar and user name stay put.

    What am I missing?

    `//Currently just the first user, I’ll set this up later
    if ( bp_has_members( ‘user_id=1&max=1&populate_extras=0’ ) ) : ?>


    <a href="”>


    <a href="” title=””>

    `

    #136380
    Anonymous User
    Inactive

    Ok, to set new fields for your members you should read the paragraph ‘Optional: Set Profile Fields’ of this tutorial
    http://wpmu.org/the-illustrated-guide-to-installing-and-setting-up-buddypress-1-5/

    if you mean login in with email, then you can try this interesting plugin https://wordpress.org/extend/plugins/wp-email-login/

    then you can add a function in the functions.php file of your active theme to change the label of the sidebar login form :

    add_action('bp_after_sidebar_login_form', 'bp_login_by_email_adapt_login_form');
    
    function bp_login_by_email_adapt_login_form() {
    ?>
    
    jQuery(document).ready(function($){
    usernameoremail = $("#sidebar-user-login").parent().html().replace(/Username/ig, 'Username or email' );
    $("#sidebar-user-login").parent().html(usernameoremail);
    });
    
    <?php
    }

    or if you’re using a child theme of BP-default theme, you can add/edit the template sidebar.php and replace the label for=sidebar-user-login by Username or email.

    #136378
    Roger Coathup
    Participant

    To build this kind of feature, you need to be a PHP developer:

    • You’d add new profile field groups for each type of stat (or if the stats are too complex for profile fields – a custom component to handle them).
    • You’d then assign a role to each member based on whether they are a batter, pitcher or fielder – ideally implemented using the underlying WordPress user roles.
    • Finally, you’d implement conditional logic in your templates to display appropriate profile field groups based on the member’s role.
    #30118

    Hi everyone. I just installed BuddyPress 1.5.6 on WordPress 3.4.

    I am trying to create a social site for baseball players. The only hump that I have not been able to figure out is if I can create multiple profiles.

    My dilemma is that though everyone would have the same fields (name, college, age, place of birth, etc.), they would have ‘specialized fields’ as well.

    For example, if I’m a pitcher, my fields would be different from everyone else. If I bat, I’d have different fields as well. If I’m a manager, I would have different fields as well.
    Here are some samples from ESPN, Batting Stats are different from Fielding Stats, and Pitching Stats
    Batting Stats – http://espn.go.com/mlb/stats/batting/_/year/2012/seasontype/2
    Pitching Stats – http://espn.go.com/mlb/stats/pitching/_/year/2012/seasontype/2
    Fielding Stats – http://espn.go.com/mlb/stats/fielding/_/year/2012/seasontype/2

    I am also looking for a plugin(?) where a user can input their own stats.

    Any help would be greatly appreciated.

    #136376
    Anonymous User
    Inactive

    Hi websitevala,

    To add custom fields to your registration page, you’ll need to add xprofile fields. To do so in WP Backend, you should go / BuddyPress menu / Profile fields submenu

    And for the other thing, as you noticed emails are hidden, there might be a spam risk reason to that. And as a user, i wouldn’t like to have my email shown on my profile.. So i dont think it’s a good idea.

    #30105
    voles
    Member

    Hello everyone

    I’m trying to add custom validation to a custom xprofile field. But it seems like I can’t access the fields’ values. The code below is added to my functions.php, but doesn’t seem to work.

    The $field-variable is always NULL, though it is set as a parameter in the bp-xprofile-classes.php file on line 865.

    This is the code on line 865 is
    `return apply_filters_ref_array( ‘xprofile_data_is_valid_field’, array( (bool)$retval, &$this ) ); `

    And this is the code that doesn’t seem to work in my functions.php
    `add_filter( ‘xprofile_data_is_valid_field’, ‘pbd_admin_is_valid_field’ );

    function pbd_admin_is_valid_field($retval, $field)
    {
    var_dump($field);
    } `

    Any help is welcome, many thanks in advance!

    Pinhead149
    Member

    Hi guys,
    i’ve installed liveTV bundle ( http://wordpress.org/extend/plugins/livetv-bundle/ ), but this plugin show the profile fields only in the normal profile panel not in buddypress. so my question is, how can i change it to my buddypress profiles? The developer of this plugin, told me that i should ask a buddypress expert.

    Sorry about my bad english, but i really need your help.

    Heres the code if you need it: (liveTV/page-admin/page-admin-livestreams.php)

    Code:
    //Now hook to create extra profil fields
    add_action( ‘edit_user_profile’, ‘livetv_show_extra_profile_fields’ );
    //When the current on the current profil has capabilties to edit -> display
    add_action( ‘edit_user_profile_update’, ‘livetv_save_extra_profile_fields’ );
    //When the current on the current profil has capabilties to edit -> update

    add_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ );
    //When the current on the current profil has capabilties to show -> display
    add_action( ‘personal_options_update’, ‘livetv_save_extra_profile_fields’ );
    //When the current on the current profil is the current and edit -> update

    if(!is_admin)
    {
    //Frontend plugins compatibility
    add_action(‘profile_personal_options’, ‘livetv_show_extra_profile_fields’);
    //When the current on the current profil is the current and show -> display
    }

    //Now construct new profil fields access, based on option of the plugin (default wordpress roles or new roles)
    function livetv_show_extra_profile_fields( $user )
    {
    $userID = $user->ID;

    $access = get_option(‘livetv_activate_creation_role’);

    //If based on new roles
    if($access == ‘on’)
    {
    $editable_roles = get_roles();

    foreach ($editable_roles as $key => $value)
    {
    $temp = preg_match("#^live_#", $key);

    if($temp == true)
    {
    if (current_user_can(”.$key.”))
    {
    $live_profil = ‘1’;
    }
    else
    {
    $live_profil = ‘0’;
    }
    }
    }
    }

    //If based on wordpress role
    if($access == ‘off’)
    {
    $defautRole = get_option(‘livetv_defaut_role_wordpress’);

    if (current_user_can(”.$defautRole.”))
    {
    $live_profil = ‘1’;
    }
    else
    {
    $live_profil = ‘0’;
    }
    }

    //Administrator have already access to all profils
    if (current_user_can(‘administrator’))
    {
    $live_profil = ‘1’;
    }

    //Result to displaying profil fields
    if($live_profil == ‘1’){if(is_admin()){$tableclass = ‘widefat options’;}else{$tableclass = ‘form-table’;} ?>
    <table class="<?php echo $tableclass; ?>" style="width: 600px">
    <h3>
    <?php _e(‘Stream hinzufügen’); ?>
    </h3>

    <th colspan="2" class="dashboard-widget-title"><?php _e(‘Channel hinzufügen’, ‘livetv’); ?></th>
    <?php
    $types = explode(‘_’, get_option(‘livetv_types_order’));
    foreach($types as $key => $type)
    { ?>
    <tr valign="top">
    <td scope="row"><label>
    <?php _e(‘Dein Channel auf’, ‘livetv’); echo ‘ ‘. $type; ?>
    </label></td>
    <td class="livetv-admin-td"><input type="text" style="width:125px;" maxlength="55" name="live_<?php echo $type; ?>" id="live_<?php echo $type; ?>" class="regular-text" />
    <span class="livetv_help" title="<?php _e(‘Füge einen Channelnamen oder eine Channel ID hinzu.’, ‘livetv’); ?><?php echo ‘ ‘ . $type. ‘.tv ‘; ?><?php _e(‘oder lasse es frei.’, ‘livetv’); ?>"></span><br /></td>
    </tr>
    <?php } ?>
    </table>
    <?php
    foreach($types as $key => $type)
    {
    $countlive = get_user_meta($userID, ‘count_live_’.$type.”, true);
    if($countlive) { ?>
    <br />
    <table class="widefat options" style="width: 600px">

    <th colspan="2" class="dashboard-widget-title"><?php _e(‘Deine aktiven Channel auf ‘, ‘livetv’); echo $type; ?>
    <span class="mini-<?php echo $type; ?>"></span></th>
    <tr valign="top">
    <td scope="row"><label><?php _e(‘Entferne einen deiner Channel’, ‘livetv’) ?></label></td>
    <td class="livetv-admin-td"><select name="delete_one_<?php echo ”.$type.” ?>" id="delete_one_<?php echo ”.$type.” ?>">
    <option value=""><?php echo ” ?></option>
    <?php
    global $wpdb;
    $thumbs = $wpdb->get_results( "SELECT meta_key, meta_value FROM $wpdb->usermeta WHERE meta_key LIKE ‘live_".$userID."_".$type."_%’" );
    foreach($thumbs as $keythumb => $valuethumb)
    {
    ?>
    <option value="<?php echo ”.$valuethumb->meta_key.”; ?>"><?php echo $valuethumb->meta_value; ?></option>
    <?php } ?>
    </select>
    <span class="livetv_help" title="<?php _e(‘Wähle löschen und klicke auf Registrieren um den Channel zu löschen’, ‘livetv’); ?>"></span><br /></td>
    </tr>
    <?php foreach($thumbs as $keythumb => $valuethumb)
    {
    ?>
    <tr valign="top">
    <td scope="row"><label><?php echo ‘ID ‘ ?>
    <input type="text" style="width:50px;" maxlength="55" disabled="disabled" value="<?php echo $keythumb + 1; ?>" />
    </label></td>
    <td class="livetv-admin-td"><input type="text" style="width:125px;" maxlength="55" disabled="disabled" name="<?php echo $valuethumb->meta_value; ?>" value="<?php echo $valuethumb->meta_value; ?>" id="<?php echo ”.$valuethumb->meta_key.” ?>" />
    <span class="livetv_help" title="<?php _e(‘Dieser Channel wird auf unserer Stream Seite angezeigt.’, ‘livetv’); ?>"></span></td>
    </tr>
    <?php } ?>
    </table>
    <?php }}}}

    //Profil field update function
    function livetv_save_extra_profile_fields( $user_id )
    {
    if ( current_user_can( ‘edit_user’, $user_id ) )
    {

    if(isset($_POST[‘delete_one_own3d’]) && !empty($_POST[‘delete_one_own3d’]))
    {
    $temp = stripslashes($_POST[‘delete_one_own3d’]);

    if($temp)
    {
    delete_user_meta( $user_id, ”.$temp.”);
    }
    }

    if(isset($_POST[‘delete_one_justin’]) && !empty($_POST[‘delete_one_justin’]))
    {
    $temp = stripslashes($_POST[‘delete_one_justin’]);

    if($temp)
    {
    delete_user_meta( $user_id, ”.$temp.”);
    }
    }

    if(isset($_POST[‘delete_one_twitch’]) && !empty($_POST[‘delete_one_twitch’]))
    {
    $temp = stripslashes($_POST[‘delete_one_twitch’]);

    if($temp)
    {
    delete_user_meta( $user_id, ”.$temp.”);
    }
    }

    if(isset($_POST[‘live_own3d’]) && $_POST[‘live_own3d’] != ”)
    {

    $countlive = get_user_meta($user_id, ‘count_live_own3d’, true);

    if(!$countlive){
    $countlive = ‘0’;
    }

    $count = $countlive + ‘1’;

    update_user_meta( $user_id, ‘count_live_own3d’, ”.$count.”);
    update_user_meta( $user_id, ‘live_’.$user_id.’_own3d_’.$count.”, $_POST[‘live_own3d’] );
    }

    if(isset($_POST[‘live_justin’]) && $_POST[‘live_justin’] != ”)
    {

    $countlive = get_user_meta($user_id, ‘count_live_justin’, true);

    if(!$countlive){
    $countlive = ‘0’;
    }

    $count = $countlive + ‘1’;

    update_user_meta( $user_id, ‘count_live_justin’, ”.$count.”);
    update_user_meta( $user_id, ‘live_’.$user_id.’_justin_’.$count.”, $_POST[‘live_justin’] );
    }

    if(isset($_POST[‘live_twitch’]) && $_POST[‘live_twitch’] != ”)
    {

    $countlive = get_user_meta($user_id, ‘count_live_twitch’, true);

    if(!$countlive){
    $countlive = ‘0’;
    }

    $count = $countlive + ‘1’;

    update_user_meta( $user_id, ‘count_live_twitch’, ”.$count.”);
    update_user_meta( $user_id, ‘live_’.$user_id.’_twitch_’.$count.”, $_POST[‘live_twitch’] );
    }
    }
    }
    ?>

    Greetz

    edinchez
    Participant

    Oh. That’s sad to hear. Nevermind then, it’s not a huge problem anyway.

Viewing 25 results - 3,476 through 3,500 (of 5,755 total)
Skip to toolbar