View Single Post
  #1672  
Old 09-03-2012, 12:14 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jamie G View Post
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}&amp;<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}&amp;<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}&amp;</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}&amp;</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}&amp;<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}&amp;<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>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01448 seconds
  • Memory Usage 1,913KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete