The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
A question about ending PHP comments with //-->
I notice that in some of the templates the PHP comments must be ended with //--> in order to work properly. Others allow the standard --> ending. Is there a rationale to when one must be used over the other?
Thanx |
#2
|
||||
|
||||
There should be no php in the templates, so I'm not sure what you are talking about. What you are showing above is regular html comment tags, not php comment tags.
|
#3
|
||||
|
||||
My bad then, but what I see is that
<!-- works as a comment --> but <!-- code --> sometimes works and sometimes doesn't work to disable code, and there are times when I see <!-- code //--> that works to disable the code in the templates. |
#4
|
|||
|
|||
I've noticed that <!-- --> doesn't always work in a template, but I think it has to do with what happens to be between the comment markers. I'm guessing the template parser doesn't look for html comments so sometimes they mess it up (but I'm not sure).
I always thought that <!-- ... //--> was used when you want to protect javascript against browsers that don't understand it (which I'm not sure is really much of a concern these days), because the //--> will look like a comment in javascript. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|