<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Module maintainers and programmers should be very happy to know that PM has released -beta12 yesterday with UpdatePage() capabilities.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This function allows you to update pages in the wiki with full and proper updating of the wiki -- RecentChanges, Diffs, or auto-adding Categories (see other changes in the Release Notes) for example.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Usage:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>UpdatePage($pagename, $oldpage, $newpage);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In this case $oldpage is the array format pulled from </DIV><DIV>ReadPage($pagename);</DIV><DIV>$newpage should be a similar array.  Note that $newpage['text'] would be the new text to be the full body of the page.</DIV><DIV>A diff will be calculated between $oldpage['text'] and $newpage['text']</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Example use:</DIV><DIV>$pagename = "Group.PageName";</DIV><DIV>$text ="I want to completely change the page body and replace it with this text.";</DIV><DIV>XESReplacePage($pagename,$text);</DIV><DIV>function XESReplacePage($pagename, $text){</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>$oldpage = ReadPage($pagename);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>$newpage = $oldpage;</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>$newpage['text'] = $text;</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>UpdatePage($pagename, $oldpage, $newpage);</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Please report any problems to PM.  I didn't have anything to do with this, except being the first person to try it out after he added it to the core.  I noticed that the beta was released silently and wanted to inform the other module maintainers and document this since some people have certainly been waiting for it.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I would LOVE to see this used by xmlrpc, FastData, and hopefully an upcoming email-to-wiki CLI code that could be called by Fetchmail-&gt;Procmail (something I could possibly write!  yippee!! :) ), although I now find xmlrpc to be incredible for maintaining my wikis.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any questions?  I may not be able to answer them ;)</DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Crisses</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">----</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">"The trouble with so many of us is that we have sought directions, answers, values, and beliefs from the important people in our world.<SPAN class="Apple-converted-space">  </SPAN>Rather than trusting ourselves to search within and find our own answers to the conflicts in our life, we sell out by becoming what others expect of us.<SPAN class="Apple-converted-space">  </SPAN>Our being becomes rooted in their expectations, and we become strangers to ourselves."</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space"> </SPAN>-- Gerald Corey, Theory and Practice of Counseling &amp; Psychotherapy (Sixth Ed.), p. 148, on existential therapy</FONT></P>  </DIV><BR></BODY></HTML>