Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 751 through 775 (of 3,576 total)
  • Author
    Search Results
  • #253939
    Earl_D
    Participant

    I am running the lest version of Buddypress and WordPress on a VPS server NOT running multisite. Tiny framework is the theme I am using. However the first thing I did to trouble shoot was try to replicate problem without any plugin and using 2012 theme (which tiny frame is based on) and 2016 theme. The issues remained the same with but those thems and th social me theme.

    I will try to check the MYSQL question as I am familiar with that having done MYSQL database programming. However I have narrowed done the problem to something related to the extended profile fields component. Through trial and error and some research I surfaced the correlation which one other person seems to have referred as well. If extended profile fields are turned OFF the registration is completed and the activation email sent. If it is on the registration process is not completed. I tested this extensively turning on and off and it followed that pattern. I currently have the component turned off and users are able to register. When I turned on again I was unable to complete a registration.

    It may be unrelated but no registration spam protection plugins will work now either I have tried several with recaptcha and without and in every case the registration process short circuits.

    Thanks for any help in advance. I would like to get the extended field working again.
    EarlD

    shanebp
    Moderator

    Have you tried using a standard theme like WP 2015?

    Are you running any membership plugins or code that affects profile fields?

    You may want to wipe the installation, including the database, and start over.

    #253739
    mcpeanut
    Participant

    @insearchofasolution Just thought I would chime in on this.

    You would be able to do this but it depends on the approach you take, You could use buddypress for the social network side of things for the messaging between users etc and profile pages/groups etc whilst building a custom user interface for most of the other options you mentioned and tie them together for each user.

    Its good you are clear about what you are exactly wanting to build and its all down to research, You can most definitely create separate vendor pages and account pages using custom post types and fields and creating templates for these pages etc.

    If you don’t know how to do all of this you may struggle though, unless a specific plugin meets your requirements, I myself have been using an amazing suite of plugins over the past year or so that will help you do a lot of this yourself , they are brilliant for creating complex websites and layouts without having to write everything from scratch. You will have to have knowledge of html and css etc at the very least to use them efficiently though, they do come at a cost and you are looking at $300 for the complete set, these plugins are a little more advanced than other plugins to use as they are developer orientated and can be overwhelming at first if you are new to them, but if you stick with them you will start to realize the doors these plugins can open for you on wordpress and can help make your workflow loads faster and make your project come to life. do a search for TOOLSET PLUGINS by wp-types.

    I hope this helps a little bit, creating a complex website as you mentioned above will take patience and time if you are new to doing it, I am in the middle of a few complex builds myself and to be honest with you I now pre-fare to use these plugins for most of my projects now as I can easily create any type of custom post with custom fields and display them via content templates without having to create the templates from scratch on each project.

    The best thing about the custom fields you can create with these plugins is that you can create user specific fields and control access to everything with the access plugin, giving you full control over everything and you can create quite complex membership sites yourself.

    #253729
    danbp
    Participant

    Most of bp files are in php, so i can’t answer for YOUR php file.

    I you modify the register page, where xprofile fields are showing at first, the template file i’m talking about is in bp-templates/bp-legacy/buddypress/members/register.php.

    If you don’t know about template overload, read here first.

    Or if you use a custom function to fire your work via an action hook, perhaps you could try to use bp-custom.php

    #253639
    danbp
    Participant

    That’s unfortunately what i expected… GF is a third party premium plugin for which nobody can help you here, except if he/she use that plugin.

    If you read here, it’s somehow explained in details.

    What you already used (gform_field_value_linkuser), linkuser is a GF field name. If i’m right, see the advanced tab of that field and complete the name parameter.

    Here a snippet which let you see how to link a username to his profile, when you’re outside of the member_loop. It will output the current user name on the site wide activity header. For test only.

    Note that it use BuddyPress default Name field and that it comes from a BP form. As you use GF, you certainly need to find how to grab properly a GF field value.

    Function goes to bp-cutom, may also work in theme’s functions.php

    function bpfr_my_profile_link_on_SWA_header () {	
    	$user_id = get_current_user_id();
    	$profile_url = bp_loggedin_user_domain();
    
    	if( !is_user_logged_in() ) {
    		return;
    	}
    
    	echo '<br>Test userlink:&nbsp;'; 
    
    	if ( !$data = bp_get_profile_field_data( 'field=Name' ) ) : 
    
    		echo xprofile_get_field_data( 'Name', bp_get_member_user_id() ) .'<a href="'. $profile_url .'">'. bp_core_get_username( $user_id ).'</a><br>';
    
    	endif;		
    
    }
    add_action( 'bp_activity_type_tabs', 'bpfr_my_profile_link_on_SWA_header' ); 

    Sorry, I can’t help you more.

    #253565
    navyspitfire
    Participant

    Thank you. However, this only returns the value. How would I return the field name/label associated with that value?

    Updated block:

    $this->tabs_instance->fields_data[$name] = '<dt class="bp-field-name bp-field-id-' . bp_get_the_profile_field_id() . '">'. bp_get_the_profile_field_name().'</dt>';
    $this->tabs_instance->fields_data[$name] = '<dd class="bp-field-value bp-field-id-' . bp_get_the_profile_field_id() . '">'. xprofile_get_field_data( 'Eye Color', bp_displayed_user_id() ) .'</dd>';
    #253525
    danbp
    Participant

    Perhaps this can help you to go further.

    For point 2, maybe this snippet can do the job. Give it a try ! Add it to bp-custom.php

    function custom_display_xprofile_fields() {
    
    // single field item
    if ( $data = bp_get_profile_field_data( 'field=Industry' ) ) : // change field name to yours
    	echo '<div class="industry">'. xprofile_get_field_data( 'Industry', bp_displayed_user_id() ) .'</div>';
    endif;
    }
    add_action( 'bp_after_profile_loop_content' , 'custom_display_xprofile_fields' );
    #253498

    In reply to: Import profile fields?

    sharmavishal
    Participant

    dont think so…just export the 4 xprofile fields rows form the db via phpmyadmin and import them back

    #253421
    modemlooper
    Moderator

    any profile fields you add to the first field group get added to the registration form.

    prdufresne
    Participant

    I was able to override the offending settings by adding a few lines in the custom css file of my theme. Below are the changes I made to resolve the issue, in case anyone else runs into a similar problem

    #buddypress table.profile-fields td.label {
        color: #555555;
        display: table-cell;
    }
    #253164
    shanebp
    Moderator

    Your task is very logical – but fraught with danger.

    Have you noticed that emails can be edited from a Profile page via Settings?
    And how a confirmation email is sent?

    And this setting: wp-admin/admin.php?page=bp-settings > Profile Sync ?

    So it’s possible but not easy.
    Display of those fields is fairly simple – but writing handlers to save those fields… eek.

    If it was me, I’d just add Profile fields for bio and website – and move on.

    #253044
    yoast79
    Participant

    Hey Henry,

    After some more hours of trying I managed to find the right code to get it done!

    This is what made it work;

    .profile-fields {
    color: #ffffff
    }
    
    .profile-fields {
        background: #000000
    }
    
    .profile-fields tr.alt td {
         color: #ffffff
    }
    
    #buddypress table.profile-fields tr.alt td {
         background: #000000
    }
    

    I’m sorry to bother you with my question.

    #252991
    sharmavishal
    Participant
    #252972
    sharmavishal
    Participant

    i use donmik’s excellent plugin “BuddyPress Xprofile Custom Fields Type” for this…you can add a TOS to xprofile field

    #252937
    BobSD99
    Participant

    A quick followup, I see the permitted field value for the checkbox (in this case) is stored in field 315 in table wp_bp_xprofile_fields – how do I query this checkbox setting value?

    I want to pull the correct value from the database, so in case I update that checkbox field’s option in the backend, I can correctly set it.

    I don’t see a function in /buddypress/bp-xprofile/bp-xprofile-functions.php: that seems to pull this, and nothing is locking in with Google….

    #252927
    shanebp
    Moderator

    It won’t work unless you pass a ‘valid’ value. And you don’t have to use an array for a single value.
    So if you have not changed the option value ( via Users > Profile Fields ) to ‘Subscribe to Newsletter Digest’, it will fail.

    To ‘uncheck’ the box – just delete that row for that user in the _bp_xprofile_data table.
    xprofile_delete_field_data( field name or ID, $user_id )

    #252923
    BobSD99
    Participant

    To keep this simple, and for illustration purpose, I edited the data I wanted to update in the question, which given it’s a checkbox, is confusing.

    I actually want to toggle that element off, so I assume I’d actually either a) update the array to an empty field, or b) delete the entry entirely.

    I assume I want to change the field to an empty string, but now that doesn’t seem as obvious. Some guidance is appreciated on updating this field and any curves a checkbox might throw in working with BP XProfile fields.

    Naomi
    Participant

    Because adding them as xprofile fields doesn’t add them to the TML registration page that I need to use. Have you looked at the TML instructions? I followed them exactly and they don’t use xprofile fields so it’s glitchy.

    #252863
    gregsee
    Participant

    Hi Modemlooper, thank you, I did manage to work it out. Problem partly due to my WP theme has a social counter plugin that provides a stack of fields for links that I assumed were part of the WP or BP basic profile fields. I have set up some of my new xProfiles fields now and have it working – just need to organise these for groups better.
    Thanks

    modemlooper
    Moderator

    You can update a field with this function

    xprofile_set_field_data( $field, $user_id, $value, $is_required = false )
    
    $fields = field id
    $user_id = current login user id
    $value = inserted value
    $is_required = boolean

    Hook your function to

    do_action( 'bp_core_activated_user', $user_id, $key, $user )

    modemlooper
    Moderator

    BuddyPress users are the same as WordPress so you can create a user using https://codex.wordpress.org/Function_Reference/wp_create_user

    To set profile fields data:

    xprofile_set_field_data( $field, $user_id, $value, $is_required = false )
    
    $fields = field id
    
    $user_id = current login user id
    
    $value = inserted value
    
    $is_required = boolean
    #252857
    modemlooper
    Moderator

    BuddyPress searches username and profile fields to find a member. You would need to develop a custom solution for this. Is this requirement for site admins? If so, you can find members by id in the admin -> Users menu item.

    #252856
    modemlooper
    Moderator

    Any profile fields you create in the admin that are in the first section are automatically added to the registration form.

    User Extended Profiles

    #252794
    mairaj
    Participant

    Ok thank you! I was by the way referring to the custom xprofile fields that I have on my current site (the multisite one that I have now).

    I assume when I import the back up database file to the new site those custom xprofile fields would be created automatically.

    #252786
    mairaj
    Participant

    Thank you for the reply 🙂 Since you have suggested to export TABLES OF WP_xprofile, I believe I don’t need to create any xprofile fields in the new installation.

Viewing 25 results - 751 through 775 (of 3,576 total)
Skip to toolbar