Support » Plugin: BP Birthday Greetings » Display the date on widget

  • Resolved rlctn

    (@rlctn)


    Hey,

    First- Thanks for the plugin…

    Second – Any chance for the widget to display the day between the members name and the cake img? Or Before the “Happy Birthday” message?

    I change the plugin to display all birthdays on the month and now i really wish it to display each member day…

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Prashant Singh

    (@prashantvatsh)

    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

    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.

    Plugin Author Prashant Singh

    (@prashantvatsh)

    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

    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….

    Plugin Author Prashant Singh

    (@prashantvatsh)

    In the query after WHERE clause(after %d) please add ORDER BY profile.value DESC

    I hope that will solve your purpose.

    Plugin Author Prashant Singh

    (@prashantvatsh)

    Marking this resolved. For any other query, please start a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.