Cómo mostrar los administradores en linea en New-Star 2.2.2? How to show online administrators in New-Star 2.2.2?

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

    • Cómo mostrar los administradores en linea en New-Star 2.2.2? How to show online administrators in New-Star 2.2.2?

      Hola chicos, quiero poder mostrar a los jugadores los administradores que se encuentra en linea, como lo hacia Xterium, puedieran ayudarme con el código y en que lugar añadirlo.

      Gracias

      Hi guys, I want to be able to show the players the administrators that are online, as Xterium did, they can help me with the code and where to add it.

      Thanks

      Привет, ребята, я хочу показать игрокам администраторов, которые находятся в сети, как это сделал Xterium, они могут помочь мне с кодом и куда его добавить.

      Спасибо
    • Creo que con agregar ya resuelves

      HTML Source Code: page.overview.default.tpl

      1. <span><i class="fas fa-user-shield"></i> {$LNG.ov_admins_online}: {foreach $AdminsOnline as $ID => $Name}{if !$Name@first}&nbsp;•&nbsp;{/if}<a href="#" onclick="return Dialog.PM({$ID})">{$Name}</a> {foreachelse}{$LNG.ov_no_admins_online}{/foreach}</span>

      sino agregar en dentro de la funcion Show

      Source Code: ShowOverviewPage.class.php

      1. $AdminsOnline = array();
      2. $sql = "SELECT id,username FROM %%USERS%% WHERE universe = :universe AND onlinetime >= :onlinetime AND authlevel > :authlevel;";
      3. $onlineAdmins = $db->select($sql, array(
      4. ':universe' => Universe::current(),
      5. ':onlinetime' => TIMESTAMP-10*60,
      6. ':authlevel' => AUTH_USR
      7. ));
      8. foreach ($onlineAdmins as $AdminRow) {
      9. $AdminsOnline[$AdminRow['id']] = $AdminRow['username'];
      10. }
      Display All
      Al final New-Star no es mas que core 2moon 2.0.
      VERY SAD :/ :/ :/ :/