> You mean move an article from one topic to another? You can use 
> mgd_move_article for that.

No, I need mgd_copy_article


> > Should I use mgd_get_midgard() with some special data?
> > The person who legged didn't log as person+SG . I do not want to use
> > such a login. Is there any way to set sitegroup in background? "
> 
> To set the current sitegroup to something else during page execution? 
> Hmmm.... no. If you want 'sitegroupless logons', you could look at the way 
> nadmin handles them.

No, no I do not want to set sitegroup to  other one.
I just want to copy article to another topic.
"much ado about copy" :)

this is all code in this page element:
"$new = mgd_copy_article($article, $new_topic); "

I try with this before copy:

$person = mgd_get_person($midgard->user);
$sitegroupobj = mgd_get_sitegroup(1);
$person->sitegroup = $sitegroupobj->id;

// mgd_get_person doesn't get person's sitegroup. A bug?

echo "<font class=white> $sitegroupobj->name";      //returns ok
echo "$person->sitegroup </font>";                                      //returns ok
mgd_auth_midgard($person->username+$sitegroupobj->name,$person->password,0);

All looks like fail :(
And if there is no any other possibility I could make admin auth in background.


Piotras

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

Reply via email to