STREAMPANEL Mobile Statistics in PCPIN Chat
In the following article, we will show you how you can build the statistics of the mobile systems within the PCPIN chat.
Attention: Depending on the template, the installation of the statistics may vary.
- Open the main directory of the PCPIN chat and create a new file with the name "sp_mobile_statistik.php".
- Fill this file with the following content.
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="refresh" content="15"> <title>STREAMPANEL Mobile Statistik</title> </head> <body> <?php $listener_output = file_get_contents('https://scripts.streampanel.net/spm/listener_icecast.php?url=http://IP-ADRESSE:PORT'); ?> Aktuelle Hörer: <?php echo $listener_output; ?> </body> </html>
- Replace "IP ADDRESS" and "PORT" with your data which you can find in the product management.
- Now open the file "tpl/chat_rooms.tpl" and include the statistic in a location of your choice with the following content.
Notice: The statistics update every 15 seconds.
If you have any questions, please comment on this content or write to us via support ticket.