Quote:
Originally Posted by Jamie G
Did as you stated, but it returns this. It now displays correctly, but I am a little worried by this message.
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3965
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.
|
I think you have accidentally deleted something..
Here's the full code (with template edits) for
tmnt_index_c:
HTML Code:
<div>{vb:raw cinfo.banner}</div>
<div id="pagetitle" class="pagetitle" style="margin-bottom: 10px;">
<h1>
{vb:raw vboptions.tmnt_modname}
<vb:if condition="$cinfo['title']">
: <vb:if condition="$cinfo['parenttitle']">{vb:raw cinfo.parenttitle} - </vb:if><span class="forumtitle">{vb:raw cinfo.title}</span>
</vb:if>
</h1>
<p class="description">{vb:raw cinfo.description}</p>
</div>
<vb:if condition="$vboptions['tmnt_fp_carousel'] && $tmnt_car_array && !$c">
<div id="barousel_itemnav" class="barousel">
<vb:if condition="$tmntp['canedittmnt']"><span style="position: absolute; top: 6px; right: 6px; z-index: 50; font-weight: bold;"><a href="competitions.php?do=editbanners">Edit</a></span></vb:if>
<div class="barousel_image">
<vb:each from="tmnt_car_array" key="key" value="car">
<!-- image {vb:math {vb:raw key}+1} -->
<vb:if condition="$car['linkurl']"><a href="{vb:raw car.linkurl}"></vb:if><img src="{vb:raw car.imageurl}" alt="" <vb:if condition="!$key">class="current" style="display: block;"<vb:else />style="display: none;"</vb:if> /><vb:if condition="$car['linkurl']"></a></vb:if>
</vb:each>
</div>
<div class="barousel_content" style="height: 119px; display: block; ">
<vb:each from="tmnt_car_array" key="key" value="car">
<!-- content {vb:math {vb:raw key}+1} -->
<div<vb:if condition="!$key"> class="default"</vb:if> style="<vb:if condition="$key">display: none;</vb:if><vb:if condition="!$car['title']"> background: none;</vb:if>">
<vb:if condition="$car['title']"><p class="header"><vb:if condition="$car['linkurl']"><a href="{vb:raw car.linkurl}"></vb:if>{vb:raw car.title}<vb:if condition="$car['linkurl']"></a></vb:if></p></vb:if>
<p>{vb:raw car.desc}</p>
</div>
</vb:each>
</div>
<div class="barousel_nav">
</div>
</div>
</vb:if>
<vb:if condition="$vboptions['tmnt_fp_nv'] && $vboptions['tmnt_fp_sidebar']">
<div id="rightcol" style="float: {vb:raw vboptions.tmnt_fp_sidebar}; margin-<vb:if condition="$vboptions['tmnt_fp_sidebar']=='right'">left<vb:else />right</vb:if>: 15px; width: {vb:raw vboptions.tmnt_fp_sb_width};">
<vb:if condition="$template_hook['tmnt_fp_sidebar']">
<div>
{vb:raw template_hook.tmnt_fp_sidebar}
</div>
</vb:if>
</div>
</vb:if>
<div style="overflow: hidden;">
<vb:if condition="$categories">
<vb:if condition="$vboptions['tmnt_fp_nv'] && $template_hook['tmnt_fp_tr']">
<div style="width: 100%;">
<div style="float: right; width: {vb:raw vboptions.tmnt_fp_tr_width}; margin-left: 15px;">
{vb:raw template_hook.tmnt_fp_tr}
</div>
<div style="overflow: hidden;">
<vb:else />
<div>
<div>
</vb:if>
<h2 class="blockhead" style="clear: both;">{vb:rawphrase tmnt_categories}</h2>
<div class="blockbody formcontrols" style="min-width: 200px;">
{vb:raw categories}
</div>
</div>
</div>
</vb:if>
<div style="overflow: hidden; <vb:if condition="!$vboptions['tmnt_fp_nv'] OR !$template_hook['tmnt_fp_br'] OR $show['no_uncat']"> display: none;</vb:if> clear: both;">
<div style="float: right; width: {vb:raw vboptions.tmnt_fp_br_width}; margin-top: 10px; margin-left: 15px;">
{vb:raw template_hook.tmnt_fp_br}
</div>
<div style="overflow: hidden; margin-top: 10px;">
<div>
<vb:if condition="in_array('ladders',$cinfo['tol']) && $tmntp['canviewladder']">
<h2 class="blockhead" style="float: left;<vb:if condition="$sh == 'l'"> font-weight: bold; text-decoration: underline;</vb:if>" id="h2_l">
<a href="ladders.php<vb:if condition="$c">{vb:raw thisurl}&<vb:else />?</vb:if>showonly=ladders" onclick="switch_t_l('l'); return false;"><vb:if condition="$c">{vb:rawphrase ladders}<vb:else />{vb:rawphrase tmnt_uncat_ladders}</vb:if></a>
</h2>
</vb:if>
<vb:if condition="in_array('leagues',$cinfo['tol']) && $tmntp['canviewladder'] && !$vboptions['tmnt_disable_leagues']">
<h2 class="blockhead" style="float: left;<vb:if condition="$sh == 'lg'"> font-weight: bold; text-decoration: underline;</vb:if>" id="h2_lg">
<a href="ladders.php<vb:if condition="$c">{vb:raw thisurl}&<vb:else />?</vb:if>showonly=leagues" onclick="switch_t_l('lg'); return false;"><vb:if condition="$c">{vb:rawphrase ladder_leagues}<vb:else />{vb:rawphrase tmnt_uncat_leagues}</vb:if></a>
</h2>
</vb:if>
<vb:if condition="in_array('tmnts', $cinfo['tol']) && $tmntp['canviewtmnt']">
<h2 class="blockhead" style="<vb:if condition="in_array('ladders', $cinfo['tol']) && $tmntp['canviewladder']">float: left;</vb:if><vb:if condition="$sh == 't'"> font-weight: bold; text-decoration: underline;</vb:if>" id="h2_t">
<a href="tournaments.php<vb:if condition="$c">{vb:raw thisurl}</vb:if>"<vb:if condition="in_array('ladders',$cinfo['tol']) && $tmntp['canviewladder']"> onclick="switch_t_l('t'); return false;"</vb:if>><vb:if condition="$c">{vb:rawphrase tmnts}<vb:else />{vb:rawphrase tmnt_uncat_tmnts}</vb:if></a>
</h2>
</vb:if>
<vb:if condition="in_array('kings', $cinfo['tol']) && $tmntp['canviewkings']">
<h2 class="blockhead" style="float: left;<vb:if condition="$sh == 'k'"> font-weight: bold; text-decoration: underline;</vb:if>" id="h2_k">
<a href="kings.php<vb:if condition="$c">{vb:raw thisurl}</vb:if>"<vb:if condition="$tmntp['canviewladder']"> onclick="switch_t_l('k'); return false;"</vb:if>><vb:if condition="$c">{vb:rawphrase tmnt_kings_short}<vb:else />{vb:rawphrase tmnt_uncat_kings}</vb:if></a>
</h2>
</vb:if>
</div>
<div class="blockbody formcontrols" id="table_t" style="<vb:if condition="$sh != 't'">display: none;</vb:if> clear: both;">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase tmnt_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
{vb:raw latesttmnts}
<vb:if condition="$show['moretmnts']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="tournaments.php<vb:if condition="$c">?c={vb:raw c}</vb:if>" title="{vb:rawphrase tmnt_viewmoretmnts}">{vb:rawphrase tmnt_viewmoretmnts}</a>
</div>
</vb:if>
</div>
<div class="blockbody formcontrols" id="table_l" style="<vb:if condition="$sh != 'l'">display: none;</vb:if> clear: both;">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase tmnt_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestladders}
<vb:if condition="$show['moreladders']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="ladders.php?<vb:if condition="$c">c={vb:raw c}&</vb:if>showonly=ladders" title="{vb:rawphrase tmnt_viewmoreladders}">{vb:rawphrase tmnt_viewmoreladders}</a>
</div>
</vb:if>
</div>
<div class="blockbody formcontrols" id="table_lg" style="<vb:if condition="$sh != 'lg'">display: none;</vb:if> clear: both;">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase ladder_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestleagues}
<vb:if condition="$show['moreleagues']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="ladders.php?<vb:if condition="$c">c={vb:raw c}&</vb:if>showonly=leagues" title="{vb:rawphrase tmnt_viewmoreleagues}">{vb:rawphrase tmnt_viewmoreleagues}</a>
</div>
</vb:if>
</div>
<div class="blockbody formcontrols" id="table_k" style="<vb:if condition="$sh != 'k'">display: none;</vb:if> clear: both;">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestkings}
<vb:if condition="$show['morekings']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="kings.php?<vb:if condition="$c">c={vb:raw c}</vb:if>" title="{vb:rawphrase tmnt_viewmorekings}">{vb:rawphrase tmnt_viewmorekings}</a>
</div>
</vb:if>
</div>
</div>
</div>
<div id="box_4385th" style="margin-top: 10px; width: 100%;">
<div style="">
<div style="padding-bottom: 10px; <vb:if condition="($vboptions['tmnt_fp_nv'] && $template_hook['tmnt_fp_br']) OR $show['no_uncat'] OR !$tmntp['canviewtmnt'] OR !in_array('tmnts',$cinfo['tol'])"> display: none;</vb:if>">
<h2 class="blockhead">
<a href="tournaments.php<vb:if condition="$c">{vb:raw thisurl}</vb:if>"><vb:if condition="$c"><span title="{vb:var cinfo.description}">{vb:raw cinfo.title} {vb:rawphrase tmnts}</span><vb:else />{vb:rawphrase tmnt_uncat_tmnts}</vb:if></a>
</h2>
<div class="blockbody formcontrols">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase ladder_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
{vb:raw latesttmnts}
<vb:if condition="$show['moretmnts']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="tournaments.php<vb:if condition="$c">?c={vb:raw c}</vb:if>" title="{vb:rawphrase tmnt_viewmoretmnts}">{vb:rawphrase tmnt_viewmoretmnts}</a>
</div>
</vb:if>
</div>
</div>
<div style="padding-bottom: 10px; <vb:if condition="($vboptions['tmnt_fp_nv'] && $template_hook['tmnt_fp_br']) OR $show['no_uncat'] OR !in_array('ladders',$cinfo['tol']) OR !$tmntp['canviewladder']"> display: none;</vb:if>" id="box_e4985ut">
<h2 class="blockhead">
<a href="ladders.php<vb:if condition="$c">{vb:raw thisurl}&<vb:else />?</vb:if>showonly=ladders"><vb:if condition="$c"><span title="{vb:var cinfo.description}">{vb:raw cinfo.title} {vb:rawphrase ladders}</span><vb:else />{vb:rawphrase tmnt_uncat_ladders}</vb:if></a>
</h2>
<div class="blockbody formcontrols">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase tmnt_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestladders}
<vb:if condition="$show['moreladders']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="ladders.php<vb:if condition="$c">?c={vb:raw c}</vb:if>" title="{vb:rawphrase tmnt_viewmoreladders}">{vb:rawphrase tmnt_viewmoreladders}</a>
</div>
</vb:if>
</div>
</div>
<div style="padding-bottom: 10px; <vb:if condition="($vboptions['tmnt_fp_nv'] && $template_hook['tmnt_fp_br']) OR $show['no_uncat'] OR $vboptions['tmnt_disable_leagues'] OR !in_array('leagues',$cinfo['tol']) OR !$tmntp['canviewladder']"> display: none;</vb:if>">
<h2 class="blockhead">
<a href="ladders.php<vb:if condition="$c">{vb:raw thisurl}&<vb:else />?</vb:if>showonly=leagues"><vb:if condition="$c"><span title="{vb:var cinfo.description}">{vb:raw cinfo.title} {vb:rawphrase ladder_leagues}</span><vb:else />{vb:rawphrase tmnt_uncat_leagues}</vb:if></a>
</h2>
<div class="blockbody formcontrols">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead" style="float:right; width: 60px; text-align: center;">
{vb:rawphrase tmnt_players}
</div>
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestleagues}
<vb:if condition="$show['moreleagues']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="ladders.php<vb:if condition="$c">?c={vb:raw c}</vb:if>">{vb:rawphrase tmnt_viewmoreleagues}</a>
</div>
</vb:if>
</div>
</div>
<div style="padding-bottom: 10px; <vb:if condition="($vboptions['tmnt_fp_nv'] && $template_hook['tmnt_fp_br']) OR $show['no_uncat'] OR !$vboptions['tmnt_kings_enabled'] OR !in_array('kings',$cinfo['tol']) OR !$tmntp['canviewkings']"> display: none;</vb:if>">
<h2 class="blockhead">
<a href="kings.php<vb:if condition="$c">{vb:raw thisurl}</vb:if>"><vb:if condition="$c"><span title="{vb:var cinfo.description}">{vb:raw cinfo.title} {vb:rawphrase tmnt_kings}</span><vb:else />{vb:rawphrase tmnt_uncat_kings}</vb:if></a>
</h2>
<div class="blockbody formcontrols">
<div style="clear: both; overflow: hidden;">
<div class="blocksubhead">
{vb:rawphrase tmnt_name}
</div>
</div>
{vb:raw latestkings}
<vb:if condition="$show['moreleagues']">
<div class="blocksubhead" style="text-align: center; clear: both;">
<a href="kings.php<vb:if condition="$c">?c={vb:raw c}</vb:if>">{vb:rawphrase tmnt_viewmorekings}</a>
</div>
</vb:if>
</div>
</div>
</div>
</div>
</div>
</div>