Online Chatbox Plugin

xevilxGodlike

Warper
Member
Joined
Nov 18, 2017
Messages
3
Reaction score
1
First Language
english
Primarily Uses
RMMV
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 ^^.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,203
First Language
Binary
Primarily Uses
RMMZ
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'
 

xevilxGodlike

Warper
Member
Joined
Nov 18, 2017
Messages
3
Reaction score
1
First Language
english
Primarily Uses
RMMV
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top