Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Problem with template and comments
#1
If you set the "Output template start/end comments?" to off...the postbit images (i.e. postbit_www.gif) are butted up against each other. This is true for both IE7 and Opera but I did not test in Firefox yet. I had this problem before but only today realized it was from the comments being off.

I am not sure how you would correct this in the code but it should be dealt with as a setting will break layout.

I tested this with the default theme and while it's not butted against each other they become very close.

Comments in HTML often give off space even though it really shouldn't.
#2
labrocca Wrote:If you set the "Output template start/end comments?" to off...the postbit images (i.e. postbit_www.gif) are butted up against each other. This is true for both IE7 and Opera but I did not test in Firefox yet. I had this problem before but only today realized it was from the comments being off.

I use firefox myself, and I can confirm this. Wink It's because the comments add a new line "\n" after the comment itself, which then results in the browsers mistaking it for spaces. *shrugs*

The End comments seems to insert the newline before the comment, and the start inserts after the comment. O.o
#3
I have turned comments back on for now but I would rather they be removed. It only adds to the page size and load.
#4
This should fix it (upload to /inc/):


Attached Files
.php   class_templates.php (Size: 2.3 KB / Downloads: 138)
#5
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.


Forum Jump:


Users browsing this thread: 1 Guest(s)