Weekly schedule not showing on website
  • Jason BassettJason Bassett
    Posts: 28Member
    Hello

    I have use the following code to export the weekly schedule to my webpage but only the titles of the days are appearing, no other content.  The on now/next and also the single day schedules are appearing without issue.

    <link rel="stylesheet" href="/airtime-widgets/css/airtime-widgets.css" type="text/css" />
    <script src="/airtime-widgets/js/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script src="/airtime-widgets/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="/airtime-widgets/js/jquery.showinfo.js" type="text/javascript"></script>
    <script>    
        $(document).ready(function() {
            $("#scheduleTabs").airtimeWeekSchedule({
                sourceDomain:"http://radio.thurrockradio.org.uk:85",
                dowText:{monday:"Monday", tuesday:"Tuesday", wednesday:"Wednesday", thursday:"Thursday", friday:"Friday", saturday:"Saturday", sunday:"Sunday"},
                miscText:{time:"Time", programName:"Name of programme", details:"Details", readMore:"Read more"},
                updatePeriod: 600 //seconds
            });
        });
    </script>
    <div id="scheduleTabs" style="position: relative; bottom: 100px;"></div>
  • 15 Comments sorted by
  • MegthingMegthing
    Posts: 9Member
    I'm having the exact same problem.
  • Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Have you turned on widget access to Airtime in your preferences?
  • Jason BassettJason Bassett
    Posts: 28Member
    Hello Paul

    Yes the other widgets are working quite happily.

    Just the weekly display that is blank (apart from the day of week titles Monday, Tuesday etc.)

    Jason
  • I've the same problem since I'va update to Airtime 2.0.
    At http://buzzradio.loisirsdegrandir.org/emissions-ateliers/programmes/
    You can see that other widget works correctly... but not the weekly scheduler !

    BuzzRadio - La Radio Educative
    Pour contribuer à l'éducation aux médias
  • YounesDesignYounesDesign
    Posts: 51Member
    Yep! me too I have exactly the same bug since the last update to 2.0
    When I look to FireBug I have this error:

    timestamp is undefined
    .../js/jquery.showinfo.js  Ligne: 437

    The error seems to come from this function:

    function getTime(timestamp) {
        var time = timestamp.split(" ")[1].split(":");
        return time[0] + ":" + time[1];
    };

    Any idea?
    Post edited by YounesDesign at 2012-01-31 09:56:00
    Listen to Ness Radio LIVE
    NESS RADIO
  • Martin KonecnyMartin Konecny
    Posts: 809Member
    Hi YounesDesign,

    Thanks for the bug report, I filed a ticket here.

  • YounesDesignYounesDesign
    Posts: 51Member
    Hi Martin!

    I just checked the bug report and there is Ofir saying : "Martin - I've retested the widget and it works fine"
    Did you tell him that all the widget are working fine except the scheduleTabs widget?

    I send you the link of my page with the scheduleTabs bug

    Thx for the support!
    Listen to Ness Radio LIVE
    NESS RADIO
  • Martin KonecnyMartin Konecny
    Posts: 809Member
    Hey,

    So I looked into this a little more. Problem is that you have an older version of the widgets :). Please overwrite the js files with the ones from 2.0. These are available in the tarball under the widgets/ directory.
  • Hi Martin !

    I've take a look at the different version of the JS files... I believe that are the same file in the both version 1.9.5 and 2.0... To be sure I've update the JS files.... No change !
    (I've take the files in the tarball).

    Waiting for other feedbacks

    BuzzRadio - La Radio Educative
    Pour contribuer à l'éducation aux médias
  • YounesDesignYounesDesign
    Posts: 51Member
    Yep it works for me! Thx Martin

    @Michael: en fait tu as l'impression que les fichiers sont les mêmes mais en fait ils ont complètement modifié le fichier js/jquery.showinfo.js :)
    Listen to Ness Radio LIVE
    NESS RADIO
  • It works !!
    Thanks to the team ans @YounesDesign

    Looking at my schedule (today on saturday), I can see the show of this day...
    But looking onsunday (tomorow), I can see the shows of the previous sunday...

    Do you according that is all rights ?
    BuzzRadio - La Radio Educative
    Pour contribuer à l'éducation aux médias
  • Albert FRAlbert FR
    Posts: 576Member
    Michael,
    on the new airtime you can choose the first day of the week
    the problem is perhaps here ;)
    Je peux le faire ;) [Pour vous] Gnu/Linux & Media Architect
  • DominicDominic
    Posts: 6Member
    Yup I'm having the same problem. Did this get fixed? I am using the widget from 2.0.3 I'm building a new site in wordpress for basic.fm. I'm aware I have an unusual install for basic.fm but I was just wondering if there are any larger issues before I start poking around too much.

    oh wait, I fixed it.  by adding some code I found by looking at the buzz radio player. Hope you don't mind Michael :)

    <script>    
        $(document).ready(function() {
            $("#scheduleTabs").airtimeWeekSchedule({
                sourceDomain:"http://myairtimeserver.fun",
                dowText:{monday:"Monday", tuesday:"Tuesday", wednesday:"Wednesday", thursday:"Thursday", friday:"Friday", saturday:"Saturday", sunday:"Sunday", },
                miscText:{time:"Time", programName:"Programme name", details:"Details", readMore:"Read more"},
                updatePeriod: 600 //seconds
            });
                var d = new Date().getDay();
        $('#scheduleTabs').tabs({selected: d === 0 ? 6 : d-1, fx: { opacity: 'toggle' }});
            
        });
    </script>
    <div id="scheduleTabs"></div>
    Post edited by Dominic at 2012-04-06 14:55:51
  • Martin KonecnyMartin Konecny
    Posts: 809Member
    We have a ticket for this scheduled for 2.2

  • Jason BassettJason Bassett
    Posts: 28Member
    Hello folks

    Have upgraded to 2.0.3 but still have the issue.

    Although, after applying Dominics code as above, it now works.

    Jason