![]() |
php date
Hi there,
I'm integrating vBulletin into some of my existing site templates - how can I replicate the following simple php code within a vBulletin template (header), as I can't use raw php in a template can I? Code:
<?php echo date('m'); ?> Phil |
make a new plugin for the header and do something like
$mydate = vbdate(); and in your template <div>$mydate</div> check the API for the syntax for vbdate() If the vb4 template echoing out is different, i wouldn't know. never bothered to look at it. I remember though it might be like <vb:raw $mydate> or something. |
Thanks, following your suggestions this seems to work:
Made a new global_start plugin as so: Code:
$mymonth = vbdate('m'); Code:
{vb:raw mymonth} Phil |
All times are GMT. The time now is 11:52 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:
|