I get errors when I add php script into the Header Template. It appears that the code isnt executed...!!
Code is below, it works fine throughout my site, except on the forums, any ideas...???
--------------------------------------------------------------------
<? // Register for News and Updates popup - START
if ($HTTP_COOKIE_VARS["NewsAndUpdates"] == "registered") {
?>
<!-- Register for News and Updates popup with-held -->
<?
}else if ($HTTP_COOKIE_VARS["NewsAndUpdates"] == "onhold") {
?>
<!-- Register for News and Updates popup temporarily with-held -->
<?
}else{
?>
<!-- Register for News and Updates popup activated - START -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
popuptimer=setTimeout('registerpopup()',7000)
function registerpopup(){
var win = null;
var w = 350;
var h = 250;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
window.open('http://www.flexifoil.com/newsupdate_popup.php','newsupdate_popup','toolbar=no,menubar=no,scrollbars=no,resizable=no ,location=no,height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+'');
}
//-->
</SCRIPT>
<!-- Register for News and Updates popup activated - END -->
<?
}
// Register for News and Updates popup - END
?>
Code is below, it works fine throughout my site, except on the forums, any ideas...???
--------------------------------------------------------------------
<? // Register for News and Updates popup - START
if ($HTTP_COOKIE_VARS["NewsAndUpdates"] == "registered") {
?>
<!-- Register for News and Updates popup with-held -->
<?
}else if ($HTTP_COOKIE_VARS["NewsAndUpdates"] == "onhold") {
?>
<!-- Register for News and Updates popup temporarily with-held -->
<?
}else{
?>
<!-- Register for News and Updates popup activated - START -->
<SCRIPT language="JavaScript" type="text/javascript">
<!--
popuptimer=setTimeout('registerpopup()',7000)
function registerpopup(){
var win = null;
var w = 350;
var h = 250;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
window.open('http://www.flexifoil.com/newsupdate_popup.php','newsupdate_popup','toolbar=no,menubar=no,scrollbars=no,resizable=no ,location=no,height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+'');
}
//-->
</SCRIPT>
<!-- Register for News and Updates popup activated - END -->
<?
}
// Register for News and Updates popup - END
?>
Comment