Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: JayBachatero on October 26, 2005, 06:22:30 PM

Title: [BUG?]Multy Line Comment on code block.
Post by: JayBachatero on October 26, 2005, 06:22:30 PM
It i have a multy-line comment in a code block that starts /* and i don't add the ending */ the comment doesnt show at all.


<?php
// Version: 1.0; index

/*   This template is, perhaps, the most important template in the theme.  It
  contains the main template layer that displays the header and footer of
  the forum, namely with main_above and main_below.  It also contains the
  menu sub template, which appropriately displays the menu; the init sub
  template, which is there to set the theme up; (init can be missing.) and
  the linktree sub template, which sorts out the link tree.

  The init sub template should load any data and set any hardcoded options.

  The main_above sub template is what is shown above the main content, and
  should contain anything that should be shown up there.

  The main_below


<?php
// Version: 1.0; index

/*   This template is, perhaps, the most important template in the theme.  It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below.  It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: dtm.exe on October 26, 2005, 06:30:38 PM
What theme are you using?  As far as 1.0 is concerned, index.template.php reads as follows:

<?php
// Version: 1.0; index

/* This template is, perhaps, the most important template in the theme.  It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below.  It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: JayBachatero on October 26, 2005, 06:32:09 PM
no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: dtm.exe on October 26, 2005, 06:34:55 PM
Quote from: JayBachatero on October 26, 2005, 06:32:09 PM
no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.

Ah, my mistake.  You seem to be right on this one.

/me reports this to Compuart.
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: JayBachatero on October 26, 2005, 06:36:24 PM
Quote from: dtm.exe on October 26, 2005, 06:34:55 PM
Quote from: JayBachatero on October 26, 2005, 06:32:09 PM
no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.

Ah, my mistake.  You seem to be right on this one.

/me reports this to Compuart.

its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: dtm.exe on October 26, 2005, 06:38:22 PM
Quote from: JayBachatero on October 26, 2005, 06:36:24 PM
its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.

However minor a bug it may be, it's still a bug...and it can still be fixed.
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: JayBachatero on October 26, 2005, 06:41:59 PM
Quote from: dtm.exe on October 26, 2005, 06:38:22 PM
Quote from: JayBachatero on October 26, 2005, 06:36:24 PM
its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.

However minor a bug it may be, it's still a bug...and it can still be fixed.

Yea thats true.
Title: Re: [BUG?]Multy Line Comment on code block.
Post by: Joshua Dickerson on November 04, 2005, 11:24:42 AM
So use proper code.