[pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation
Crisp, Steve [UK]
SCRISP at ngms.eu.com
Fri Feb 2 14:35:18 CST 2007
OMG! That's way too simple! Thanks very much. PmWiki rocks ... again.
________________________________
From: pmwiki-users-bounces at pmichaud.com on behalf of Patrick R. Michaud
Sent: Fri 02/02/2007 20:09
To: Crisp, Steve [UK]
Cc: pmwiki-users at 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 at pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070202/1695a767/attachment-0001.html
More information about the pmwiki-users
mailing list