Announcement

Collapse
No announcement yet.

VBCMS Comments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Thank you very much. Now I did that but same problem, it corrupts non-English characters. :S

    If I had known I wouln't upgrade 4.0.4.

    Originally posted by burntire View Post
    Put /// in front of the code lines

    Comment


    • #47
      Does that work? How do you close commenting? I use /* and close with */

      Comment


      • #48
        PHP Code:
        // Is a single line comment, we have some code here
        if($foo == $bar)
        {
        /*
        This is a multiline comment, anything inside of here is commented out
        Set foobar equal to foo
        */
        $foobar foo;

        PHP comments, huzzah.

        Comment


        • #49
          Ah, Well we are commenting out a block in this case, but that's good to know.

          Comment


          • #50
            Oh, I didn't close commenting because I don't know any code.

            So, if I put // in front of the line 317 and */ at the end of 320 it wil be ok? Did I understand it right?

            Comment


            • #51
              No, you can comment out a single line with // and you're fine. Look at my example above.

              Comment


              • #52
                I see now; /* to the beginning and */ to the end.

                Is that foobar = foo etc. code necessary?

                Comment


                • #53
                  No, it was an example to show you how comments work, there are two types of php comments to remove code from executing

                  PHP Code:
                  // Single line comment, i stop all code from this line executing
                   
                  FAKE CODE HERE THAT IS AN EXAMPLE THAT WOULD EXECUTETHERE IS NO COMMENTS STOPING ME FROM EXECUTING 
                   
                  /* This type of comment will ignore everything until
                  It finds the astersik and forward slash
                  */ 

                  Comment


                  • #54
                    Thank you Zachery. I did that but again non-English characters are gone. :S

                    Comment


                    • #55
                      I don't see how commenting out those lines would cause anything like that.

                      Comment


                      • #56
                        Neither do I.

                        Originally posted by Zachery View Post
                        I don't see how commenting out those lines would cause anything like that.
                        Before:





                        And after:




                        Comment


                        • #57
                          I have to say I find vbulletin a complete joke now. Wth dont they EVER tell you proper changelogs. Do they honestly think that users wont notice?
                          Right now if this continues in 4.0.5 etc I am thinking to switch to Invision because I am so angry that they cant even get changelogs correct and thats before we get to the bugs...

                          I have vented my anger about the awful changelogs at: http://www.vbulletin.com/forum/showt...tin-changelogs.... I just hope it doesnt get nerfed...

                          Comment


                          • #58
                            Master Jedi, what text editor are you using?

                            I recommend Notepad ++. The editor you are using could be introducing unwanted characters.

                            Comment


                            • #59
                              I'm using Windows Notepad. Let me try that Notepad ++.

                              Edit: Thank you very very much "wcguy". After editing with Notepad ++ it works perfectly.

                              Originally posted by wcguy View Post
                              Master Jedi, what text editor are you using?

                              I recommend Notepad ++. The editor you are using could be introducing unwanted characters.
                              Last edited by Master_Jedi; Wed 23rd Jun '10, 8:03am.

                              Comment


                              • #60
                                Good to hear

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X