[pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation
Patrick R. Michaud
pmichaud at pobox.com
Fri Feb 2 14:09:45 CST 2007
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
More information about the pmwiki-users
mailing list