The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I make this code
<?php if ((date('D', strtotime('+2 hours')) == 'Sat') or (date('D', strtotime('+2 hours')) == 'Sun')) { ?> $module_style <?php } else { header ("Location: another.php"); }; ?> I try to do a conditional when if is Saturday or Sunday execute that module, else, redirect to another page I Think that php not work in style U_U |
#2
|
|||
|
|||
![]()
You can't put PHP into a template. Templates are HTML (and if conditions) only. You must place PHP code in a Plugin with an appropriate hook location.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|