<div class="gmail_quote">On Wed, Mar 11, 2009 at 10:29 AM, noskule <span dir="ltr">&lt;<a href="mailto:noskule@gmx.net">noskule@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Actually this is possible using wikish.  See<br>
<br>
<a href="http://www.pmwiki.org/wiki/Cookbook/WikiShExamples#PageHistForm" target="_blank">http://www.pmwiki.org/wiki/Cookbook/WikiShExamples#PageHistForm</a><br>
<br>
This solution gives you a form to type in a pagename and a date description<br>
(&quot;1 hour ago&quot;, &quot;yesterday&quot;, &quot;1/1/09 1:00am&quot;, &quot;last Thursday&quot;, etc.) and the<br>
page will be displayed immediately below the form between horizontal lines.<br>
<br>
-Peter<br>
<br>
<br>
  <br>
</blockquote></div>
this looks very promissing to me (except I have to switch to php5 first). But one question.<br>
Would it be possible to have an action called something like action=showdiff&amp;timestamp=unixtime, witch would<br>
display/highlight the changes directly in the rendered page?<br>
</blockquote><div><br>Daniel was correct about using the page where the form exists and specifying pn=x and when=y in the URL.  <br><br>However, highlighting changes is a different issue altogether.  I could set up a separate form (or a radio button on the same form - something like that) to differentiate between the &quot;diff&quot; operation and the &quot;cat&quot; operation.  But if you want changes highlighted in a different format than the standard there would need to be some additional steps...<br>
<br>(1) Download and install/initialize a package such as PEAR&#39;s text_diff<br>(2) Set the $DiffFunction variable to some function which would implement the specific renderer (probably inline is what you are looking for)<br>
<br>After that you will have inline diffs SHOWN both at the wikish form as well as whenever you view page history.  HOWEVER, I&#39;m pretty certain it would have an impact on your ability to restore pages...  Probably your diff function would have to be &quot;aware&quot; of some $_GET variable and call a different diff function based on the current context...<br>
<br>-Peter<br></div></div>