![]() |
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 |
In functions.php, replace this:
Code:
$age='('.($today-$day[0]).')'; Code:
$age=$today-$day[0]; |
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. |
It gives me a parse error:
Parse error: parse error in /home/consoleb/public_html/admin/functions.php on line 4527 |
Nevermind, Freddie's code works perfectly. Thanks man! :D
|
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|