Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,951 through 1,975 (of 3,608 total)
  • Author
    Search Results
  • #141506
    drrxa
    Participant

    I have a working code now, the following code is able to insert a select box profile field to the ‘base’ group with any long list of options that might be hard to insert manually through the user interface. this specific example will insert a profile field with the title of “Country” that contains all countries as options. Use this code in your `functions.php` or `bp-custom.php` file and you will notice a new profile field with the title of “Country” the next time you visit the Base group in Profile Fields admin area. You can then update and change the options to suit your needs and after that click “Save” button to register this field.

    Be aware that the following code will not add a new “Country” profile field as long as a profile field with the title of “Country” already exists, meaning that if you change the title to “List of Countries” for example, it will add a new profile field with the title of “Country” to your profile field, so I think it is better to use this code only once and whenever you need to insert a long listed profile field, and then remove the code from `functions.php` or `bp-custom.php` and keep on other place for future use.
    `
    add_action(‘bp_init’, ‘add_custom_country_list’); // That might not be the perfect hook to use
    function add_custom_country_list() {
    if (xprofile_get_field_id_from_name(‘Country’)) return;
    $country_list_args = array(
    ‘field_group_id’ => 1,
    ‘type’ => ‘selectbox’,
    ‘name’ => ‘Country’,
    ‘description’ => ‘Please select your country’,
    ‘is_required’ => true,
    ‘can_delete’ => false,
    ‘order_by’ => ‘default’
    );
    $country_list_id = xprofile_insert_field($country_list_args);
    if ($country_list_id) {
    $countries = array(‘USA’,’Germany’,’England’); // Google for “country list php” and replace this one
    foreach ($countries as $i => $country) {
    xprofile_insert_field(array(
    ‘field_group_id’ => 1,
    ‘parent_id’ => $country_list_id,
    ‘type’ => ‘selectbox’, // it is ‘selectbox’ not ‘option’
    ‘name’ => $country,
    ‘option_order’ => $i+1
    ));
    }
    }
    }
    `

    #141479
    Quint
    Participant

    There is a workaround which should work but I can’t confirm until I figure out the last step. Anyway, what you could do is use FormidablePro (probably the most flexible and affordable form creation plugin in the wild) to get your data and then dump (form submittal) them into the appropriately mapped XProfile fields. I am told this is possible. …But I don’t know how to do that last step.

    #141474
    Paul Wong-Gibbs
    Keymaster

    Not aware of any plugins that do this. It’s been mentioned before, but I haven’t seen anything good recently.

    #141472
    Hugo Ashmore
    Participant

    It’s not exactly the easiest thing to implement the core devs have their work cut out with present dev requirements; this would be something that one of the community would need to run up and submit as a patch for perusal.

    #141469
    redrocktoday
    Member

    These nested/conditional profile fields will have many applications for creating larger websites, not just location related sites… If you can make it to the Core, many would benefit.

    It would be great if next release of BuddyPress could come with this nested profile fields, and in addition, a functionality that allow admins to create initial groups based on certain user profile fields -which seems very nature. And as a social networking platform, these functionalities should come from the core of software, not from Plugins – as many group related plugins will be depending on these functionalities to make themselves sophisticated enough to make foundamental user experience more fullfilled.

    #141438
    creamundo
    Participant

    have the same problem!!!!!!!!!!!!!!! help

    #141420
    Paul Wong-Gibbs
    Keymaster

    Adding the template fields is one thing, but you’d need to write a bunch of glue logic to handle saving and fetching the input to/from the WordPress profile.

    #141403

    In reply to: profile page

    Tammie Lister
    Moderator

    You shouldn’t need a plugin to have emails sent or to have profile fields. Are you using the BuddyPress default theme? I ask because something could be wrong there – not sure there is though.

    Now, when I say you don’t need plugins to send emails or have profile fields it all depends on ‘what’ and ‘how much’ you want.

    https://codex.buddypress.org/getting-started/configure-buddypress-components/#users-profile-fields should be a starting point for you on profile fields though.

    #141321

    In reply to: Profile fields

    Roger Coathup
    Participant

    If you are a PHP developer, you can rework the profile fields (in edit.php ) to use the wp_editor() function.

    You’ll also need to take a look at the filters that strip tags from profile fields and set appropriately to your needs.

    The question was asked recently on this forum — so, have a Google.

    #141319

    In reply to: Profile fields

    Tammie Lister
    Moderator
    #141280

    In reply to: Theme compatibility?

    Sergio De Falco
    Participant

    Paul, anyway it’s pretty simple to use both methods. We know that default wp_users support first_name, last_name, nickname and description (bio). Maybe you could make possibile to modify each of that from buddypress (i made it in my theme) and make a base group with these fields. Then if administrators want to add more fields and groups you could populate xprofile table. In this way you could have a more deep integration into WordPress.

    #141269

    In reply to: Theme compatibility?

    Paul Wong-Gibbs
    Keymaster

    Mercime’s pretty much right. There might be ways to use a custom post type with user meta, but revising the structure of the profile fields database tables isn’t a current priority.

    #141254

    In reply to: Theme compatibility?

    @mercime
    Participant

    == why buddypress doesn’t use user_metadata and have a proprietary xprofile table. ==

    I believe one reason would be that WP doesn’t have an API for BuddyPress’ more sophisticated profile fields/groups, or something of that nature. At least that’s what I recall a core dev answering the last time that question was asked :-)

    #141159
    Ben Hansen
    Participant

    can anyone actually verify this plugin boone put up works? it appears to have the option but when i tested it the policy is not enforced and even logged out users can see the private fields on our site at least.

    #140783
    9087877
    Inactive

    Short answer is yes! :-) You can use bp-profile-search plugin to search for specific profile fields. Not certain it works with the current versions of WordPress and BuddyPress though. It works great in WP 3.2.1 and BP 1.5.1
    https://wordpress.org/extend/plugins/bp-profile-search/
    The standard search works well too but you have to know what your searching for. BP-Profile-Search shows a visible form and a user can choose what to search for based on the criteria you set up in the plugin. :-)

    #140751
    CallMeAndy
    Participant

    Ok appologies they need to have data in to be visible.
    Yes its working as it should then!

    #140750
    CallMeAndy
    Participant

    No they’re set to a mix of Logged in Users or My Friends.

    But as I mentioned when i look at My Test Friend they dont show!

    #140746
    modemlooper
    Moderator

    On each profile field in the admin there are visibility options. Are they open for all or only user?

    #140745
    CallMeAndy
    Participant

    God I hate this forum functionality – in the head of the post I have just made it says: “Deleted User said 1 minuit ago” what is that supposed to mean?

    #140676
    modemlooper
    Moderator

    Go into wp-admin

    users > profile fields

    click edit group

    change name

    lidakis
    Member

    A fast solution in profile fields for the huddle theme…
    Go to wp-content/themes/huddle/functions.php and open it.
    At line 45 you should see
    ` $new_values[] = ‘‘ . $value . ‘‘; `
    change it with this
    ` $new_values[] = strip_tags( $value ); `
    I bought this theme today, and i did not have time to beautify the code and the functions, but i will write again probably the next days.

    #140649
    J J
    Participant

    Apologies – forgot to add that I’m using BP 1.6.1 and WP 3.4.1

    #140648
    J J
    Participant

    Also, when I export my user data, the custom profile fields are also missing. Where is the data everyone entered in my custom fields during the login process? Thank you in advance!

    #140604
    scal3x
    Participant

    While looking for a solution to the same question, I stumbled upon this: dev update. Boone B. Gorges made a “sample plugin to show how these visibility levels can be extended”: BBG’s Sample Visibility Plugin. All you have to do is create a new folder in your wp-content/plugins, and upload bbg-custom-bp-field-visibility.php & loader.php into your new folder. Then, modify bbg-custom-bp-field-visibility.php to your liking.

    #140568
    Andrew
    Member

    In addition to my first reply, you need to have the ‘Extended Profiles’ component checked in your Buddypress settings under ‘Components’.

Viewing 25 results - 1,951 through 1,975 (of 3,608 total)
Skip to toolbar