Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-25-2006, 09:49 PM
wtrk wtrk is offline
 
Join Date: Jun 2005
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default help find the error! please!

this template error:

Quote:
The following error occurred when attempting to evaluate this template:

The conditional on line 10 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.


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.
is caused somewhere in this template edit, ive checked and checked and check, but i just cant figure out whats wrong or how to fix it:

PHP Code:
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">

<
tbody>

    <
tr>

        <
td valign="middle" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

<
b>Sponsored by:</b>

<
center>

<if 
condition="$forum[sponsor_banner] != ''">

<
a href="$forum[sponsor_url]target="_blank">

<if 
condition="$forum[sponsor_flash] == 1">

<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">

                  <
param name="movie" value="$forum[sponsor_banner]">

                  <
param name="quality" value="high">

                  <
embed src="$forum[sponsor_banner]quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

                   </
object>

<else />

<
img height="60" width="120" src="$forum[sponsor_banner]border="0" /></a>

</if>





<if 
condition="$forum[sponsor_banner2] != ''">

<
a href="$forum[sponsor_url2]target="_blank">

<if 
condition="$forum[sponsor_flash2] == 1">

<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">

                  <
param name="movie" value="$forum[sponsor_banner2]">

                  <
param name="quality" value="high">

                  <
embed src="$forum[sponsor_banner2]quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

                   </
object>

<else />

<
img height="60" width="120" src="$forum[sponsor_banner2]border="0" /></a>

</if>





<if 
condition="$forum[sponsor_banner3] != ''">

<
a href="$forum[sponsor_url3]target="_blank">

<if 
condition="$forum[sponsor_flash3] == 1">

<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">

                  <
param name="movie" value="$forum[sponsor_banner3]">

                  <
param name="quality" value="high">

                  <
embed src="$forum[sponsor_banner3]quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

                   </
object>

<else />

<
img height="60" width="120" src="$forum[sponsor_banner3]border="0" /></a>

</if>



<if 
condition="$forum[sponsor_banner4] != ''">

<
a href="$forum[sponsor_url4]target="_blank">

<if 
condition="$forum[sponsor_flash4] == 1">

<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">

                  <
param name="movie" value="$forum[sponsor_banner4]">

                  <
param name="quality" value="high">

                  <
embed src="$forum[sponsor_banner4]quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

                   </
object>

<else />

<
img height="60" width="120" src="$forum[sponsor_banner4]border="0" /></a>

</if>





<if 
condition="$forum[sponsor_banner5] != ''">

<
a href="$forum[sponsor_url5]target="_blank">

<if 
condition="$forum[sponsor_flash] == 1">

<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">

                  <
param name="movie" value="$forum[sponsor_banner5]">

                  <
param name="quality" value="high">

                  <
embed src="$forum[sponsor_banner5]quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

                   </
object>

<else />

<
img height="60" width="120" src="$forum[sponsor_banner5]border="0" /></a>

</if>



</
center>

</
td>

    </
tr>

</
tbody>



</if> 
thanks!
Reply With Quote
  #2  
Old 11-25-2006, 09:57 PM
El Orans El Orans is offline
 
Join Date: Sep 2006
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like there's no endif for these lines...
Code:
<if condition="$forum[sponsor_banner] != ''">

<if condition="$forum[sponsor_banner2] != ''">

<if condition="$forum[sponsor_banner3] != ''">

<if condition="$forum[sponsor_banner4] != ''">

<if condition="$forum[sponsor_banner5] != ''">
Reply With Quote
  #3  
Old 11-25-2006, 10:25 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error tells all. It says there are missing end if (</if>) tags.
Reply With Quote
  #4  
Old 11-25-2006, 11:20 PM
wtrk wtrk is offline
 
Join Date: Jun 2005
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El Orans View Post
Looks like there's no endif for these lines...
Code:
<if condition="$forum[sponsor_banner] != ''">

<if condition="$forum[sponsor_banner2] != ''">

<if condition="$forum[sponsor_banner3] != ''">

<if condition="$forum[sponsor_banner4] != ''">

<if condition="$forum[sponsor_banner5] != ''">
so you need a </if> for each before each ones <else>?
Reply With Quote
  #5  
Old 11-25-2006, 11:33 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look, each block has two <if>'s, but only 1 </if>

Code:
<if condition="$forum[sponsor_banner] != ''"> 
<a href="$forum[sponsor_url]" target="_blank"> 
<if condition="$forum[sponsor_flash] == 1"> 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"> 
                  <param name="movie" value="$forum[sponsor_banner]"> 
                  <param name="quality" value="high"> 
                  <embed src="$forum[sponsor_banner]" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> 
                   </object> 
</if>  <<< Either this is missing <<<<
<else />
<img height="60" width="120" src="$forum[sponsor_banner]" border="0" /></a> 
</if>
</if>  <<< Or this is missing <<<<
Reply With Quote
  #6  
Old 11-26-2006, 03:25 PM
wtrk wtrk is offline
 
Join Date: Jun 2005
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks all.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04306 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete