![]() |
How Do You Comment Out In Templates?
Hi. How do you comment out code in the Templates of vb3.8?
|
<!--
--> |
Thanks
--------------- Added [DATE]1332100099[/DATE] at [TIME]1332100099[/TIME] --------------- 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] --> |
do you see what's going wrong here? :)
Code:
<!-- <!-- logo --> |
Quote:
<!-- 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 --> |
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. |
Thanks but I'll just delete the whole thing.
|
All times are GMT. The time now is 07:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|