<div class="gmail_quote">On Wed, Mar 11, 2009 at 10:29 AM, noskule <span dir="ltr"><<a href="mailto:noskule@gmx.net">noskule@gmx.net</a>></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>
("1 hour ago", "yesterday", "1/1/09 1:00am", "last Thursday", 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&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 "diff" operation and the "cat" 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'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'm pretty certain it would have an impact on your ability to restore pages... Probably your diff function would have to be "aware" of some $_GET variable and call a different diff function based on the current context...<br>
<br>-Peter<br></div></div>