Ingo Herz wrote:

> I am implementing a little "voting system" with midgard. All runs fine
> but there is a little problem with authentication: votes are counted and
> stored in extra1 + extra2 (only yes/no) of an article.

If you do it like that, then you should create some 'robot' user who is
a member of a group that owns a parent topic under which these articles
are stored. Use

mgd_auth_midgard('robot','password',0)

to assume the idendity of robot so that the script has write access to
that article. Ideally, this stuff should be at the end of the page so
that you don't have to un-authenticate.

HOWEVER, it might be a better idea to use *parameters* which are
attached to the articles in order to count the votes. The point is: Even
anonymous users can create and modify parameters. I have myself
implemented a voting system in this manner.


Frank
-- 
Dr Frank Boehme                      | Email: [EMAIL PROTECTED]
National University of Ireland, Cork | phone: +353-21-4903163
Dept of Computer Science             |   fax: +353-21-4903113
Cork, Ireland                        |

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to