Jump to content

pconkie

Frog Community Genius
  • Posts

    598
  • Joined

  • Last visited

Everything posted by pconkie

  1. That was worth a few hours..... much clearer to see which classes are getting too much/little home learning now...
  2. I think i got it... this.closest(".ui-dialog").bind("app.resize", function(event, ui, dialog) { //do adjustment to ui });
  3. Thanks! One small problem is that this triggers my code no matter which app is being resized. How can i bind to the resize event of my own app only? Walking up the DOM tree using nearest?
  4. Thanks Adam. How would I listen for the app.resize trigger?
  5. One for a dev please... @adamw? @Simon Law? In a FrogCode application how can i detect a resize? $( ".ui-dialog" ).bind( "dialogresize", function(event, ui) { console.log(event); console.log(ui); }); The code above triggers when the app is resized by dragging on an edge, but not when the max/min button is pressed (or the title bar double clicked) How can I get the width of the app whenever the width is changed? Thanks Paul
  6. @adamw the file upload only seems to work now and again.... just tried to add a file to a notice and file uploader is broken. Any ideas? @Graham Quince you should probably pull my frogcode noticeboard from the downloads area as the recent update has broken it and the new version largely makes it obsolete. If only the default settings for showing a notice was "UNTIL" rather than "FROM"!
  7. pconkie

    URL Sub page Link

    I think there are two formats that work: https://yoururl/app/os?site=yoursiteuuid&page=yoursubpagename You can get the siteuuid from the page link of a top level page. This format might also work: https://yoururl/yoursiteuuid/yoursubpagename I have a sub sub page called "test" in a site with an id of 69ab3c0389668d1ccddd4de30467f9f6 and the above works for me
  8. Can you send the three certificates? I;ll mock something up if time.
  9. FrogCode or html. There is an api that gives you access to the parents children. From there you might be able to get the groups each child belongs to. If you can then you could have a simple: if this group then show this certificate type statement. I think I have something where parents can view the teachers of their child, but that might come from using the timetable api (which wouldn't include House) rather than the groups api....
  10. On the curriculum screen Right click --> remove selected membership Save
  11. @ADT If you're going to stick with SIMS you need to get the total [int] or 'bronze', ;silver', 'gold' [string] into frog. Two ways of doing this as far as I can tell - 1. You need to hijack a field that the frog extractor pulls in. I guess this is why you were looking at Houses? If you created three Houses in SIMS (gold, silver, bronze) students would then belong to one of these groups when pulled into frog and you could show/hide certificates based on group membership. I can't think of a way you can easily (automatically) update the child's House though. There would be a way to do it without someone having to update 3300 ticks manually. Export the SIMS marksheet to excel, run a macro to transform the data a bit, import the spreadsheet as a SIMS membership file. Probably have to do this for each year group. I don't think the extractor brings in any user defined fields, so i'm not sure where you can go with that? 2. Just use the SIMS marksheet you already have. There is a little command line program in the SIMS directory that can be used to export it on a schedule as an xml, csv or xls file. Use the squid proxy server in your frog 3 box (so it works on or off site) to read it on demand from a network share. Use javascript to show/hide the correct certificate. You haven't thrown frog 3 away yet, right? For a froglearn only solution perhaps the same can be achieved using a network files widget? need to do some testing.... For end to end automation stop using SIMS for data entry and calculations and do it all through frog. Oh wait, there is no data store available in frog! Ok, I mean use frog and some cloud database solution. Oh wait, with GDPR coming in we better not store data in the cloud......better stop sending emails too.....are you sure you would rather not stick with paper (sorry, really nice card)! Paul
  12. pconkie

    Cover

    No, I cant see your site unless you make it available on the net and post the link. Simon has magic powers....
  13. pconkie

    Cover

    Sorry Sue, I thought you were talking about hiding a network files widget on the frog page where you are going to have these links. Now i'm thinking you might mean a hidden network share? So staff will need access to: S:/Path/to/Your/MainMenu.html But you won't need to have a frog network widget pointing at this on the page.
  14. pconkie

    Cover

    You won't need a hidden network folder widget. And you should put some text on the page explaining that nothing will happen if they click on the link at home. I've always found that its better to explain that something is by design rather than have them think frog is 'broken'.
  15. pconkie

    Cover

    Some explanation for those wishing to amend //div for adding our menu to the page <div data-name="cover"></div> <script> //gets the domain name of your frog server - used to create link to cover file later var baseURL = Frog.Utilities.getBaseUrl(); //uuid of the filedrop (that is hidden on the page) that contains the uploaded cover files var fileDropUuid = '8699F48D20028AEE0C759F6DDDD9DC08FBC798FC781A69D6'; //get todays date var today = moment(); //how many days ago was last Monday? Hopefully Monday = 1 and Sunday = 7 var daysSinceMonday = today.isoWeekday() - 1; //get last Mondays date var thisMonday = today.subtract('days', daysSinceMonday); //add the title to the div $('[data-name="cover"]').append("<h3>This Week's Cover</h3><ul>"); //add the link for Monday etc to the div //key here is that the data-id tag is going to contain the filename eg. CV040518 which we will try to match later //data-type is used to identify the link as a special cover link so that we can add the onClick instructions $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("</ul>"); //this next line stops the live event being added multiple times if you move from live to edit and back again in frog $("a[data-type]='coverlink'").die("click"); //these are the instructions for what to do when a link is clicked on $("a[data-type]='coverlink'").live("click", function () { //pull the data-id out of the link and use it to match against a file name in the filedrop var fileToFind = $(this).data("id"); //access the filedrop api using the uuid of our filedrop Frog.Model .api('filedrop.get', { filedrop: fileDropUuid }).done(function(filesResponse) { var found = false; filesResponse.data.resources.forEach(function(file, index) { //loop through all of the files in the fildrop and see if the file we are looking for is there... if (file.file.name == fileToFind) { found = true; //if it is open a new windoe/tab and show us the bad news (cover) window.open(baseURL + '/app/file/resource/' + file.file.uuid + '.' + file.file.ext); } }); if (found == false) { //if after trying every file we have no match displaya sutable message to the user alert("No cover.....yet!"); } }); }); </script>
  16. pconkie

    Cover

    <div data-name="cover"></div> <script> var baseURL = Frog.Utilities.getBaseUrl(); var fileDropUuid = '8699F48D20028AEE0C759F6DDDD9DC08FBC798FC781A69D6'; var today = moment(); var daysSinceMonday = today.isoWeekday() - 1; var thisMonday = today.subtract('days', daysSinceMonday); $('[data-name="cover"]').append("<h3>This Week's Cover</h3><ul>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("<li><a data-type='coverlink' data-id='CV"+thisMonday.add('days',1).format('DDMMYY')+"'>"+thisMonday.format('dddd DD MMM YYYY')+"</a></li>"); $('[data-name="cover"]').append("</ul>"); $("a[data-type]='coverlink'").die("click"); $("a[data-type]='coverlink'").live("click", function () { var fileToFind = $(this).data("id"); Frog.Model .api('filedrop.get', { filedrop: fileDropUuid }).done(function(filesResponse) { var found = false; filesResponse.data.resources.forEach(function(file, index) { if (file.file.name == fileToFind) { found = true; window.open(baseURL + '/app/file/resource/' + file.file.uuid + '.' + file.file.ext); } }); if (found == false) { alert("No cover.....yet!"); } }); }); </script> Don't forget to change the filedrop uuid back!
  17. pconkie

    Cover

    Hi @Sue Busher @Simon Law suggestion is the simplest and most sensible approach. Although of course it won't work for staff checking for cover at home before coming into school. If you are happy that somebody continues to upload the htm file to the filedrop every day, then I have the following suggestion. Use javascript to build the weekly menu that you want. Each Sunday the menu will change automatically to show the new week. You can get rid of the bullet points with some css if you like and we could develop the menu to show previous and future weeks, Clicking on the link shows the cover from the filedrop that it has been uploaded into If the cover file has not been uploaded yet...... Code follows....
  18. pconkie

    Code Help

    This worked for me (with no other html or js). Opened site - it displayed. Closed site and reopened (without refreshing frog) - it displayed. Using external <script> tags won’t work in frog.
  19. pconkie

    Code Help

    Try this on your fixtures page.... <div tkf-wrap-guid="tkf-client-window-wrap-fullcalendar-1"> <iframe title="calendar" name="tkf-client-window-embed-fullcalendar-1" src="https://events.kennetschool.co.uk/kennet?tags=fixture" style="height: 1721px;"></iframe> </div> Get rid of everything else. replace tags=fixture for your other pages.
  20. pconkie

    Code Help

    @Sue Busher There is something at the tockify end that is listening for requests. Tockify hears fine when a site is first opened in frog but not again after that (unless frog is closed down completely and re-opened). I think this is similar to the issues with multiple twitter embeds documented on this forum and so I thought the solution for twitter might work for tockify. However after an hour or so haven't made much progress. Looking at what the tockify embed javascript actually does behind the scenes, I'm wondering if we can just ditch it all together!
  21. pconkie

    Flashcards

    Get it unblocked!
  22. Thanks Simon, I was told we had a ticket open but need to check this. I spent a long time last night sorting this out outside of frog. I think i fixed them all!!! I'll try and find any that are still broken....
  23. No Matt, No frog connect yet....
  24. So copying the folder in windows explorer; deleting the original folder and then renaming the copy back to the original seems to sort this out. But why? Plus too many folders to do this!!
  25. Anybody had this? All Network File widgets inside frog show the correct files but "an unknown error" occurs of any one tries to open (download) a file. As we have most of our GCSE revision stuff set up in frog this way, it's causing a huge problem. I think we have a ticket open.
×
×
  • Create New...