Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: DMN Mistery Template - Online player incorrectos  (Visto 1208 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline nescafe Posteado: July 04, 2018, 01:52:46 AM

  • 0 puntos por ventas
  • *
  • Rank: Heroe
  • Posts: 179
  • Gracias recibida: 4684
  • cl
Hola estaba probado el Template  DMN Mistery Template aportado en el siguiente link:

http://tuservermu.com.ve/index.php?topic=7159.0

pero el problema es que no actualiza los usuarios en linea:



Esta debería ser la linea de código que muestra los usuarios en linea? alguien sabe? este es el archivo view.header.php
Code: [Select]
	   <div style="font-size: 15px;font-weight: bold;text-shadow: #000 0px 0px 3px;color: #d46013;padding-top: 0px;width: 296px;background: #000;/* height: 100px; */position: absolute;top: 377px;/* text-align: center; */width: 296px;height: 70px;background: url(<?php echo $this->config->base_url;?>assets/<?php echo $this->config->config_entry("main|template");?>/images/s02.jpg);">
   <?php
$i = 0;
$online = 0;
        $max = 100;
        foreach($this->website->check_server_status() as $key => $value):
        $online += $value['players'];
        endforeach;
        $percentage = floor(100 * $online / $max);
foreach($this->website->check_server_status() as $key => $value):
if($value['visible'] == 1){
$info = ($value['image'] == 'on') ? array('online', 'style="color: #27c460"') : array('offline', '');
$i++;
?>
<div class="server" id="<?php echo 's'.$i.'_'.$info[0];?>">
<?php echo $value['title'];?>
<br>
<div style="width: 100%;margin-top: 11px;background: rgba(0, 0, 0, 0.23);height: 10px;border-radius: 5px;">
<div  style="width:<?php echo $percentage;?>%;    background: rgb(240, 171, 16);
    height: 10px;
    border-radius: 5px;"></div></div><br>
<span <?php echo $info[1];?>><?php echo $info[0];?> (<?php echo $value['players']*2;?>)</span>
</div>
<?php
}
endforeach;
?></div>



Offline funzmu #1 Posteado: July 06, 2018, 02:44:14 PM | Modificado: July 06, 2018, 04:24:33 PM by -𝐑𝐀𝐒𝐓𝐀𝐀👽

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 42
  • Gracias recibida: 17
  • england
<span <?php echo $info[1];?>><?php echo $info[0];?> (<?php echo $value['players']*2;?>)</span>

change to:

<span <?php echo $info[1];?>><?php echo $info[0];?> (<?php echo $value['players'];?>)</span>



EDIT


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
3411 Views
Last post April 16, 2018, 01:12:01 AM
by -Rastaa.TSM☢
23 Replies
12440 Views
Last post July 19, 2019, 01:57:36 AM
by Zahamael
20 Replies
7493 Views
Last post February 13, 2019, 12:20:17 PM
by -Rastaa.TSM☢
3 Replies
986 Views
Last post August 10, 2019, 06:13:30 PM
by EzeQ
17 Replies
5859 Views
Last post July 16, 2022, 10:16:09 PM
by SaintZeus