<div class="gmail_quote">On Sun, Feb 14, 2010 at 12:53 AM, Simon <span dir="ltr">&lt;<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>&gt;</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(&#39;includefile&#39;, &#39;directives&#39;, &#39;/\\(:includefile\\s+([-\\w.]+)\\s*:\\)/e&#39;, &quot;Keep(implode(&#39;&#39;, file(&#39;/home/websitename/public_html/includefiles/$1&#39;)))&quot;);</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">&lt;<a href="mailto:tmdowling@gmail.com" target="_blank">tmdowling@gmail.com</a>&gt;</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&#39;s site, I&#39;d like embed this widget code in a page:<br><br>&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://widgets1.renlearn.com/content/widgets/reading" target="_blank">http://widgets1.renlearn.com/content/widgets/reading</a> activity/readingactivitywidget.js&quot;&gt;&lt;/script&gt;&lt;script&gt;if (READINGACTIVITYWIDGET) READINGACTIVITYWIDGET.renderWidget(&#39;<a href="http://widgets1.renlearn.com/" target="_blank">http://widgets1.renlearn.com/</a>&#39;, &#39;MCPSCX6&#39;);&lt;/script&gt;&lt;noscript&gt;Enable Javascript in your browser to view this content.&lt;/noscript&gt;<br>




<br>I do have html enabled on the site, and I added &quot;script&quot; and &quot;noscript&quot; to the list of html terms to enable -- in local\config.php I have:<br><br>include_once(&quot;$FarmD/cookbook/enablehtml.php&quot;);<br>




             EnableHtml(&quot;a|select|option|form|input|iframe|img|small|object|param|embed|script|noscript&quot;);<br><br>Having done that at least results in hiding the lines above when I add them to a page, but it doesn&#39;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&#39;t know from javascript, so I don&#39;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>