vbulletin_textedit.js and IPB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pit
    New Member
    • Apr 2002
    • 5
    • 1.1.x

    vbulletin_textedit.js and IPB

    Is there some public domain/BSD-style origin for vbulletin_textedit.js? Did vBulletin license it out to IPB?

    Run ips_text_editor.js through Javascript Tidy (I used Opera since apparently Firefox does it wrong) to get all the linebreaks back, then compare it to vbulletin_textedit.js.

    There is a lot of very similar code, but for one succinct example search for "hex" within both files.

    vbulletin_textedit.js:
    Code:
    this.build_forecolor_popup = function(obj, menu)
    	{
    		var colorout = fetch_object(this.editorid + '_color_out');
    		colorout.editorid = this.editorid;
    		colorout.onclick = vB_Text_Editor_Events.prototype.colorout_onclick;
    
    		var table = document.createElement('table');
    		table.cellPadding = 0;
    		table.cellSpacing = 0;
    		table.border = 0;
    
    		var i = 0;
    		for (var hex in coloroptions)
    		{
    			if (i % 8 == 0)
    			{
    				var tr = table.insertRow(-1);
    			}
    			i++;
    
    			var div = document.createElement('div');
    			div.style.backgroundColor = coloroptions[hex];
    
    			var option = tr.insertCell(-1);
    			option.style.textAlign = 'center';
    			option.className = 'ocolor';
    			option.appendChild(div);
    			option.cmd = obj.cmd;
    			option.editorid = this.editorid;
    			option.controlkey = obj.id;
    			option.colorname = coloroptions[hex];
    			option.id = this.editorid + '_color_' + coloroptions[hex];
    			option.onmouseover = option.onmouseout = option.onmouseup = option.onmousedown = vB_Text_Editor_Events.prototype.menuoption_onmouseevent;
    			option.onclick = vB_Text_Editor_Events.prototype.coloroption_onclick;
    		}
    
    		menu.appendChild(table);
    	}
    ips_text_editor.js:
    Code:
    case "forecolor":
        case "backcolor":
          var table = document.createElement("table");
          table.cellPadding = 0;
          table.cellSpacing = 0;
          table.border = 0;
          var i = 0;
          for (hex in ips_primary_colors)
            {
              if (i % 8 == 0)
                {
                  var tr = table.insertRow(- 1);
                }
              i++;
              var div = document.createElement("div");
              div.style.backgroundColor = ips_primary_colors[hex];
              div.innerHTML = " ";
              var option = tr.insertCell(- 1);
              option.className = "rte-menu-color";
              option.appendChild(div);
              option.cmd = obj.cmd;
              option.editor_id = this.editor_id;
              option.colorname = ips_primary_colors[hex];
              option.id = this.editor_id + "_color_" + ips_primary_colors[hex];
              option.onmouseover = option.onmouseout = option.onmouseup = option.onmousedown = ips_editor_events.prototype.menu_option_onmouseevent;
              option.onclick = ips_editor_events.prototype.color_cell_onclick;
            }
          menu.style.overflow = "visible";
          menu.appendChild(table);
          break ;
      }
  • Dean C
    Senior Member
    • Mar 2002
    • 4571
    • 3.5.x

    #2
    Well spotted
    Dean Clatworthy - Web Developer/Designer

    Comment

    • Freddie Bingham
      Former vBulletin Developer
      • May 2000
      • 14057
      • 1.1.x

      #3
      We have not licensed our code to any one.

      Comment

      • Andy Huang
        Senior Member
        • Feb 2004
        • 4602

        #4
        Interesting find... let's see where this goes.
        Please keep flames / bashing out of this thread as I'm interested to see where it goes intead of getting it locked up.
        Best Regards,
        Andy Huang

        Comment

        • ManagerJosh
          Senior Member
          • Jun 2002
          • 9922

          #5
          Originally posted by Andy Huang
          Interesting find... let's see where this goes.
          Please keep flames / bashing out of this thread as I'm interested to see where it goes intead of getting it locked up.
          Let's just take it one step further. Let's not see this thread degrade into a IPB vs vB thread.
          ManagerJosh, Owner of 4 XenForo Licenses, 1 vBulletin Legacy License, 1 Internet Brands Suite License
          Director, WorldSims.org | Gaming Hosting Administrator, SimGames.net, Urban Online Entertainment

          Comment

          • Joe Gronlund
            Senior Member
            • Nov 2001
            • 5789
            • 3.8.x

            #6
            Well, it sure looks like someone was inspired
            MCSE, MVP, CCIE
            Microsoft Beta Team

            Comment

            • Onimua
              Senior Member
              • Apr 2005
              • 4572

              #7
              Well, that's interesting...
              Congratulations on the death of vBulletin, Internet Brands.

              Comment

              • Chroder
                Senior Member
                • Dec 2002
                • 1449

                #8
                Originally posted by Onimua
                Well, that's interesting...
                Indeed. If it is "inspired" by vB's code, makes you wonder what else might be

                Comment

                • RedTyger
                  Senior Member
                  • Dec 2006
                  • 335
                  • 3.8.x

                  #9
                  Haha! Oh dear me, that is SO in keeping with the IPB I've been hearing about.

                  Comment

                  • JakeS
                    Senior Member
                    • Jul 2005
                    • 1975

                    #10
                    Originally posted by Pit
                    Is there some public domain/BSD-style origin for vbulletin_textedit.js? Did vBulletin license it out to IPB?
                    here's one of my official Stupid Questions: Why would Jelsoft Licence their code to their enemy? it just doesn't sound logical to me.
                    Last edited by Wayne Luke; Thu 22 Mar '07, 7:04am. Reason: Removed unnecessary quoting.

                    Comment

                    • Floris
                      Senior Member
                      • Dec 2001
                      • 37767

                      #11
                      Originally posted by JakeS
                      here's one of my official Stupid Questions: Why would Jelsoft Licence their code to their enemy? it just doesn't sound logical to me.
                      You can be pretty sure that we do NOT license it to competitors.

                      Comment

                      • JakeS
                        Senior Member
                        • Jul 2005
                        • 1975

                        #12
                        Originally posted by Floris
                        You can be pretty sure that we do NOT license it to competitors.
                        Thats a good thing, otherwise their would be no point in competing with IPB.

                        Comment

                        • derekivey
                          Senior Member
                          • Feb 2005
                          • 244
                          • 3.6.x

                          #13
                          Hmm... Interesting. I'd also like to see where this goes.
                          <Onimua> Congrats Chroder
                          <Onimua> You're a daddy.
                          <Chroder> eh
                          <Onimua> :)
                          <Chroder> uh oh

                          Comment

                          • Jose Amaral Rego
                            Senior Member
                            • Feb 2005
                            • 11058
                            • 1.1.x

                            #14
                            It could be a possiblity that vB bought out IPB and they just do not know it....

                            Shock! Maybe IPB bought vB.... Uhgg!, now that would be just a terrible thought.

                            Comment

                            • Kier
                              Former Lead Developer, vBulletin
                              • Sep 2000
                              • 8179

                              #15
                              Our javascript code has not been licensed to anyone, especially our competitors.

                              Comment

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