Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    hi there the top bit of you're script is set for a different country, and im in the UK GMT Time
    what shall i put in this part <?php

    putenv("TZ=Australia/Melbourne");
    $h = date('G');
    $d = date('w');


    putenv("TZ=Australia/Melbourne"); as like i say im in england GMT Time



    and also i wanna go live on the air from 4pm till 6pm GTM

    how does that work.........

    elseif ($d == 3 && $h >= 14 && $h < 16) { // Show Runs From Midday til 6pm
    Last edited by djultra89; 11-28-2013 at 02:22 PM. Reason: coding

  2. #22
    djultra89's Avatar
    Title
    Senior Member
    Join Date
    Oct 2012
    Posts
    125
    Rep Power
    0
    Anyone know were I can a script for a dj schedule were I can add the times that the djs are on. And there images, also I would like it to change automatically everytime a dj goes on the air and when they go off the air and changes back to the autodj image? Any help

  3. #23

    Title
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0
    hi,


    i can get this script to work until i change the time zone i am in the uk and need the timezone to change can anyone help please

    rty

  4. #24
    MarcAlle's Avatar
    Title
    Streaming Specialist
    Join Date
    May 2008
    Posts
    949
    Rep Power
    19
    Just change the timezone. Where it says:
    Australia/Melbourne
    Change that to your timezone based on the PHP Timezone List.
    Stream101 | Affordable Media Solutions
    Shared/Reseller cPanel® Web Hosting | WordPress Hosting | Premium Stream Hosting
    TOLL-FREE: (877) 240-7767 | 30 Day NO QUESTIONS Money-Back Guarantee
    100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI

  5. #25
    garybaldy72uk's Avatar
    Title
    Senior Member
    Join Date
    Oct 2010
    Location
    Manchester
    Posts
    671
    Rep Power
    29
    For the UK you need to change the timezone set to.

    Europe/London

    http://djgarybaldy.co.uk
    http://djgarybaldy.co.uk/radiodj-fre...ation-software
    https://www.facebook.com/DJGarybaldy


    Problems with your current automation program? Why not switch to Radio DJ Free Radio Automation Software instead? It's 100% FREE & reliable. http://radiodj.ro

  6. #26

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    7
    i'm getting stuck with this part echo'<div style="text-align: center;"><img src="' . $img . '"></div><br><div style="padding-left: 5px; padding-bottom: 5px; font-size: 12px;"><b>' . $title . '</b><br><i>' . $sub . '</i></div>';

    please help

  7. #27
    James's Avatar
    Title
    Administrator
    Join Date
    Jan 2008
    Location
    Melbourne, Australia
    Posts
    12,182
    Rep Power
    10
    Quote Originally Posted by djaubs89 View Post
    i'm getting stuck with this part echo'<div style="text-align: center;"><img src="' . $img . '"></div><br><div style="padding-left: 5px; padding-bottom: 5px; font-size: 12px;"><b>' . $title . '</b><br><i>' . $sub . '</i></div>';

    please help
    Please provide some more detail. What bit are you stuck on specifically? What are you trying to achieve vs what is it doing? That line of code looks fine to me.

    Also, please use the CODE tags when embedding code in posts for easier reading.

  8. #28

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    7
    ok so i'm meant to be on air friday saturday and sunday? but my picture is not showing up, please help

    // FRIDAY SCHEDULE
    if ($d == 5 && $h >= 0 && $h < 4) $img = '/images/jukebox.gif';
    else if ($d == 0 && $h >= 19 && $h < 24) $img = '/images/jukebox.gif';
    else if ($d == 1 && $h >= 14 && $h < 16) $img = '/images/jukebox.gif';
    else if ($d == 2 && $h >= 16 && $h < 18) $img = '/images/jukebox.gif';
    else if ($d == 3 && $h >= 18 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 4 && $h >= 20 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 5 && $h >= 18 && $h < 20) $img = '/images/strawbs.jpg';
    else if ($d == 6 && $h >= 0 && $h < 2) $img = '/images/jukebox.gif';








    // SATURDAY SCHEDULE
    else if ($d == 0 && $h >= 0 && $h < 4) $img = '/images/jukebox.gif';
    else if ($d == 1 && $h >= 19 && $h < 24) $img = '/images/jukebox.gif';
    else if ($d == 2 && $h >= 18 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 3 && $h >= 18 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 4 && $h >= 18 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 5 && $h >= 18 && $h < 20) $img = '/images/strawbs.jpg';
    else if ($d == 6 && $h < 0) $img = '/images/jukebox.gif';








    // SUNDAY SCHEDULE
    else if ($d == 0 && $h >= 0 && $h < 4) $img = '/images/jukebox.gif';
    else if ($d == 1 && $h >= 23 && $h < 24) $img = '/images/jukebox.gif';
    else if ($d == 2 && $h >= 10 && $h < 14) $img = '/images/jukebox.gif';
    else if ($d == 3 && $h >= 14 && $h < 16) $img = '/images/jukebox.gif';
    else if ($d == 4 && $h >= 16 && $h < 18) $img = '/images/jukebox.gif';
    else if ($d == 5 && $h >= 18 && $h < 20) $img = '/images/jukebox.gif';
    else if ($d == 6 && $h >= 23 && $h < 24) $img = '/images/jukebox.gif';
    else if ($d == 0 && $h >= 18 && $h < 20) $img = '/images/strawbs.jpg';
    else if ($d == 0 && $h < 0) $img = '/images/jukebox.gif';



    see were it says strawbs

  9. #29
    PapaBearPW's Avatar
    Title
    Avid Broadcaster
    Join Date
    Jun 2012
    Posts
    273
    Rep Power
    14
    For each day, you keep checking for different days...For example your Friday block:

    PHP Code:
    // FRIDAY SCHEDULE
    if ($d == && $h >= && $h 4$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 19 && $h 24$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 14 && $h 16$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 16 && $h 18$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 18 && $h 20$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 20 && $h 20$img '/images/jukebox.gif';
    else if (
    $d == && $h >= 18 && $h 20$img '/images/strawbs.jpg';
    else if (
    $d == && $h >= && $h 2$img '/images/jukebox.gif'
    You should only be checking the day ($d) once for each daily schedule. Plus your hours are all over the place and you should not have a / before the images urls. So it should look more like:

    PHP Code:
    // FRIDAY SCHEDULE
    if ($d == 5){
       if(
    $h >= && $h 4$img 'images/jukebox.gif'// Covers Friday from 00:00 until 04:00
       
    else if ($h >= && $h 5$img 'images/jukebox.gif';// Covers Friday from 04:00 until 05:00
       
    else if ($h >= && $h 6$img 'images/jukebox.gif';// Covers Friday from 05:00 until 06:00
       
    else if ($h >= && $h 7$img 'images/jukebox.gif';// Covers Friday from 06:00 until 07:00
       
    else if ($h >= && $h 8$img 'images/jukebox.gif';// Covers Friday from 07:00 until 08:00
       
    else if ($h >= && $h 9$img 'images/jukebox.gif';// Covers Friday from 08:00 until 09:00
       
    else if ($h >= && $h 10$img 'images/strawbs.jpg';// Covers Friday from 09:00 until 10:00
       
    else if ($h >= 10 && $h 11$img 'images/jukebox.gif';// Covers Friday from 10:00 until 11:00
       
    else if ($h >= 11 && $h 12$img 'images/jukebox.gif';// And so on down
       
    else if ($h >= 12 && $h 13$img 'images/jukebox.gif';
       else if (
    $h >= 13 && $h 14$img 'images/jukebox.gif';
       else if (
    $h >= 14 && $h 15$img 'images/jukebox.gif';
       else if (
    $h >= 15 && $h 16$img 'images/jukebox.gif';
       else if (
    $h >= 16 && $h 17$img 'images/jukebox.gif';
       else if (
    $h >= 17 && $h 18$img 'images/jukebox.gif';
       else if (
    $h >= 18 && $h 19$img 'images/jukebox.gif';
       else if (
    $h >= 19 && $h 20$img 'images/jukebox.gif';
       else if (
    $h >= 20 && $h 21$img 'images/jukebox.gif';
       else if (
    $h >= 21 && $h 22$img 'images/jukebox.gif';
       else if (
    $h >= 22 && $h 23$img 'images/jukebox.gif';
       else if (
    $h >= 23 && $h 24$img 'images/jukebox.gif';

    Check your PMs. I'll send you something to try.

  10. #30

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Location
    UK
    Posts
    86
    Rep Power
    7
    i do 6pm till 8pm could you put that in the script for me please

Similar Threads

  1. Station Artwork
    By ThumbDog in forum General Internet Radio Discussions
    Replies: 4
    Last Post: 04-24-2011, 03:58 PM
  2. Protools vs Audition
    By Jinglemaster in forum Audio Production
    Replies: 9
    Last Post: 07-28-2010, 12:18 AM
  3. Amazing facts
    By Baabaa Productions in forum General Internet Radio Discussions
    Replies: 5
    Last Post: 04-22-2009, 04:53 AM
  4. Introducing bodalgo - The new voice over market place
    By bodalgo in forum Audio Production
    Replies: 3
    Last Post: 03-22-2009, 02:11 AM
  5. Hi you all
    By CA101 in forum Introduce Yourself
    Replies: 1
    Last Post: 11-28-2008, 07:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •