Chris Davies <[EMAIL PROTECTED]> wrote:
> $up is set to 0, no preceding article
> $topic = 24, I have confirmed that it is a valid TopicID
> $author = 1, I have confirmed that the admin user is id 1. I created
> another user id 4, but it is also unable to create an article.
>
> Creation of article 'Demo Article' failed.
> reason: Access denied
>
> The script is taken directly from the mgd_create_article page on the web
> site and modified only slightly to mimic my current setup.
Check that:
<?
$person = mgd_get_person($midgard->user);
echo $person->username;
$topic =
$name =
$article = mgd_get_article();
$article->topic = $topic;
$article->author = $person->id;
$article->creator = $person->id;
$article->name = $name;
$newarticle = $article->create();
if (! $newarticle)
{
echo mgd_errstr();
} else
{ echo mgd_errstr(); }
?>
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]