IPB display the current year in template

191 Views Asked by At

I use the IPB (Invision Power Board) 4.1.12.2 and I need to display the current year in the template.

I tried the next:

<?php echo date('Y'); ?>
{{date('Y');}}
{date('Y')}

and, even:

<php>
$var = date('Y');
</php>

{$var}

but I don't have any result. Any ideas?

1

There are 1 best solutions below

0
Paul Basenko On BEST ANSWER

Finally I found the solution. It was easy:

{{$var = date('Y');}}

{$var}