[pmwiki-users] PIT conflicts with Guestbook (was: PITS does not add a new issue number)
Patrick R. Michaud
pmichaud at pobox.com
Thu Jul 14 16:22:18 CDT 2005
On Thu, Jul 14, 2005 at 04:00:16PM -0500, David Sovinski wrote:
> pm
> Thank you for looking at this for me/us.
>
> I have issued
> (:$Guestbook:)
> within the wiki page.
> And that is what is displayed the "(:Guestbook:)" command instead of
> presenting the form.
> If I comment out PITS then Guestbook works fine
Hmm, I just tried it on pmwiki.org and it seems to work okay. See
http://www.pmichaud.com/work/pmwiki-2.0.beta47/pmwiki.php?n=Main.WikiSandbox,
which displays the guestbook entry. You can also look at
http://www.pmichaud.com/work/pmwiki-2.0.beta47/pmwiki.php?n=PITS.NewIssue.
Be sure to write (:$Guestbook:) and not (:Guestbook:) in the
markup. (Actually, guestbook.php seems to be using a very bizarre
markup overall, as I would've simply chosen (:guestbook:).)
My local/config.php looks like
<?php
include_once('cookbook/guestbook.php');
include_once('cookbook/PITS.php');
so there must be *something* else going on here. Any thoughts?
Pm
> Patrick R. Michaud wrote:
>
> >On Wed, Jul 13, 2005 at 11:23:37PM -0500, David Sovinski wrote:
> >
> >
> >>I'm still hoping to get some help to figure out why they conflict.
> >>...
> >>"Config One"
> >>include_once('cookbook/PITS.php');
> >>include_once('cookbook/guestbook.php');
> >>PITS will not get a new issue number
> >>
> >>
> >
> >The guestbook.php recipe takes some serious liberties with setting
> >the value of $pagename -- in particular, it undoes any setting of
> >$pagename that might've been done by a previous recipe or config.php
> >setting. So, guestbook.php needs to be rewritten to not do this;
> >in the meantime it means it must be loaded before anything else.
> >
> >
> >
> >>"Config Two"
> >>include_once('cookbook/guestbook.php');
> >>include_once('cookbook/PITS.php');
> >>guestbook does not work but PITS does
> >>
> >>
> >
> >How does the guestbook "not work" -- i.e., what is failing
> >about the guestbook?
> >
> >Pm
> >
> >
> >
> >
>
>
More information about the pmwiki-users
mailing list