[pmwiki-users] 2 fox questions

Jon Haupt jhaupt at gmail.com
Wed Sep 19 12:38:38 CDT 2007


On 9/19/07, Hans <design5 at softflow.co.uk> wrote:
> Wednesday, September 19, 2007, 4:10:08 PM, Jon Haupt wrote:
>
> > First, in configuration, when you're delineating where Fox can
> > edit/delete/etc. to, would it be possible to specify that the page in
> > question be created within a certain time frame?  I would like to
> > close commenting after 30 days, as an example.
>
> This is not possible at present. It may be possible to create a filter
> function which can compare a page creation time entered into a PTV in
> the page (because pmwiki has no general page creation time variable)
> with the time of the posting, and allow or disallow the posting
> according to some rule.

Thanks, Hans.  I originally thought of this method instead - and ran
into this problem:
http://www.pmwiki.org/wiki/PITS/00975

If anybody has a clue why this doesn't work right, let me know.

>
> > Also, is it at all possible to condition a template based on what is
> > entered?  For example, I want something to show up only if an e-mail
> > is entered in the e-mail text field, but if nothing is entered, I want
> > something else to happen.  Is that possible?  My attempts with things
> > like (:if equal {$$email} "":) haven't worked at all.
>
> Again, a special filter function could be created which would handle
> the email varification of the email field and handles the posting
> accordingly. It could be built with a comparison of the email field
> value with a regex pattern for email addresses.
>
> Sorry for not being able to supply more specific advise at this time,
> i.e. concrete FoxFilters for your purposes! Maybe others can help here
> too?
>

I'll have to play with the verification idea and see what I can come
up with, thanks.  Luckily, for my purposes, I only need two cases: 1)
nothing is entered or 2) anything (e-mail or not) is entered.

Jon



More information about the pmwiki-users mailing list