Jump to content

Graham Quince

Administrators
  • Posts

    2,046
  • Joined

  • Last visited

Community Answers

  1. Graham Quince's post in Password expired causing problems was marked as the answer   
    I never handled the AD for my school's network, but could you disable the auto-expiry and switch to a manual expiry?   That way you could ensurethe resets all happen mid-week instead of every 60 days 
  2. Graham Quince's post in Network Widget CSS Modification was marked as the answer   
    Hi @krisdan
    All CSS in an HTML widget can do is change the look of something.  You're not accessing any APIs, running scripts etc...
    Can you post a screenshot.  I'd be interested to see what you've done.
    Graham
  3. Graham Quince's post in Search Pages was marked as the answer   
    Hi @ghughes
    I've been thinking about this and I think it might be possible, but long winded.  You can create a string search in Javascript / jQuery and add an onclick event to trigger a page link.   It would be a bit of work to set up, but should work for you.
    Simon's tutorial might be able to get you started - https://frog.frogcommunity.com/html-forum
  4. Graham Quince's post in Bulk share to timeline from Frog? was marked as the answer   
    Hi @Corinne,
    Aww man, that sounds frustrating.  We've kicked it round the office and yeah, right now, you have to individually send each photo to a site.  The soon-to-appear galley widget would help here, but in the meantime, this tutorial can display files in a folder:
    https://www.frogcommunity.com/understanding-api/calling-an-api
    If you need help setting this up, drop me a line
    Graham
  5. Graham Quince's post in Display Logged in Users Calendar was marked as the answer   
    Not a silly question at all.  Unfortunately right now, you can't set the calendar widget in this way.
    You can embed the entire calendar in a page using the following address with the embed website widget: yourfrogURL/app/calendar
    I've had a quick look on Ideas Portal and didn't see this as a suggestion, so feel free to create a new Idea for this.
    Graham
  6. Graham Quince's post in Displaying a PDF was marked as the answer   
    Hi @ADT,
    There's a bunch of different ways you can do this:
    Using this HTML code as a starting point:
    <embed src="copied_link" width="500" height="375" type='application/pdf'> You can display a PDF in a site.
    1) We could use the File Drop widget tutorial: https://www.frogcommunity.com/filedrop to read all files in a File Drop and display them using the above
    2) We could use the code in Understanding APIs tutorial https://www.frogcommunity.com/understanding-api to read the contents of a folder and display using the above
    3) @John Elliott posted this option on the old forum:
    <style> div.pdf_viewer { position: relative; padding-bottom: 130%; height: 0; overflow: hidden; } div.pdf_viewer iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <script> if (typeof PDF_To_Viewer !== 'object') { //just in case this is on multiple dashboards, only really want to instantiate it once. PDF_To_Viewer = { base_url: Frog.Utilities.getBaseUrl() + '/app/', init: function(anchor) { this.anchor = 'view_anchor_'+ Math.floor((Math.random() *10000) + 1); $('#'+ anchor).attr('id', this.anchor); //allow this element ID to be re-used on other pages. this.buckets = $('#'+ this.anchor).parents('div.sites_page').data('controllers').sites_page.page_pre_save_state.buckets; this.find_link_to_file(); }, find_link_to_file: function() { for (i=0; i<this.buckets.length; i++) { for (uuid in this.buckets[i]) { if (typeof this.buckets[i][uuid].widget.namespace == "widget.filelink") {//is this a link to file this.is_a_pdf(i, uuid); } } } }, is_a_pdf: function(i, uuid) { var context = {bucket: this.buckets[i][uuid], anchor: this.anchor}; $.ajax(this.buckets[i][uuid].prefs.resource_url, {type: "HEAD", context: context}).complete(function(xhr) { if (xhr.getResponseHeader('Content-Type') == 'application/pdf') PDF_To_Viewer.replace_with_viewer(this); }); }, replace_with_viewer: function(data) { var html = "<iframe src="https://docs.google.com/gview?url="+ encodeURIComponent(this.base_url + data.bucket.prefs.resource_url) +"&embedded=true" frameborder='0'></iframe>"; $('#'+ data.anchor).parents('.sites_page').find('div[data-content-uuid="'+ data.bucket.uuid +'"] div.widget_filelink').addClass('pdf_viewer').html(html); } }; } </script> <div id='something_somewhat_unique'></div> <script> PDF_To_Viewer.init('something_somewhat_unique'); </script> 4) @emoseley posted this idea:
    5) And this one:
     
    Thanks for posting this.  I was wondering how best to share these.  If you need me to elaborate on any of these (especially the top two), just let me know.  From your original description, 2) seems the closest match, but... if youy check to Ideas Portal, Embed Doc Widget - Ability to embed a PDF Document within a site -  http://ideas.frogcommunity.com/ideas/FRG-I-725 is actually marked as In Development
    Hope something here helps
    Graham
  7. Graham Quince's post in Mailto links was marked as the answer   
    Hi Sue,
    Unfortunately i don't think this is possible with mailto links - but FrogLearn forms can be set up to send an email on submission.  You'd need a form per staff member, but it would include the username of the sender automatically.  Staff couldn't hit 'reply' but at least they'd see who had sent them the message.
    Graham
×
×
  • Create New...