<div class="gmail_quote">On Sun, Feb 14, 2010 at 12:53 AM, Simon <span dir="ltr"><<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Just one page, or all.</blockquote><div><br>Just one page<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div></div><div>If one page what I have done (based on original advice from PM) was to add the following to config.php</div>
<div><br></div><div>
<div>Markup('includefile', 'directives', '/\\(:includefile\\s+([-\\w.]+)\\s*:\\)/e', "Keep(implode('', file('/home/websitename/public_html/includefiles/$1')))");</div><div>
<br></div><div>In your wiki page try</div><div><br></div><div>(:includefile myfile.js:)</div></div></blockquote><div><br>What would the content of myfile.js be? The code that makes up the widget, or something else? <br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div><br></div><div>where myfile.js is in the directory includefiles</div></div></blockquote>
<div><br>Thanks, Simon!<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><br></div><br><div class="gmail_quote">
<div><div></div><div class="h5">
On 14 February 2010 14:36, Tegan Dowling <span dir="ltr"><<a href="mailto:tmdowling@gmail.com" target="_blank">tmdowling@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">
For a school's site, I'd like embed this widget code in a page:<br><br><script type="text/javascript" src="<a href="http://widgets1.renlearn.com/content/widgets/reading" target="_blank">http://widgets1.renlearn.com/content/widgets/reading</a> activity/readingactivitywidget.js"></script><script>if (READINGACTIVITYWIDGET) READINGACTIVITYWIDGET.renderWidget('<a href="http://widgets1.renlearn.com/" target="_blank">http://widgets1.renlearn.com/</a>', 'MCPSCX6');</script><noscript>Enable Javascript in your browser to view this content.</noscript><br>
<br>I do have html enabled on the site, and I added "script" and "noscript" to the list of html terms to enable -- in local\config.php I have:<br><br>include_once("$FarmD/cookbook/enablehtml.php");<br>
EnableHtml("a|select|option|form|input|iframe|img|small|object|param|embed|script|noscript");<br><br>Having done that at least results in hiding the lines above when I add them to a page, but it doesn't suffice to display the widget.<br>
<br>Can I add something else to the enablehtml stuff on config.php that will make this work? I don't know from javascript, so I don't know if part of doing this right might be to put some of the widget code in the header of the skin.tmpl file -- but if so, which part, and what goes on the page itself?<br>
<br>Thanks!<br><font color="#888888"><br>Tegan</font><br></div></div></blockquote></div></div></blockquote></div>