The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
In functions.php, replace this:
Code:
$age='('.($today-$day[0]).')'; Code:
$age=$today-$day[0]; |
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
It gives me a parse error:
Parse error: parse error in /home/consoleb/public_html/admin/functions.php on line 4527 |
#5
|
|||
|
|||
Nevermind, Freddie's code works perfectly. Thanks man!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|