[pmwiki-users] Comments recipe and Notify module
Garey Mills
gmills at library.berkeley.edu
Thu Sep 14 17:53:33 CDT 2006
Patrick -
Forgot to write back thanking you for this information. It worked
easily, and I now have a comments form that uses the Notify module to
notify the appropriate people.
If anyone would like a copy, let me know.
Garey Mills
Library Systems Office
UC Berkeley
The brain is not where you think
On Fri, 1 Sep 2006, Patrick R. Michaud wrote:
> 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.)
>
> Pm
>
More information about the pmwiki-users
mailing list