The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How Do You Comment Out In Templates?
Hi. How do you comment out code in the Templates of vb3.8?
|
#3
|
||||
|
||||
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] --> |
#4
|
||||
|
||||
do you see what's going wrong here?
Code:
<!-- <!-- logo --> |
#5
|
||||
|
||||
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 --> |
#6
|
||||
|
||||
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. |
#7
|
||||
|
||||
Thanks but I'll just delete the whole thing.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|