The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
thx for the quick reply.
I have been playing around with it and tried to put it in a php forum block: Code:
$field1 = "2005-09-02"; $field2 = "2005-09-02"; $last_meeting = strtotime($field1); if (($t = strtotime($field2)) AND ($t > $last_meeting)) { $last_meeting = $t; } if ($last_meeting) { $days_left = intval(365 - ((time() - $last_meeting) / 86400)) + 1; } else { $days_left= "Overdue"; } return $days_left; Normally when those fields exceed the 365 days I think I should see the output from the "else" statement ("overdue") but instead I get a minus value (for example: -640) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|