VBCMS Comments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Master_Jedi
    New Member
    • Jun 2010
    • 23
    • 4.0.0

    #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
    Put /// in front of the code lines

    Comment

    • nakedanvil
      Senior Member
      • Mar 2010
      • 1920
      • 4.0.0

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

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #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

        • nakedanvil
          Senior Member
          • Mar 2010
          • 1920
          • 4.0.0

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

          Comment

          • Master_Jedi
            New Member
            • Jun 2010
            • 23
            • 4.0.0

            #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

            • Zachery
              Former vBulletin Support
              • Jul 2002
              • 59097

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

              Comment

              • Master_Jedi
                New Member
                • Jun 2010
                • 23
                • 4.0.0

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

                Is that foobar = foo etc. code necessary?

                Comment

                • Zachery
                  Former vBulletin Support
                  • Jul 2002
                  • 59097

                  #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

                  • Master_Jedi
                    New Member
                    • Jun 2010
                    • 23
                    • 4.0.0

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

                    Comment

                    • Zachery
                      Former vBulletin Support
                      • Jul 2002
                      • 59097

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

                      Comment

                      • Master_Jedi
                        New Member
                        • Jun 2010
                        • 23
                        • 4.0.0

                        #56
                        Neither do I.

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





                        And after:




                        Comment

                        • ZeroHour
                          Senior Member
                          • Sep 2007
                          • 167

                          #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

                          • wcguy
                            Senior Member
                            • Mar 2009
                            • 289
                            • 3.8.x

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

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

                            Comment

                            • Master_Jedi
                              New Member
                              • Jun 2010
                              • 23
                              • 4.0.0

                              #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
                              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 23 Jun '10, 8:03am.

                              Comment

                              • Zachery
                                Former vBulletin Support
                                • Jul 2002
                                • 59097

                                #60
                                Good to hear

                                Comment

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