View Full Version : How Do You Comment Out In Templates?
8thos
03-18-2012, 07:12 PM
Hi. How do you comment out code in the Templates of vb3.8?
Disasterpiece
03-18-2012, 07:42 PM
<!--
-->
8thos
03-18-2012, 07:46 PM
Thanks
--------------- Added 1332100099 at 1332100099 ---------------
Did not work. I'm trying to comment out the whole header.
<!-- <!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
-->
Disasterpiece
03-18-2012, 07:57 PM
do you see what's going wrong here? :)
<!-- <!-- logo -->
8thos
03-18-2012, 07:59 PM
do you see what's going wrong here? :)
<!-- <!-- logo -->
Hmmm. Still doesn't work.
<!-- header -->
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
<!-- header -->
Disasterpiece
03-18-2012, 08:32 PM
well, if you open with the <!-- tag, the comment finishes at the first occurence of the -->. So your comment ends basically in the first line because of the logo -->
Solution: remove the < and > from the comments in the header before you comment out the whole block but don't forget to add it later on if you want to uncomment it again.
8thos
03-18-2012, 08:46 PM
Thanks but I'll just delete the whole thing.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.