John P . Looney wrote:
> However, I'm curious as to how the approving works. By default, I'm
> creating all articles with an approval date of 0000-00-00 etc. Is there an
> easy way to set that date to the current date ? In Oracle there is a
> SYSDATE constant, though I've know idea how to go about it.
Approving the article will set the approval date to the current
date/time.
> Secondly, I wanted people to be able to rate certain articles. So, they
> would give a rating between -5 and 5, and then the score would have that
> added/taken from it. However, I'm at a loss as to how to stop people
> rating something twice.
>
> Is this what the "parameters" section of an article could be used for ?
> Something like add a parameter "rated" with a value of "$user->id" ? Also,
> is there any fixed use for the "type" field ?
Yes, you could use parameters for that. There's no fixed use for the
type field. You can use it to limit the list of fetched articles to
those that have it set to a specific value.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]