RadioDJ Demo Script
The demo script (available in download section) contains a few useful scripts that allows you to make your RadioDJ more interactive for your website visitors.
It contains the following sections:
- NOW PLAYING (shows current track, a custom number of upcoming tracks, and a custom number of already played tracks)
- TOP SONGS (most played songs in a custom time period)
- TOP ALBUMS (most played albums in a custom time period)
- SONG REQUESTS (allow users to navigate thru your music database, search for artist or track and request tracks.) It also allows users to send messages, that will be displayed in the RadioDJ, if using requests plugin.
Some settings are user customizable:
1. NOW PLAYING
– This section is showing the current playing songs, the following artist and the already played songs.
– The following settings can be customized in “live_stat.php”:
$pageTitle = "Now Playing"; $nextLimit = 3; // How many upcoming tracks to display? $shufleUpcoming = True; // Don't show the correct order of upcoming tracks $resLimit = 5; // How many history tracks to display?
2. TOP SONGS
– This section is showing the most played songs in a custom time interval
– The following settings can be customized in “top_songs.php”:
$pageTitle = "Most Played Songs This Week"; $resDays = 7; // On how many days to build the top? $resLimit = 20; // How many results to display?
3. TOP ALBUMS
– This section is displaying the most played albums in a custom time interval
– The following settings can be customized in “top_albums.php”:
$resDays = 7; // On how many days to build the top? $resLimit = 20; // How many results to display?
4. SONG REQUEST
– This section displays all the enabled tracks from the database that are music track type;
– It allows visitors to search tracks by artist/title;
– It allows visitors to add tracks to the requests table in the database;
– Tracks and artists played in a custom interval are displayed, but disabled, so they cannot be requested.
INSTALLATION
1. Open “serv_inc.php” and enter your Database and MySQL server details;
2. Upload all the files to your web server;
3. If the webserver is not on the same computer with the MySQL database, you will need to create a new MySQL user that can connect from your webserver to your MySQL server. Also it is important that the firewall ports used for for MySQL to be open on both your webserver and your computer (and routers if any).