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.
-
-
not sure why its not working i tried it on different versions and its working...what php version are you using
-
-
envíame los códigos ya insertados como los tienes en la versión 1.8git para probar.
-
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>
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} -
did you put the file back to original script before doing this?
-
i just went on your site and the comments are working
-
Russoll wrote:
i just went on your site and the comments are working
-
-
so are you going to post your fix......if not you wont find much help from the community.
-
Russoll wrote:
so are you going to post your fix......if not you wont find much help from the community.
-
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.You can contact me by Discord or Telegram
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside -
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.
-
-
tellez wrote:
aqui esta el trabajo que estoy haciendo y el que quiero hacer
que tiene que ver las fotos, con los comentarios en las batallas? -
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.