Planet menu problem

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

    • Planet menu problem

      Hi mate
      I have problem with menu planet.
      When I have 1 planet, in right side I don't have any planet.
      Can fix it?

      The post was edited 2 times, last by noregistryuser ().

    • Code overvier with planet list:

      Source Code

      1. <div id="planetList">
      2. <div class="smallplanet">
      3. {if $AllPlanets}
      4. <table style="width:100%;border-collapse:separate;border-spacing:3px 3px;">
      5. {foreach $AllPlanets as $PlanetRow}
      6. {if ($PlanetRow@iteration % $themeSettings.PLANET_ROWS_ON_OVERVIEW) === 1}<tr>{/if}
      7. <td>
      8. {$PlanetRow.build}
      9. <a class="planetlink" href="game.php?page=overview&cp={$PlanetRow.id}">
      10. <img class="planetPic" src="{$dpath}planeten/small/s_{$PlanetRow.image}.gif" title="" alt=""><br /
      11. <span class="planet-name">[ {$PlanetRow.name} ]</span>
      12. <span class="planet-koords"></span>
      13. </a>
      14. </td>
      15. </tr>
      16. {if $PlanetRow@last && $PlanetRow@total > 1 && ($PlanetRow@iteration % $themeSettings.PLANET_ROWS_ON_OVERVIEW) !== 0}
      17. {$to = $themeSettings.PLANET_ROWS_ON_OVERVIEW - ($PlanetRow@iteration % $themeSettings.PLANET_ROWS_ON_OVERVIEW)}
      18. {for $foo=1 to $to}
      19. <td class="transparent">&nbsp;</td>
      20. {/for}
      21. {/if}
      22. {/foreach}
      23. </table>
      24. {else}&nbsp;{/if}
      25. </div>
      26. </div>
      Display All
    • Hello when you says 1 planet.. do you mean the home planet ?

      Usualy it does not show the planet you are actualy on. you need to change the select query of this.

      Regards
    • Thisishowwedoit wrote:

      Hello when you says 1 planet.. do you mean the home planet ?

      Usualy it does not show the planet you are actualy on. you need to change the select query of this.

      Regards
      Yah, I mean home planet :)
    • mimikri wrote:

      in line 135 of includes/pages/game/class.ShowOverviewPage.php

      delete this part

      Source Code

      1. $ID == $PLANET['id'] ||
      Thanks mate :))) It's so easy. I search in .tpl not in php :) Thanks :)