Hi
Thanks for your kind words.
now i really wish it to display each member day
Do you mean the day on which their birthday is coming? For example, it will show Monday for all of today’s birthdays. Is this what you are looking for?
Kind regards
Thread Starter
rlctn
(@rlctn)
Thanks for taking time to help me…
What i wish is something like this:
Happy Birthday Prashant Singh “01/07” cake.img
Happy Birthday Rlctn “14/07″ cake.img
i was tryng to display the date of each member on this string:
echo ‘ ‘.$member_name.”.$key.’ ‘.$cake_img.’‘;
Att.
Please test with the following code:
$bpbirth_date = bp_get_profile_field_data(array('user_id'=>$members_id,'field'=>'dob'));
$bpbirth_date = date_create($bpbirth_date);
$bpbirth_date = date_format($bpbirth_date,"d/m");
echo ' '.$member_name.' '.$bpbirth_date.' '.$cake_img.'</li>';
Note: In place of ‘dob’ please use your field name(field identifier).
Kind regards
Thread Starter
rlctn
(@rlctn)
Ohhh!! It’s working!!!
Thank you so much….!!!
Any chance you help me now to Order the list by birthday?
My list shows:
Happy Birthday Prashant Singh “01/07” cake.img
Happy Birthday Rlctn “14/07″ cake.img
Happy Birthday Member1 “05/07” cake.img
Happy Birthday Member2 “31/07″ cake.img
Happy Birthday Member3 “11/07” cake.img
Happy Birthday Member4 “07/07″ cake.img
I believe its showing like this because the registration member data… its following the order of the table…
Att….
In the query after WHERE clause(after %d) please add ORDER BY profile.value DESC
I hope that will solve your purpose.
Marking this resolved. For any other query, please start a new thread.