The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys
im in a little need of support this is my php script PHP Code:
i have tried PHP Code:
PHP Code:
|
#2
|
|||
|
|||
![]()
Just do this in place of the echo calls at the end:
Code:
$template_hook[forumhome_above_forums] .= " Day " . $seconds_diff . " of the new world "; and if you want newlines before or after, insert <br /> in the string. BTW, you don't need to make a string for the current date then convert it to a timestamp, you can just call time(), or use the vb constant TIMENOW (which is just set from time()). So you could do this: Code:
$seconds_diff = TIMENOW - strtotime('2007-11-20 08:00:00'); $seconds_diff = floor($seconds_diff/3600/24); and if you wanted to be a little more efficient, you could find out what the value of strtotime('2007-11-20 08:00:00') is and use it as a constant. |
#3
|
|||
|
|||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|