PDA

View Full Version : Birthday blues...


Matt*is*thick
04-07-2001, 01:14 PM
What code do I need to display:

"There are no birthdays today" when there are no birthdays?

It looks stupid just having "Todays Birthdays :" and none after it displayed....:confused:

John Harrison
04-07-2001, 01:37 PM
It would take an If function in PHP to display that when there are none on the day.

I hope it makes it into the final release as it would be annoying with it like that on some days.

Wayne Luke
04-07-2001, 03:37 PM
In index.php find:

if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
}


replace with:

if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
} else {
$birthdaybits = "There are no birthdays today";
}

Freddie Bingham
04-07-2001, 03:55 PM
huh? If there are no birthdays the entire "Birthdays:" line is absent from the display.