Announcement

Collapse
No announcement yet.

Code copyright question

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

  • Code copyright question

    There are many things in the vBulletin code that I notice speed things up a whole lot (the Lite version, don't have the full version), like the verifyid function or the iif function. Would it be an infringement of copyrights if I took the concept of those functions and wrote my own version of it, kind of like using an encyclopedia to write a report?

  • #2
    I was going to ask this question, especially about the iif function. While I would never go so far as to usecode from vBulletin without permission, I must admit I've learn an awful lot about PHP from looking through vBs code.

    Comment


    • #3
      iif is in other programming languages but its not in php, so I believe it was just added.
      Scott MacVicar

      My Blog | Twitter

      Comment


      • #4
        iif() is just a nice way to do a ?:.
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

        Comment


        • #5
          I guess that means I can use it?

          What about the concept of other functions? There's so much to learn and use in the vB Lite code alone....

          Comment


          • #6
            The iif() function was stoled from Visual Basic anyway...

            You'd probably need the permission of the vB developers to use their code... but is it really that hard to write your own version?

            Comment


            • #7
              Nonononono, I was asking if i can use the concept, not the code

              Comment


              • #8
                Originally posted by FireFly
                iif() is just a nice way to do a ?:.
                Well, easier to read at least than that dumb syntax...
                --filburt1, vBulletin.org/vBulletinTemplates.com moderator
                Web Design Forums.net: vB Board of the Month
                vBulletin Mail System (vBMS): webmail for your forum users

                Comment


                • #9
                  Then I doubt they'd have any problems unless it was some revolutionary new concept, which is certainly isn't since iif() came from VB (Visual Basic), and verifyid() isn't overly complex

                  Comment


                  • #10
                    You can rewrite iif pretty easily, anyway:
                    PHP Code:
                    function iif($expression$iftrue$iffalse)
                    {
                        if (
                    $expression) return $iftrue;
                        else return 
                    $iffalse;

                    Code:
                    C++:
                    int iif(int expression, int iftrue, int iffalse)
                    {
                        if (expression) return iftrue;
                        else return iffalse;
                    }
                    Code:
                    VB:
                    Function iif(expression As Boolean, iftrue As Variant, iffalse As Variant) As Variant
                        If expression Then
                            iif = iftrue
                        Else
                            iif = iffalse
                        End If
                    End Function
                    Stupid VB...
                    --filburt1, vBulletin.org/vBulletinTemplates.com moderator
                    Web Design Forums.net: vB Board of the Month
                    vBulletin Mail System (vBMS): webmail for your forum users

                    Comment


                    • #11
                      i never said it was hard, i just wanted to know if their copyrights covered the concept of some of the coding...if no, then i want to rewrite the functions for my needs, etc.

                      Comment

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