Set Birthday value buddypress
-
Hi and thanks for reading my question, I have been trying to create a default data for buddypress and I am stuck, Searched about 2 days in forums but no clue. Here is the code I use:
<?php $randDate = mt_rand(0062055681,0562055681); $randDate = date('Y-d-m H:m:s', $randDate); echo $randDate.'<br>'; xprofile_set_field_data( 1, $random_user, $displayname ); xprofile_set_field_data( 3, $random_user, 'Man' ); xprofile_set_field_data( 6, $random_user, 'Woman' ); xprofile_set_field_data( 9, $random_user, 'Single' ); xprofile_set_field_data( 17, $random_user, $city ); xprofile_set_field_data( 18, $random_user, $country ); xprofile_set_field_data( 2, $user_id, $randDate ); ?>
everything works fine except for the datebox field which is field number (2); Thanks for helping.
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- You must be logged in to reply to this topic.