shamshansudhar
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsThanks it works
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsHey David,
Can you please check the Associated Item Taxonomy issue. And you can check out using this url
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsHello David,
I also Found a Bug in Associated Item Taxonomy and it won’t work and always gives 404 error page when we try to view associated items.
Thanks
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsHello David,
But i’m new to php and i really tried and below is the code but its still not working. I have even tried to debug the value of the doc_id its NULL
add_action( 'bp_docs_doc_saved', 'my_function' ); // $bp_doc is an instance of BP_Docs_Query function my_function( $bp_doc ) { // Do something with $bp_doc->doc_id maybe. // Or maybe based on $bp_doc->is_new_doc $demo_field_get=xprofile_get_field_data( 2, bp_loggedin_user_id() ); $field = get_field_object('sample12345'); //var_dump($field["key"]); //returns 'field_57cee83c43f92' /*update_field( $field["key"], $demo_field_get, $bp_docs->doc_id ); }
Can you please correct it and help me
Thanks
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsWe are using ACF
And when i update post from dashboard then it works with this code:
function do_something_on_save( $new_status, $old_status, $post ) { $demo_field_get=xprofile_get_field_data( 2, bp_loggedin_user_id() ); $field = get_field_object('sample12345'); //var_dump($field["key"]); //returns 'field_57cee83c43f92' update_field( $field["key"], $demo_field_get, get_the_ID() ); } add_action( 'transition_post_status', 'do_something_on_save', 10, 3 ); add_action('acf/save_post', 'do_something_on_save', 20 ,3);
Forum: Plugins
In reply to: [BuddyPress Docs] How to add Front End Custom FieldsHere is the complete code but still not working:
function do_something_on_save( $new_status, $old_status, $post ) {
$demo_field_get=xprofile_get_field_data( 2, bp_loggedin_user_id() );
$field = get_field_object(‘sample12345’);
//var_dump($field[“key”]); //returns ‘field_57cee83c43f92’update_field(
$field[“key”],
$demo_field_get,
get_the_ID()
);
}
add_action(‘bp_docs_after_save’,’do_something_on_save’);
add_action(‘bp_docs_doc_saved’,’do_something_on_save’);Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] ShortcodesIf you can integrate then it will be helpful for all
Here is the Big solution you are talking about?
add_filter( "um_predefined_fields_hook", 'pp_maps_add_field', 10 ); function some_add_field( $fields ) { $fields['something_field'] = array( 'title' => __( 'Some Field Name', 'some_abcd' ), 'metakey' => 'meta_name', 'required' => 0, 'public' => 1, 'editable' => 1, 'type' => 'text', 'icon' => 'um-faicon-somename' ); return $fields; }
Like below code add fields at account page
add_action('um_after_account_general', 'show_extra_fields', 100); function show_extra_fields() { global $ultimatemember; $id = um_user('ID'); $output = ''; $names = [ 'mobile_number', 'facebook', 'linkedin', 'position', 'country' ]; $fields = []; foreach( $names as $name ) $fields[ $name ] = $ultimatemember->builtin->get_specific_field( $name ); $fields = apply_filters( 'um_account_secure_fields', $fields, $id ); foreach( $fields as $key => $data ) $output .= $ultimatemember->fields->edit_field( $key, $data ); echo $output; }
But i want to add fields at registration form..I tried to get some info from hookr.io but it seems to have no documentation there sample function code nothing else…May be its looking meaning full to you
Please share some simple code snippet to a custom field at Registration field like its html out output should look like <input type=”tel” id”tele” class=”someclass”/>
Forum: Plugins
In reply to: [BuddyPress Groups Extras] How to use translation fileThanks i got it working by my way
Forum: Plugins
In reply to: [BuddyPress Groups Extras] How to use translation fileBuddy,
I have Tried using your method also but its not working at all…Please help You have marked my problem resolved,but it is not resolved yet
Forum: Plugins
In reply to: [BuddyPress Groups Extras] How to use translation filehey,
I tried its not working i tried by putting there..Do there is need to change wp-confog file?Forum: Plugins
In reply to: [BuddyPress Groups Extras] How to use translation fileI am only trying to use translation file on plugin ,like buddypress provides by placing po file in base directory eg buddypress/languagefile.po. But by using your stated method it will work only if i use translation on whole wordpress..
Forum: Plugins
In reply to: [BP xProfile Location] GeoCode not always saving in wp_usermetaIt Still not Saving even we click the address and i am not able to see any thing related to lat and long in user_meta table