My Code Monkey had a go at coding the Radio DJ request script
(Loosely based on a basic concept request script coded by another member of the Radio DJ community)
We’ve added more .css functionality to the website script.
Its a simple but effective way to let listeners request songs which then land in the “Request Plugin” in RadioDJ
Unavailable Means the track/artist has recently played
Select Song Means the song/artist is available for request
You can search by Artist, Title, Page numbers or also by choosing some Random songs
You can change the colours of the buttons/layout by editing the .css in main.css Open it with any good text editor, You will need to know your HEX codes
If you don’t like the sticky header remove the section around line 48.
The RadioDJ request plugin is in the disabled plugins directory move the .dll and .xml files to the plugins directory in RadioDJ and restart the program
You will need some knowledge of how to connect the script to your MySQL server. Its no more difficult than other website scripts that are available for RadioDJ.
$dataip = "127.0.0.1"; // Your external IP address $database = "admin_radiodj"; // Your RadioDJ Databse name $username = "admin_radiodj"; // Your database user name $userpass = "Mysupersecretpassword"; // Your database password[/php]
That is mainly all you should have to change apart from timezone
You need to correctly set your Time Zone in the script to match that of your server time.
$timezone = "Europe/London"; // Your time zone
Once you fill in your MySQL server information and external IP address and you’ve allowed the ports through your router/firewall then you should be good to start receiving requests from your website.
Upload the required files to your website or server once you’ve edited your connection details in config.php
You can embed the script into any webpage using a PHP require statement.
<?php require('index.php'); ?>
Tested working on Apache 2.2 & PHP 7.2 3rd August 2018
Last updated on: 26th June 2019
at 12:14 PM Europe/London