PDA

View Full Version : show NONE if theres no birthdays on forumhome


corsacrazy
04-13-2003, 10:00 PM
requested here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=51552

by: Blindchild02


instead of there being nothing on forumhome if there isnt birthdays on that day this will show your desired text eg : No birthdays today ! :paranoid:

corsacrazy
04-14-2003, 09:08 AM
screen shot

assassingod
04-14-2003, 09:13 AM
Just finished another way of doing this but nevermind!

Good work;)

corsacrazy
04-14-2003, 09:17 AM
chrs ! i was tryin for ages to do this via template mods but failed and just went for hack :p

Dean C
04-14-2003, 09:38 AM
Nice idea - might want to make it a template call instead though incase people want to edit the appearance of the text to make it fit their styles better :)

- miSt

assassingod
04-14-2003, 09:39 AM
That's how I did mine:)
Doesn't matter anyway now:)

corsacrazy
04-14-2003, 09:44 AM
to mist yeah ur right that wood be much better will add that as an addon

Blindchild02
04-14-2003, 12:48 PM
sweet, worked like a charm thank ya much ;)

corsacrazy
04-14-2003, 01:18 PM
no prob

Bison
04-17-2003, 12:39 PM
Should be:

if ($birthdays) {

eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
} else {
$birthdays='<font face="verdana" size="1"><b>None today!</b></font>';
}

}

corsacrazy
04-17-2003, 06:52 PM
yup :D cheers mate

Black Vivi
04-18-2003, 03:44 PM
Yesterday at 01:39 PM Rolodex said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=383346#post383346)
Should be:

if ($birthdays) {

eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
} else {
$birthdays='<font face="verdana" size="1"><b>None today!</b></font>';
}

}
no it shudn't it shud be:


if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";");
} else {
$birthdays='<smallfont><b>None today!</b></smallfont>';
}

not everyone uses verdana as their base font...

Bison
04-18-2003, 07:05 PM
Probably better to use the font style you use on your forum anyway. :)