[Pmwiki-users] x-comment customization question
Patrick R. Michaud
pmichaud
Thu Sep 9 14:55:31 CDT 2004
On Thu, Sep 09, 2004 at 03:36:00PM -0500, Jason Moseley wrote:
> I couldn't get your solution working 'smarter'.... Patrick, where
> would I insert the {{~Author}} variable?
I haven't looked at X-Comment, but I'm assuming that in
$xCommentVars['comment_template'] =
"\$Comment[[<<]]\n'''-Profiles/\$Author''' [-(\$Date,
\$Time)-]\n----\n[[x-comment:]]";
that the results are wiki markup. If so, then you should be
able to do
$xCommentVars['comment_template'] =
"\$Comment[[<<]]\n'''-{{~\$Author}}''' [-(\$Date,
\$Time)-]\n----\n[[x-comment:]]";
and it will work even if the author name has spaces or other
funky characters in it.
BTW, comment capabilities are being built-in to PmWiki 2.0. What
features does it need to have to work properly?
Pm
>
>
> On Thu, 9 Sep 2004 14:29:04 -0600, Patrick R. Michaud
> <pmichaud at pobox.com> wrote:
> > On Thu, Sep 09, 2004 at 02:23:37PM -0600, Doyce wrote:
> > > Now, I will preface this by saying that I am *NO* kind of php coder at
> > > all, but what I did to accomplish this was edit the 49th (I think)
> > > line of the x-comment.php to read:
> > >
> > > $xCommentVars['comment_template'] =
> > > "\$Comment[[<<]]\n'''-Profiles/\$Author''' [-(\$Date,
> > > \$Time)-]\n----\n[[x-comment:]]";
> > >
> > > The only annoying thing is that it doesn't create the link if the
> > > commenting person doesn't enter their name as a WikiWord. Someone far
> > > smarter than me can probably tell you (and me) how to properly wrap
> > > $Author in some {{ }}'s so that's less of a problem.
> >
> > Ummm, wouldn't just {{~$Author}} work? That way it automatically
> > goes to the correct profiles directory even if it's been customized...
> >
> > Pm
> >
> >
> >
> > --
> > Pmwiki-users mailing list
> > Pmwiki-users at pmichaud.com
> > http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
> >
>
>
>
> --
>
> __________________________________
> Jason Moseley
>
> --
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list