Comments in the battle room (Comentarios en el salon)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • the easiest way to put chat the way you want would be to put this in the page and make a js file call it planetmenu.js

      add this at the page you want <script type="text/javascript" src="./scripts/game/planetmenu.js"></script>


      <div id="planet_menu">
      <div id="planet_menu_header"><a href="javascript:ShowPlanetMenu()" id="planet_menu_link"><font color="red"><img src="styles/images/iconav/chat.png"></a></div>
      <div id="planet_menu_content" style="display:none;">
      <table style="text-align:left;margin:0">
      <div id="chat" class="conteiner" style="overflow:hidden;">
      <form name="chat_form">
      <iframe src="./chat/index.php?action={$smarty.get.action|default:''|escape:'html'}" style="border: 0px;width:100%;height:400px;margin-top:-70px;" ALLOWTRANSPARENCY="true"></iframe>
      </div>
      </div>
      </div>
    • Russoll wrote:

      the easiest way to put chat the way you want would be to put this in the page and make a js file call it planetmenu.js

      add this at the page you want <script type="text/javascript" src="./scripts/game/planetmenu.js"></script>


      <div id="planet_menu">
      <div id="planet_menu_header"><a href="javascript:ShowPlanetMenu()" id="planet_menu_link"><font color="red"><img src="styles/images/iconav/chat.png"></a></div>
      <div id="planet_menu_content" style="display:none;" rel="display:none;">
      <table style="text-align:left;margin:0">
      <div id="chat" class="conteiner" style="overflow:hidden;">
      <form name="chat_form">
      <iframe src="./chat/index.php?action={$smarty.get.action|default:''|escape:'html'}" style="border: 0px;width:100%;height:400px;margin-top:-70px;" ALLOWTRANSPARENCY="true"></iframe>
      </div>
      </div>
      </div>
      Message: Undefined offset: 5
      File: /cache/templates/es^6dc6bca412e45629ce667621fc33d67676cb1878.shared.mission.raport.tpl.php
      Line: 287
      URL: beta.xnovaone.online/game.php?…2526518c830a2aa40c871abbb
      PHP-Version: 7.2.33
      PHP-API: fpm-fcgi
      2Moons Version: 1.81.git
      Debug Backtrace:
      #0 /cache/templates/es^6dc6bca412e45629ce667621fc33d67676cb1878.shared.mission.raport.tpl.php(287): errorHandler(8, 'Undefined offse...', 'FILEPATH ...', 287, Array)
      #1 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(128): content_646e431b7f1e76_97225422(Object(Smarty_Internal_Template))
      #2 /includes/libs/Smarty/sysplugins/smarty_template_cached.php(136): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
      #3 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(179): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      #4 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(199): Smarty_Internal_Template->render(false, 1)
      #5 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(114): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      #6 /includes/classes/class.template.php(137): Smarty_Internal_TemplateBase->display('extends:layout....')
      #7 /includes/pages/game/AbstractGamePage.class.php(389): template->display('extends:layout....')
      #8 /includes/pages/game/ShowRaportPage.class.php(155): AbstractGamePage->display('shared.mission....')
      #9 /game.php(57): ShowRaportPage->battlehall()
      #10 {main}
    • Russoll wrote:

      i just went on your site and the comments are working
      Ya lo solucione y me esta funcionando pero no me esta marcando la cantidad de comentarios en el salon de batallas. Lo otro es que necesito el css para adaptarlo a la 1.8git, puedes enviarme el archivo css?
    • Russoll wrote:

      so are you going to post your fix......if not you wont find much help from the community.
      Estoy tratando de añadir los css, haré un nuevo hilo cuando tenga todo bien. Solo me falta agregar los css y subo la solución para la versión 1.8git del 2moons.
    • I don't see how the css prevents you from sharing the solution asked by russoll? know for the design part you can do the code yourself there is nothing complicated.
    • Danter14 wrote:

      I don't see how the css prevents you from sharing the solution asked by russoll? know for the design part you can do the code yourself there is nothing complicated.
      The problem is that I am implementing the css with TPL and everything for the battle report!!! I am passing the NewStart css to 1.8 and I have to change variables and query in the comments
    • Buenas colegas.

      No agregue el estilo para la version 1.8.git de 2Moons pero si corregi todos los errores que daba el sistema de comentarios. Agregue un codigo que estaba a medio hacer en la pagina del Hall de Batallas para que la lista mostrara la cantidad de comentarios de cada batalla. Corregi las consultas SQL para que funcionaran con el sistema nativo de 2Moons. Abajo les dejo el codigo.
      Files
      Gestor de proyectos para xampp
      Cardinal System for XAMPP