Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
SHOUTcast v2 Player
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2019-09-01 01:42:38
Hi

Comes from: SPIRITBLUE
SQL:  No
From a request: Yes


This request comes from steven07 [url='https://www.torrenttrader.xyz/index.php?threads/shoutcast-radio-for-tt3.9855/#post-67102']HERE[/url]

Hack hack is designed for a shoutcast and as you know the choutcast only works when http is so your ssl will have to be disabled from your browser for this hack to work well.

Go!...

In [color=rgb(251, 160, 38)]index.php [/color]add or ca you ..

// Player Shoutcast v2 by spiritblue
if ($site_config['Player_shoutcast']){
   begin_frame(T_("Player Live Shoutcast"));
   ?>
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />
   <script type="text/javascript" src="backend/java_klappe.js"></script>
   <?php
   $ip = "crazyspirits.com"; //IP or Name domain
   $port = "9090";// Port (Exemple: 8080)
   $fp = @fsockopen($ip,$port,$errno,$errstr,1);
   if (!$fp)
   {
   #echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream offline!' border='0'/>&nbsp;...SORRY! Close for the night Or for maintenance. Back very soon ?? </center>";
   }
   else
   {
   fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
   while (!feof($fp))
       {
       $info = fgets($fp);
       }
   $info = str_replace('</body></html>', "", $info);
   $split = explode(',', $info);
   if (empty($split[6]))
   {
       echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream hors ligne !' border='0'/>&nbsp;...SORRY! Close for the night and return early tomorrow at country time.</center><hr/>"; // Displays when sever is online but no song title
       }
   else
       {
       $title = str_replace('\'', '`', $split[6]);
       $title = str_replace(',', ' ', $title);
       $split = explode(' - ', $title);
       $artist = trim($split[0]);
       $song = trim($split[1]);
       }
   }
   /////
   function truncate($string, $length, $dots = "...") {
   return (strlen($string) > $length) ? substr($string, 0, $length - strlen($dots)) . $dots : $string;
  }
?>
   <center><span style="font-size:22px;color:#2090FF;"><img src='./images/radio/online.png' alt='Stream en ligne' title='Stream en ligne !' border='0'/> Currently on the radio ?¿..</span></center>
   <br/>
   <div border="4" cellpadding="7" align="center">
   <div id="nowPlaying" style="left:100%;font-size:15px;color:DarkGray;"><b>Artist:</b> <?php echo truncate("$artist", 40); ?></div>
   <div id="nowPlaying" style="left:100%;font-size:15px;color: DarkGray;"><b>Song:</b> <?php echo truncate("$song", 40); ?></div>
   <hr/>
<!-- player-container -->
  <audio id="player" volume="0" autoplay="false" preload="auto" src="http://crazyspirits.com:9090/;listen.m3u"></audio>
  <button type="button" onclick="document.getElementById('player').play()">Play</button>
  <button onclick="document.getElementById('player').pause()">Pause</button>
  <button onclick="document.getElementById('player').volume += 0.1">Vol +</button>
  <button onclick="document.getElementById('player').volume -= 0.1">Vol -</button>
<script type="text/javascript">
var monElementAudio = document.getElementById('player');
monElementAudio.volume = 0.9; //minimum volume heard once online
</script>
</div>

<?php
   end_frame();
}
// End player spiritblue


~ Add the "radio" name folder to the image name /images/radio/..
[ATTACH type="full" width="716px" alt="5155"]5155[/ATTACH]


[color=rgb(235, 107, 86)]NOTE[/color][color=rgb(209, 72, 65)]: [/color]i have added some writings to help you understand, you can add many more options, what i have not done so that all the communoté draws a media to have a personal taste. ?
radio.zip
Download
Capture#1PNG.PNG
Capture#1PNG.PNG

2019-09-01 08:17:18
great,its works fine.Thank you very much :love:(y)(y)
2024-05-14 11:42:08
No work.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728