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

0 Miembros and 1 Guest are viewing this topic.

Offline nescafe on: July 04, 2018, 02:52:46 AM

  • *
  • Rank: Dedicado
  • Posts: 55
  • Gracias recibida: 208
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 on: July 06, 2018, 03:44:14 PM

  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 0
<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
« Ultima edicion: July 06, 2018, 05:24:33 PM by -𝐑𝐀𝐒𝐓𝐀𝐀👽 »

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
303 Views
Last post June 12, 2017, 10:43:31 PM
by TroYans
6 Replies
1141 Views
Last post April 16, 2018, 02:12:01 AM
by -𝐑𝐀𝐒𝐓𝐀𝐀👽
20 Replies
3106 Views
Last post September 20, 2018, 11:12:07 AM
by adryan
15 Replies
1407 Views
Last post October 15, 2018, 07:15:06 PM
by ZabiinoOo
0 Replies
156 Views
Last post November 09, 2017, 02:59:10 PM
by diju