Topic: Hardcover Release: Birthdays 2
What makes {members:} extension almost perfect?
Absence of parameter birthday=1 to be able display members celebrating birthday today!
Open your ext.members.php and find line:
if ( isset($params['events']) && $params['events'] ) {
$wheresql[] = "m.totalevents>0";
}Paste this code below:
if ( isset($params['birthday']) && $params['birthday'] ) {
$datenow = time();
$monthday = date("m"."d", $datenow);
$wheresql[] = "d.data_age LIKE '%$monthday'";
}So simple and so useful modification!
Now just add parameter birthday=1 to your members extension call and you'll have todays birthdays!
Note: if you have changed 'age' label to something else - change it in the above query also.
Best practice: pass also new template as parameter value and make a best look and feel of your birthday members. With cakes and baloons!
Last edited by radioact (2008-12-13 02:56:41)
www.vldCrowd.com/radioact - my profile at vldCrowd