The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Whats going on here...
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. Code:
{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=height+"px"} document.getElementById('chat').onload=resizeIframe window.onresize=resizeIframe </script> </td></tr> </if></table> </div> </div> {vb:raw footer} </body> </html> |
#2
|
||||
|
||||
IF has been changed in vb4 use it like below.
Code:
<vb:if condition="$show['member']"> </vb:if> |
#3
|
|||
|
|||
Still get the error, here's code with that whole if part removed.... It seams to be pist at the javascript section, if i remvoe it, then it works...
Code:
{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} <div class="blockbody"> <div class="blockrow"> <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=height+"px"} document.getElementById('chat').onload=resizeIframe window.onresize=resizeIframe </script> </div> </div> {vb:raw footer} </body> </html> |
#4
|
||||
|
||||
Try this:
HTML Code:
{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} <div class="blockbody"> <div class="blockrow"> <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> <vb:literal> <script type="text/javascript"> function resizeIframe(){ var height=document.documentElement.clientHeight height-=document.getElementById('chat').offsetTop height-=400 document.getElementById('chat').style.height=height+"px"} document.getElementById('chat').onload=resizeIframe window.onresize=resizeIframe </script> </vb:literal> </div> </div> {vb:raw footer} </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|