2moons 1.8 left menu problem

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

    • 2moons 1.8 left menu problem

      Hello, I have a problem with the "Fleet" tab. The problem is because it does not show up in all tabs. Sometimes it disappears at other players. I have to remove the cache then it is visible some time, then it is missing again.

      Has anyone encountered this problem? Is there any solution?


      main.navigation.tpl

      My modules status: zapodaj.net/4b8e2875e8050.jpg.html

      Source Code

      1. <div id="leftmenu">
      2. <div id="menu">
      3. <div class="menu-head"><a href="game.php?page=overview">{$LNG.lm_changelog}</a></div>
      4. <table>
      5. <tr><td class="transparent">
      6. <div><div id="alarm"></div><div onclick="menusel(this,'menut1');" id="menut1p" class="mright"><img src="{$dpath}img/globe.svg?v=2" alt=""></div><div onclick="menusel(this,'menut2');" id="menut2p" class="mright"><img src="{$dpath}img/com.svg" alt=""></div><div onclick="menusel(this,'menut3');" id="menut3p" class="mright"><img src="{$dpath}img/set.svg" alt=""></div></div>
      7. </td></tr>
      8. <tr id="menut1" style="display:none;"><td>
      9. <div class="menucat1-head"><b><center>Rozwój</center></b></div>
      10. <div><a href="game.php?page=overview">{$LNG.lm_overview}</a></div>
      11. {if isModuleAvailable($smarty.const.MODULE_IMPERIUM)}<div><a href="game.php?page=imperium">{$LNG.lm_empire}</a></div>{/if}
      12. {if isModuleAvailable($smarty.const.MODULE_RESEARCH)}<div><a href="game.php?page=research">{$LNG.lm_research}</a></div>{/if}
      13. {if isModuleAvailable($smarty.const.MODULE_BUILDING)}<div><a href="game.php?page=buildings">{$LNG.lm_buildings}</a></div>{/if}
      14. {if isModuleAvailable($smarty.const.MODULE_SHIPYARD_FLEET)}<div><a href="game.php?page=shipyard&mode=fleet">{$LNG.lm_shipshard}</a></div>{/if}
      15. {if isModuleAvailable($smarty.const.MODULE_SHIPYARD_DEFENSIVE)}<div><a href="game.php?page=shipyard&mode=defense">{$LNG.lm_defenses}</a></div>{/if}
      16. {if isModuleAvailable($smarty.const.MODULE_FLEET_TRADER)}<div><a href="game.php?page=fleetDealer">{$LNG.lm_fleettrader}</a></div>{/if}
      17. {if isModuleAvailable($smarty.const.MODULE_TRADER)}<div><a href="game.php?page=fleetTable">Flota</a></div>{/if}
      18. {if isModuleAvailable($smarty.const.MODULE_TECHTREE)}<div><a href="game.php?page=techtree">{$LNG.lm_technology}</a></div>{/if}
      19. {if isModuleAvailable($smarty.const.MODULE_RESSOURCE_LIST)}<div><a href="game.php?page=resources">{$LNG.lm_resources}</a></div>{/if}
      20. {if isModuleAvailable($smarty.const.MODULE_GALAXY)}<div><a href="game.php?page=galaxy">{$LNG.lm_galaxy}</a></div>{/if}
      21. {if isModuleAvailable($smarty.const.MODULE_MESSAGES)}<div><a href="game.php?page=messages">{$LNG.lm_messages}{nocache}{if $new_message > 0}<span id="newmes"> (<span id="newmesnum">{$new_message}</span>)</span>{/if}{/nocache}</a></div>{/if}
      22. </td></tr>
      23. <tr style="display:none;" id="menut2"><b><center>Menu</center></b><td>
      24. <div class="menucat2-head"><b><center>Obserwatorium</center></b></div>
      25. {if isModuleAvailable($smarty.const.MODULE_ALLIANCE)}<div><a href="game.php?page=alliance&menu=2">{$LNG.lm_alliance}</a></div>{/if}
      26. {if !empty($hasBoard)}<div><a href="game.php?page=board&menu=2" target="forum">{$LNG.lm_forums}</a></div>{/if}
      27. {if isModuleAvailable($smarty.const.MODULE_STATISTICS)}<div><a href="game.php?page=statistics&menu=2">{$LNG.lm_statistics}</a></div>{/if}
      28. {if isModuleAvailable($smarty.const.MODULE_RECORDS)}<div><a href="game.php?page=records&menu=2">{$LNG.lm_records}</a></div>{/if}
      29. {if isModuleAvailable($smarty.const.MODULE_BATTLEHALL)}<div><a href="game.php?page=battleHall&menu=2">{$LNG.lm_topkb}</a></div>{/if}
      30. {if isModuleAvailable($smarty.const.MODULE_SEARCH)}<div><a href="game.php?page=search&menu=2">{$LNG.lm_search}</a></div>{/if}
      31. {if isModuleAvailable($smarty.const.MODULE_CHAT)}<div><a href="game.php?page=chat&menu=2">{$LNG.lm_chat}</a></div>{/if}
      32. {if isModuleAvailable($smarty.const.MODULE_SUPPORT)}<div><a href="game.php?page=ticket&menu=2">{$LNG.lm_support}</a></div>{/if}
      33. <div><a href="game.php?page=questions&menu=2">{$LNG.lm_faq}</a></div>
      34. {if isModuleAvailable($smarty.const.MODULE_BANLIST)}<div><a href="game.php?page=banList&menu=2">{$LNG.lm_banned}</a></div>{/if}
      35. <div><a href="index.php?page=rules&menu=2" target="rules">{$LNG.lm_rules}</a></div>
      36. {if isModuleAvailable($smarty.const.MODULE_SIMULATOR)}<div><a href="game.php?page=battleSimulator&menu=2">{$LNG.lm_battlesim}</a></div>{/if}
      37. </td></tr>
      38. <tr style="display:none;" id="menut3"><td>
      39. <div class="menucat3-head"><b><center>Nawigacja</center></b></div>
      40. {if isModuleAvailable($smarty.const.MODULE_NOTICE)}<div><a href="javascript:OpenPopup('?page=notes', 'notes', 720, 300);">{$LNG.lm_notes}</a></div>{/if}
      41. {if isModuleAvailable($smarty.const.MODULE_BUDDYLIST)}<div><a href="game.php?page=buddyList&menu=3">{$LNG.lm_buddylist}</a></div>{/if}
      42. <div><a href="game.php?page=settings&menu=3">{$LNG.lm_options}</a></div>
      43. <div><a href="game.php?page=logout&menu=3">{$LNG.lm_logout}</a></div>
      44. {if $authlevel > 0}<div><a href="./admin.php" style="color:lime">{$LNG.lm_administration} ({$VERSION})</a></div>{/if}
      45. </td></tr></table>
      46. <div class="menu-footer"></div>
      47. </div>
      48. <div id="disclamer"><a href="index.php?page=disclamer" target="_blank">{$LNG.lm_disclamer}</a></div>
      49. </div>
      50. <script>
      51. {nocache}
      52. {if isset($smarty.get.menu)}
      53. var menulast = 'menut' + {$smarty.get.menu};
      54. var obutt = document.getElementById('menut' + {$smarty.get.menu} + 'p');
      55. {else}
      56. var menulast = 'menut1';
      57. var obutt = document.getElementById('menut1p');
      58. {/if}
      59. {/nocache}
      60. menusel(obutt,menulast);
      61. attacken();
      62. setInterval(attacken, 10000);
      63. </script>
      Display All
    • I solved the problem by changing the link:

      Source Code

      1. {if isModuleAvailable($smarty.const.MODULE_TRADER)}<div><a href="game.php?page=fleetTable">Flota</a></div>{/if}






      Source Code

      1. <div><a href="https://MYGAMELINK.pl/game.php?page=fleetTable">Flota</a></div>
    • свое меню я переписал полностью с нуля и проблем нет.. возможно Вы что то не то сделали.. надо смотреть ошибки и код
      я рекомендую табы в меню свои использовать
      пример посмотреть тут можно
      jqueryui.com/tabs/ и по этому принципу изменив css использовать для меню .. не уберете ошибку.. пишите я Вам помогу
      За разумную стоимость Сделаю любой динамический дизайн макет (или подготовлю в css) могу сделать копию любого стиля afire.space@gmail.com, а так же помогу разобраться с кодом и помощь сделать чистую сборку