jkroepke / 2Moons

Open Source Browsergame Framework
MIT License
150 stars 113 forks source link

I need a little help. #284

Closed sandub closed 7 years ago

sandub commented 7 years ago

I need a little help. Instead I want to chat with someone like that on facebook. Im moment I want to test two chats. One must put these codes:

Add our script code Add this code to your page's header right after the <head> tag:

<link type="text/css" rel="stylesheet" id="arrowchat_css" media="all" href="/arrowchat/external.php?type=css" charset="utf-8" />
<script type="text/javascript" src="/arrowchat/includes/js/jquery.js"></script>
<script type="text/javascript" src="/arrowchat/includes/js/jquery-ui.js"></script>

Add this code to your page's footer right before the </body> tag:

<script type="text/javascript" src="/arrowchat/external.php?type=djs" charset="utf-8"></script>
<script type="text/javascript" src="/arrowchat/external.php?type=js" charset="utf-8"></script>

Edit the file YourWebsite.com/themes/templates/header.php and add the following before the closing </head> tag:

<!--===========================FreiChat=======START=========================-->
<!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code
  Then remove FreiChat tables frei_session & frei_chat if necessary
         The best/recommended way is using the module for installation                         -->

<?php
$ses=null;

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

       if(is_file("/home/u524230240/public_html/2Moons-master/freichat/hardcode.php")){

               require "/home/u524230240/public_html/2Moons-master/freichat/hardcode.php";

               $temp_id =  $ses . $uid;

               return md5($temp_id);

       }
       else
       {
               echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
       }

       return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="http://xnova.esy.es/2Moons-master/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
 <link rel="stylesheet" href="http://xnova.esy.es/2Moons-master/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
jkroepke commented 7 years ago

Sorry. I can not understand you.

This is the issue tracker. For help, use the chat: https://gitter.im/2MoonsGame/Lobby/~chat#