Author: tomy91
Modification Description:: Adds a info block about shoutcast stream status, current song, bitrate, listener info and Tune In buttons!
Modification Version:: 1.1 [updated on 03-april-2009]
Requirements: PHP with allowed UDP protocol
Screenshots:
ONLINE:
OFFLINE:
Demo URL: N/A
Modification Download: DownloaD
==================================================
INSTALLATION:
1. Upload the folder "radio" to the phpbb3 root folder (as it could be accessible from http://www.your.url/forum.directory/radio)
2. Open styles/prosilver/template/overall_header.html with your favorite text editor.
Find:
Code: Select all
<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
</ul>
Code: Select all
<!-- PHP --> include("radio/radio_stats.php"); <!-- ENDPHP -->
4. Login to ACP, in General tab click on Security Settings (under SERVER CONFIGURATION category) and set "Allow php in templates" to YES!
5. Navigate to ACP -> Styles, select Templates (under STYLE COMPONENTS) and Refresh your boards default template.
6. Navigate to ACP -> General and "Purge the cache"!
==================================================
CONFIGURATION:
1. Open radio/config_radio.php and fill in the information of your stream:
Code: Select all
<?php
$scdef = "Your station title";
$scip = "ip or hostname";
$scport = "port";
$scpass = "shoutcast admin password";
?>
Find: http://your.stream.url:port/listen.pls and replace it with the path to the streams PLS file
OR to the http://www.site.com/forums/radio/listen.pls (this way you have to edit the existing PLS file with some text editor and enter your stream url and port here: File1=http://your.stream.url:port/. (example: File1=http://www.stream.com:8000/
3. To let people listen the stream with Windows Media Player, in radio_stats.php change http://your.custom.directory/listen.asx to www.site.com/forums/radio/listen.asx (before this open listen.asx file with notepad and change <ref href="http://your.stream.url:port"/> to your streams URL (example: <ref href="http://www.stream.com:8000"/>)
This is my first small modification so say what do you think and ask for support if I've missed something.
P.S. Sorry about my English
