Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   player shoutcast+plugin (http://www.bvlist.com/showthread.php?t=6432)

DARCK 13th May 2011 18:08

[TSSE 5.6]player shoutcast+plugin
 
3 Attachment(s)
:drink:

Attachment 2886

create the plugin

Plugin Name: player

Plugin Title: player

Plugin Content:
PHP Code:

<A HREF="#" class="Style3" onClick="window.open('play/flscplayer.php','player','toolbar=0, location=0, directories=0, status=0,  resizable=0, copyhistory=0, menuBar=0, width=590, height=490, left=0, top=0');return(false)"><img title="Ecouter" src="play/images.jpeg" alt="Ecouter" width="100%"></a


You have to modify the ip of your shoutcast

edit radio.php
PHP Code:

<?

$radio 
'yourip';
$port '8000';
echo 
"radio=http://$radio:$port/;";
?>

upload play and flashplayer.swf to root/play

lafouine022 13th May 2011 19:51

nice d'job

smoky28 14th May 2011 09:26

player shoutcast+plugin
 
Nice mod Drack :drink:

DARCK 14th May 2011 13:42

hi
 
2 Attachment(s)
hello friends I work on it to view the picture

Attachment 2889

I still have to integrate the web player :friend:

the result looks like this

Attachment 2890

Muikku 14th May 2011 16:05

nice one! can you share this for us?

http://www.bvlist.com/attachment.php...1&d=1305377739

DARCK 14th May 2011 17:26

hi
 
1 Attachment(s)
no problem with joy :drink:
there is only the top 10 to finish

wMan 14th May 2011 20:31

Quote:

Originally Posted by DARCK (Post 27937)
hello friends I work on it to view the picture

Hi yes i would like this mod as well please and would you upload it as a zip file as the rar not any good to me as i just get a IE link

And by the way like your main tbeme which i made for a mate of mine good to see the themes are being used

DARCK 15th May 2011 14:51

Updates
 
1 Attachment(s)
I add a stat and improve overall code
and add style to better edit
and also add the 10 last stream :drink:

edit globalstat.php line 50

PHP Code:

$serveur    '88.171.19.27';

$port        8000;

$adminpass    your pass

edit list.php line 35

PHP Code:

$serveur    '88.171.19.27';

$port        8000;

$adminpass    your pass

edit player.php line 18

PHP Code:

so.addVariable("mp3""http://88.171.19.27:8000/;"); 

edit pochette.php line 2

PHP Code:

$host "88.171.19.27";
$port "8000"// 8000 

edit stat.php line 2

PHP Code:

$host "88.171.19.27";
$port "8000"// 8000 

edit titre.php line 5
PHP Code:

$fp fsockopen ("88.171.19.27"8000$errno$errstr30); 

demo:
http://lateambox.dyndns.org/radiolateam/index.php

eckeO5 18th May 2011 20:29

top10.php
 
nice webplayer, big thx to lateam for that.:friend:
is it possible to get the top10.php somehow.

DARCK 18th May 2011 20:53

hi
 
Quote:

Originally Posted by eckeO5 (Post 27990)
nice webplayer, big thx to lateam for that.:friend:
is it possible to get the top10.php somehow.


creat list.php


PHP Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">

    

<head>

    


<META content=30 http-equiv=REFRESH>


    


</head>



<body>






<?php



include 'statcast.php';


$serveur    '88.171.19.27';

$port        8000;

$adminpass    your pass;





$tab_infos shoutcast_stats($serveur$port$adminpass);




    

    echo 
'';

    

    if (
$tab_infos)    // avons nous réussi à nous connecter au serveur ?

    
{

        if (
$tab_infos['http_code'] == '200')    // le serveur ne nous a-t-il pas jeté pour cause de mot de passe invalide ?

        
{

            


            if (
$tab_infos['streamstatus'])        // le serveur diffuse-t-il ?

            
{

                
/*    Il se peut que certaines informations de flux soit encore présente même si le serveur ne diffuse pas

                    mais il n'y a pas de réel interet à les afficher dans ce cas ^^

                */

                

                

            
}

            else                                
// il ne diffuse pas, montrons le  ^^

                
echo '<h3>Le serveur ne diffuse pas actuellement...</h3>';

                

            if (
array_key_exists('morceau'$tab_infos))    // pouvons nous afficher un historique des morceaux ?

            
{

                

                

                echo 
'';

                

                foreach(
$tab_infos['morceau'] as $date => $titre)

                    echo 



                            


                                    <FONT size="1pt"> <font color="white">+' 
$titre '</font> </FONT>        


                                


                                    
'
;
 echo 
'


        <p class="date"><strong>Update successfull.. This window will be closed automaticly in a few seconds...</strong></p>


        <script type="text/javascript">


            setInterval("window.close()",3000);


            opener.location.reload();


        </script>'
;


                

            }

            
else


      {


        
header ('Location: list.php');


      }

            

            if (
array_key_exists('auditeur'$tab_infos))    // pouvons nous afficher la liste des auditeurs ?

            
{

                echo 
'<h3>Connexions :</h3>';

                

                echo 
'<table>';

                echo 
'<tr><th>ID</th><th>Hôte</th><th>User Agent</th><th>Durée (s)</th></tr>';

                

                
/*    Dans cet exemple, la résolutions des IP en nom DNS est présente, pour plus de rapidité ou si elle est déja activé au niveau

                    du serveur ShoutCast il est conseillé de transformer : "gethostbyaddr($valeur['hote'])" en "$valeur['hote']". */

                

                
foreach($tab_infos['auditeur'] as $id => $valeur)

                    echo 
'<tr><td>' $id '</td><td>' gethostbyaddr($valeur['hote']) . '</td><td>' $valeur['useragent'] . '</td><td>' $valeur['temps'] . '</td></tr>';



                echo 
'</table>';

            }



        }

        else

            echo 
'<strong>Erreur</strong> : Le mot de passe est sans doute invalide, vérifier la variable adéquat.';

    }

    else

        echo 
'<strong>Erreur</strong> : la connexion au serveur <code>' $serveur '</code> sur le port <code>' $port '</code> à échoué... (serveur down ?)';

    

    echo 
'</div>';



    



?>



</body>

</html>

edit
PHP Code:

$serveur    'your ip shoutcast';
 
 
$port        port shoutcast;
 
 
$adminpass    your pass shoutcast

the top10.php coding in course


All times are GMT +2. The time now is 03:03.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.