Online Chatbox Plugin

● ARCHIVED · READ-ONLY
Started by xevilxGodlike 4 posts View original ↗
  1. Hi and sorry up infront if im posting this in the wrong place.. Would it be possible to add somthing like this into a plugin?
    If so how?

    Website : https://chatwing.com/

    Javascript code provides a better performance for your website. It is the recommended way to embed ChatWing into your website. You will not need to update the code in your website after changing the options

    Put this code in your <head> section or right before </body>

    Code :

    <script type="text/javascript">
    (function(d) {
    var cwjs, id='chatwing-js'; if(d.getElementById(id)) {return;}
    cwjs = d.createElement('script'); cwjs.type = 'text/javascript'; cwjs.async = true; cwjs.id = id
    cwjs.src = "//chatwing.com/code/4e0c9900-839e-11e8-b0eb-e7e670e35d64/embedded";
    d.getElementsByTagName('head')[0].appendChild(cwjs);
    })(document);
    </script>


    Put this where you want to display the chatbox

    Code :

    <div id="chatwing-embedded-4e0c9900-839e-11e8-b0eb-e7e670e35d64"></div>


    Or

    https://www.pubnub.com/tutorials/chatengine/javascript/basic-web-chat/

    Thanks for your help and sorry that i'm in my baby steps in understanding somthing from JS ^^.
  2. yes, it is possible. Simply follow the steps you have stated.

    The thing is, it wont be a 'part of your game', it will be a seperate chat box window that has its own styling etc. Which may not be what you want, but may be 'good enough'
  3. Okey, Thanks alot allready. Now how would i approach this? I have sublime texst 3. So i make a new project with the name "OnlineChatBox.js" add this code (from above) and save it ? Then where would i leave the second code? Because i tryed it this far allready but i got no clue what to do with the second one.
  4. no - as said you can't integrate the chatwindow into the game.
    you'll make a website where you have the HTML divided into two frames. one of those frames will contain the game, and the other will contain the chat.

    you'll need to write the index.html of that divided frame and modify the gaame projects index.html to be launched inside the first frame. And you'll have to configure the chat to run in the second frame - which is something we can't help you with as no one here knows that chatcode.