On Fri, 10 Mar 2000, Michael Ed wrote:

> ... I did not manage to find the right user id by myself.
> How do I replace the digit 2 with the current users id ?

$midgard->user

> Is there an internal functionality for tracking use, or do I have to
> add the information myself ? Do I save that in the pref table, hard
> coded ?

To update the preference you need to list them to get the id based
on the name, then update the preference with that ID.

I've deviced a possible solution for 1.2.5 extendable records[0] but
I just finished it about 10 minutes ago and it needs testing.

> > # get spank date as YYYYMMDD
> > $spankdate=...;
> > 
> > SELECT preference.uid, person.firstname, person.lastname, person.email
> > FROM preference,person
> > WHERE preference.uid=person.id
> >   AND domain='newsreading' AND name='lastread'
> >   AND value<'$spankdate'
> 
> That would be my monthly report ?

Yes. If you demand that news be read at at least every week set the
spankdate to 7 days before the current date in the script. Make sure
that the tracking code in the site stores dates in the same format. You
could have the script scold the perps by mail automatically.

Emile

[0] I keep mistyping this as recordz. Y'all know who to blame.


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to