![]() |
Template Hook help in Plugins
Hi guys
im in a little need of support this is my php script PHP Code:
i have tried PHP Code:
PHP Code:
|
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'); 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. |
Quote:
|
All times are GMT. The time now is 01:39 PM. |
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:
|