Announcement

Collapse
No announcement yet.

vbulletin_textedit.js and IPB

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ;
      }

  • #2
    Well spotted
    Dean Clatworthy - Web Developer/Designer

    Comment


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

      Comment


      • #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


        • #5
          Originally posted by Andy Huang View Post
          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


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

            Comment


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

              Comment


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

                Comment


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

                  Comment


                  • #10
                    Originally posted by Pit View Post
                    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, 8:04am. Reason: Removed unnecessary quoting.

                    Comment


                    • #11
                      Originally posted by JakeS View Post
                      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


                      • #12
                        Originally posted by Floris View Post
                        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


                        • #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


                          • #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


                            • #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...
                              X