The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
|||
|
|||
![]()
WOW.... Thanks so much.
Works perfect now. As I am a complete beginner with coding I just want to share my full block code for those who are not that familiar either. Don't know if it is perfect but it gives me the right display: Code:
$field1 = "2012-09-02"; $field2 = "2007-09-02"; $text1 = "TCMAS membership expires in "; $text2 = " days!"; $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; } if (!isset($days_left) OR $days_left < 0) { $days_left= "TCMAS membership expired"; } else { $days_left= ($text1.$days_left.$text2); } return $days_left; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|