PDA

View Full Version : Better Text For Birthday


Island Roots
12-28-2001, 04:20 PM
On the index page, I've managed to tweak the calendar_showbirthdays template so on the main page, it says this:

Today's Birthdays: bally is (15), King Neo is (14)

Instead of the default...

Today's Birthdays: bally (15), King Neo (14)

Now my question is how do I remove the ( ) from the age, so it looks like this:

Today's Birthdays: bally is 15, King Neo is 14

They've directed me over here for that, and that's why I'm here. :D

Admin
12-28-2001, 04:32 PM
In functions.php, replace this:
$age='('.($today-$day[0]).')';
with:
$age=$today-$day[0];
I wonder why the parentheses were put there in the first place? :confused:

Freddie Bingham
12-28-2001, 05:05 PM
Because some people don't show their age? Such people are going to show up as:

John is

on Justin's forum now with his changes.

So he should actually change $age='('.($today-$day[0]).')'; to

$age = 'is ' . ($today - $day[0]);

I suppose I should change it all but I have to wait until the various language stuff and conditionals in template (oops did I say that?) are finished.

Island Roots
12-28-2001, 05:08 PM
It gives me a parse error:

Parse error: parse error in /home/consoleb/public_html/admin/functions.php on line 4527

Island Roots
12-28-2001, 05:11 PM
Nevermind, Freddie's code works perfectly. Thanks man! :D