Hi i've figured out a fix for receiving notifications when using NewGroupBox, (though it's probably not the best solution in most situations, for reasons that i note below.) code and notes here: http://www.pmwiki.org/wiki/Cookbook/NewGroupBox#notify
adam Message: 1 Date: Fri, 12 Sep 2008 13:30:50 -0700 From: adam overton <[EMAIL PROTECTED]> Subject: [pmwiki-users] new group notification To: pmwiki-users <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed hi there i'd like to be notified when users create a new group. currently, the default page in each group is 'Index', so to solve this i've stuck the following into FoxNotifyLists.GeneralNotifyList: [EMAIL PROTECTED] format=#default name=Index group=-Main squelch=120 so far this works if the user creates a group by typing NewGroup/ Index?action=edit into their browser, and then saving - i get the notification i'm looking for. (and this only works and doesn't become a nuisance b/c they won't actually be editing their Index page, instead the templates lead them to other subpages to edit and add content to their group) however, users on my site are actually using a modified version of NewGroupBox to create their groups, which seems to be calling the following to create a new page: SaveAttributes($newpage, $new, $new); PostPage($newpage, $new, $new); PostRecentChanges($newpage, $new, $new); when this method is used, no notification is sent out when creating NewGroup/Index. is there a single function i could call in NewGroupBox that could stimulate the Notify or FoxNotify response? or maybe just a simpler way? ps - i know about FoxNotify & sendemail, and am using it/loving it in several other instances, but would like to prevent myself from having to rewrite my CreateNewGroup page, which is using a customized version of NewGroupBox... thanks, adam _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
