Page 5 of 5 FirstFirst ... 345
Results 41 to 47 of 47
  1. #41

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Posts
    85
    Rep Power
    6
    so it would go <head>meta</head>

  2. #42
    James's Avatar
    Title
    Administrator
    Join Date
    Jan 2008
    Location
    Melbourne, Australia
    Posts
    12,169
    Rep Power
    10

  3. #43

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Posts
    85
    Rep Power
    6
    ok think i have it

    <!DOCTYPE html>
    <html>
    <meta http-equiv="refresh" content="30"/>
    <head>


    </head>


    <body>
    <div align=right><!DOCTYPE html>
    <html>
    <body>


    <p><font color="red"><?php function onAirNow() {// James' Show On Air Script
    // http://broadcastingworld.com/








    // Set the timezone
    // See full list of timezones here: http://php.net/manual/en/timezones.europe.php
    date_default_timezone_set('Europe/London');








    // Set default text and default image | When a show is not on air, this text and image will display
    $default_on_air = '<p><font color="red">No DJ is on air'; // Default text
    $default_image_on_air = 'http://urban-radio.co.uk/images/jukebox.gif'; // Default image








    // Shows array, edit this information for each show
    $shows = [
    [
    'show_name' => "JukeBox", // jukebox
    'day' => "Monday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 01, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/jukebox.gif'
    ],
    [
    'show_name' => "JukeBox", // jukebox
    'day' => "Tuesday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 01, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/jukebox.gif'
    ],
    [
    'show_name' => "JukeBox", // jukebox
    'day' => "Wednesday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 01, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/jukebox.gif'
    ],
    [
    'show_name' => "JukeBox", // JukeBox
    'day' => "Thursday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 01, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/jukebox.gif'
    ],
    [


    ],
    [
    'show_name' => "80's Request", // 80s
    'day' => "Friday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 18, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/strawbs.jpg'
    ],
    [
    'show_name' => "80's Request", // 80s
    'day' => "Saturday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 18, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/strawbs.jpg'
    ],
    [
    'show_name' => "80's Request", // 80s
    'day' => "Sunday", // Day (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    'start_time' => 18, // Start Time (24 hour format)
    'end_time' => 20, // End Time (24 hour format)
    'image' => 'http://urban-radio.co.uk/images/strawbs.jpg'
    ]
    ];








    /////////////////////////////////////////////////////
    ////////// DO NOT EDIT BELOW THIS LINE //////////////
    /////////////////////////////////////////////////////








    $now_day = date('l');
    $now_time = date('G');








    $output = array($default_on_air, $default_image_on_air);








    for($i = 0; $i < count($shows); $i++) {
    if($shows[$i]['day'] == $now_day && $shows[$i]['start_time'] >= $now_time && $shows[$i]['end_time'] < $now_time) {
    $output = array($shows[$i]['show_name'], $shows[$i]['image']);
    }
    }








    return $output;








    }
    ?>
    DJ Now On Air: <br />
    <img src="<?php echo onAirNow()[1]; ?>"><br />
    <h3><?php echo onAirNow()[0]; ?></h3></font></p>
    </body>


    </html>

  4. #44

    Title
    Junior Broadcaster
    Join Date
    Oct 2012
    Posts
    85
    Rep Power
    6
    i dont get it i have put 18 for start time and 20 for end time its not working

  5. #45

    Title
    Barely A Broadcaster
    Join Date
    Jun 2016
    Location
    Hastings East Sussex
    Posts
    69
    Rep Power
    0

    Lightbulb

    rite one last question, how would that code show when my dj's are online as well

  6. #46
    RDJUser's Avatar
    Title
    Avid Broadcaster
    Join Date
    Aug 2012
    Location
    Harpurhey, Manchester UK
    Posts
    131
    Rep Power
    10
    You've asked this question many many times and IF the answers haven't sunk in by now then that's NOT our fault....

    I'm imagining a lot of people around here are getting just a tad bored with your pathetic repetitive questions...

    I'm going to suggest to James that he locks this thread


    Proud USER of RadioDJ since 2011 - People say I'm biased!

    Online: Twitter - Facebook - RadioDJv2

  7. #47
    GKIye's Avatar
    Title
    Moderator
    Join Date
    Nov 2008
    Location
    @ home
    Posts
    2,970
    Rep Power
    67
    This topic is started at April 8, 2017


    James, the founder of BW has provided several scripts, links and details about several scripts
    He even provided a script to show "the online dj"
    James is a "tech guy" ... when he writes a script, it gonna show everyone the right content.
    Quote Originally Posted by ultra89 View Post
    rite one last question, how would that code show when my dj's are online as well
    I beg You and fellow (new) members to "read" what is written, to test Yourself scripts, to discover the download area of your stream provider ... and "to learn" how things are working.


    We as alltime members, since 2008 / 2009, to BW have learned through the years with ups and downs how scripts are acting, are working, where they can be found, how to adjust them etc ...
    Most of Us are selfmade people since decades (I am into broadcasting since 1978, so been there - done that).
    Before these kind of forums about broadcasting were online We had to "find" at any place possible "some info" to what We were searching for.

    So please, understand Our point of view as pro and former pro broadcasters, including every hobby broadcaster that "searching & learning" isn't a shame.
    However please do not ask at all time the same or similar questions.
    Use the "search" tool at this website !!
    Since BW is founded in 2008, and in earlier days at other forums, We have seen these kind of questions very very very often.

    If some members do not want, or are not able to read the answers, I suggest that kind of people to stop with their broadcasting "dream".

    Last but not least ...
    At this link You can find the "online dj" script provided by James ... Please read it, learn it & use it !
    https://www.tehplayground.com/PLFCyp96cBBFRtBL

    Hereby this thread is closed
    If You Like My Work Which I Have Done For You

    Visit and listen @ BW !



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
  •