-- Flash side --<br><br>put a radio button in the editor<br>add an extra parameter to the url generation code (event handler for the play button)<br><br>-- php side --<br><br>Edit preview and play .php to check for this new $_GET and then branch<br>
<br>-- .htaccess side --<br><br>Mod the reg exp<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 1:37 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Time is of the essence for the 1.9 drop because we want to get that done by 30<sup>th</sup> November, so I like what you’re saying, but wonder if it can be done in time…?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat Lockley<br>
<b>Sent:</b> 21 November 2012 13:29</span></p><div class="im"><br><b>To:</b> For Xerte technical developers<br></div><div class="im"><b>Subject:</b> [Xerte-dev] Re: Players and alternative formats<u></u><u></u></div><p></p>
</div><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:36.0pt">Well it depends on what we call "now"</p><div><div class="h5"><br><br>It's a bit roadmappy, but for 1.9 you'd not have html_play.php and play.php, but one play.php which would then switch on the variable set (within the module folder). <br>
<br>You'd have an option somewhere of setting "HTML5" somehow (perhaps a radio box on the editor?) which would then send a request to set this session to be "HTML5" and all previews from then on would be HTML5 mode. <br>
<br>Then you add an extension to the current play rule in htaccess to support a "third" variable, so play_560_html would play the template in HTML5 mode. In the future, play_560_scorm would do the scorm export. As long as play_560_[a-z]+ was handled in the php play code for that module you could do whatever you wanted to do.<br>
<br>In theory you could also have preview_560_html as well<br><br>It seems neater to me, but this is me speaking from my cave.<br><br>Oooh a flint.<u></u><u></u></div></div><p></p><div><div class="h5"><div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<u></u> <u></u></p><div><p class="MsoNormal" style="margin-left:36.0pt">On Wed, Nov 21, 2012 at 12:57 PM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I like to generalise solutions too. What would the implications be for what we have now?</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat Lockley<br>
<b>Sent:</b> 21 November 2012 12:43<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Players and alternative formats</span><u></u><u></u></p></div><div><div><p class="MsoNormal" style="margin-left:72.0pt">
<u></u><u></u></p><p class="MsoNormal" style="margin-left:72.0pt">Hello all, <br><br>This is a message from deep inside modularisation caves so it might not apply to all.<br><br>I have a semi working google maps making template, and when it "plays" at present it draws a map using the google maps API.<br>
<br>However, the play could also generate a KML file for people to download, or if the map couldn't load it could provide the data in a different way.<br><br>So then I thought this is effectively the HTML5 option (and you might argue the xml download, export, scorm are also "plays"). <br>
<br>So I was thinking that rather than using ctrl + click, or extra buttons, you could facilitate an extra request variable consistently across modules.<br><br>Ergo you post a "HTML5" option at the URL and you get HTML5 back, you post a "XML" and get xml, or "JSON" and get json.<br>
<br>This way the URL Library doesn't need to change all the time, or the .htaccess, but you also get different plays for each module (and they are all distinct).<br><br>Thoughts?<br><br>Pat<u></u><u></u></p></div></div>
</div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><br><br><u></u><u></u></p></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><br>_______________________________________________<br>
Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p></div></div></div></div>
<br><br>
<br></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br></blockquote></div><br></div>