The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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.... ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
In index.php find:
Code:
if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
}
Code:
if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
} else {
$birthdaybits = "There are no birthdays today";
}
|
|
#4
|
||||
|
||||
|
huh? If there are no birthdays the entire "Birthdays:" line is absent from the display.
|
![]() |
|
|