[pmwiki-users] Mailposts messages not arriving at $MailPostsTo list
Daniel Scheibler
scheibi at gmail.com
Thu Aug 25 02:42:25 CDT 2005
Hi David,
2005/8/25, David Sovinski <aslan at aslandata.com>:
> s/scrips/scripts
;o)
> David Sovinski wrote:
>
> > I now have more info and know something changed between beta48 and
> > beta54.
> >
> > Previously I had always explicitly declared
> > "include_once("scrips/mailposts.php");" in my local/config.php.
> > I found, after much testing, that this still worked fine IF I delared
> > my MailPosts variables in the config.php but if I delared the
> > variables in a PerGroup script i.e. Main.php that MailPosts would no
> > longer work. I finally figured out that I had to delete the
> > "include_once("scrips/mailposts.php");" line in my local/config.php to
> > get PerGroup mailposts to work.
> > Then I noticed the PmWiki/MailPosts page had been changed so that the
> > "include_once("scrips/mailposts.php");" declaration line was no longer
> > there.
> >
> > 1) Was this a planned behavior change?
I don't know
> > 2) How do we know what other /scripts don't need to be explicitly
> > declared? Or should no /scripts require explicit declaration?
I think the problem is, that the $MailPostsTo variable have to
declared before "include_once("scripts/mailposts.php");"
The PerGroup config files are included after execution of local/config.php.
In my farm I installed a solution where in my local/config.php is a block like
<config.php>
[... part before execution of PerGroup and PerPage customization ...]
if (file_exists("local\$group.php")) {
include_once("local\$group.php");
}
if (file_exists("local\$group.$page.php")) {
include_once("local\$group.$page.php");
}
include_once("scripts/mailposts.php");
[... other parts after execution of PerGroup and PerPage customization ...]
</config.php>
I couldn't sent the correct code, because of being at a buisiness trip
without my own laptop. But I hope, I could help you a little bit.
Greets,
scheiby.
--
Daniel Scheibler ========:} student at
eMail: scheibi at gmail.com BTU Cottbus/Germany
WWW: http://www.scheiby.de
More information about the pmwiki-users
mailing list