[pmwiki-users] Comments recipe and Notify module

Patrick R. Michaud pmichaud at pobox.com
Fri Sep 1 17:54:46 CDT 2006

On Fri, Sep 01, 2006 at 03:22:16PM -0700, Garey Mills wrote:
> Hi -
> 	I have gotten the Comments recipe to work on my wiki, but I would
> like the 'commentsmailed.php' script to work. Unfortunately, it uses the
> MailPost module, which is deprecated. Has anyone gotten the Comments
> recipe to work with the Notify module? I would greatly appreciate any
> help. Especially, could someone explain to me how the Notify module learns
> of page changes. Perhaps with that knowledge I could do the integration
> myself.

Actually, this should be fairly easy to do now.  I don't
remember how the comments recipe works, but whenever a new
comment is posted it should do:

    if (function_exists('PostNotify')) {
      global $IsPagePosted;
      $IsPagePosted = 1;
      PostNotify($pagename, $x, $x);

(The $x arguments are dummy placeholders for the PostNotify function
that aren't actually used.  Normally PostNotify is called from
HandleEdit, as part of the $EditFunctions array.)


More information about the pmwiki-users mailing list