OMG! That's way too simple! Thanks very much. PmWiki rocks ... again. ________________________________
From: [EMAIL PROTECTED] on behalf of Patrick R. Michaud Sent: Fri 02/02/2007 20:09 To: Crisp, Steve [UK] Cc: pmwiki-users@pmichaud.com Subject: Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation On Fri, Feb 02, 2007 at 07:47:47PM -0000, Crisp, Steve [UK] wrote: > Before I can create a mini recipe I could do with some advice on how to > 'unplug' my changes from pmwiki.php. Basically I've added a new function > called HandleHTML, see below: > > function HandleHTML($pagename, $auth = 'read') { > ... > } > > ... and extended the $HandleActions array accordingly, see below: > > $HandleActions = array( > 'html' => 'HandleHTML', > .... > > So back to my question ... how can I unplug the above changes from > pmwiki.php into perhaps a new cookbook/gethtmlpage.php file? Your question almost answers itself! :-) Simply create cookbook/gethtmlpage.php as follows: <?php if (!defined('PmWiki')) exit(); ## Add ?action=html SDV($HandleActions['html'], 'HandleHTML'); ## function to handle ?action=html function HandleHTML($pagename, $auth = 'read') { ... } That's all you'd need to do to de-couple it from PmWiki and make it a cookbook recipe. Pm _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
_______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users