shaun2222
03-26-2010, 04:31 PM
I'm trying to create a template with the following code and every time i do i get this error when saving the code.. Anybody know whats going on?
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
{vb:raw headinclude}
<title>Chat - {vb:raw vboptions.bbtitle}</title>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<h2 class="blockhead">Live Chat</h2>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">Chat</h3>
<div class="section">
<table class="tborder" cellpadding="0p" cellspacing="0px" border="0px" width="100%" align="center">
<tr><td>
<if condition="$show['member']">
<iframe src="/forums/chat/index.php" align="middle" frameborder="0px" marginheight="0" marginwidth="0" scrolling="auto" title="Chat vB-R" width="100%" style="border-width: 0px; border-style: none;" onload="this.style.height = this.contentWindow.document.body.scrollHeight;" id="chat"></iframe>
<script type="text/javascript">
function resizeIframe(){
var height=document.documentElement.clientHeight
height-=document.getElementById('chat').offsetTop
height-=400
document.getElementById('chat').style.height=heigh t+"px"}
document.getElementById('chat').onload=resizeIfram e
window.onresize=resizeIframe
</script>
</td></tr>
</if></table>
</div>
</div>
{vb:raw footer}
</body>
</html>
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
{vb:raw headinclude}
<title>Chat - {vb:raw vboptions.bbtitle}</title>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<h2 class="blockhead">Live Chat</h2>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">Chat</h3>
<div class="section">
<table class="tborder" cellpadding="0p" cellspacing="0px" border="0px" width="100%" align="center">
<tr><td>
<if condition="$show['member']">
<iframe src="/forums/chat/index.php" align="middle" frameborder="0px" marginheight="0" marginwidth="0" scrolling="auto" title="Chat vB-R" width="100%" style="border-width: 0px; border-style: none;" onload="this.style.height = this.contentWindow.document.body.scrollHeight;" id="chat"></iframe>
<script type="text/javascript">
function resizeIframe(){
var height=document.documentElement.clientHeight
height-=document.getElementById('chat').offsetTop
height-=400
document.getElementById('chat').style.height=heigh t+"px"}
document.getElementById('chat').onload=resizeIfram e
window.onresize=resizeIframe
</script>
</td></tr>
</if></table>
</div>
</div>
{vb:raw footer}
</body>
</html>