Emiliano <[EMAIL PROTECTED]> a scris:
> Marius Onica wrote:
>
> > I'm trying to use the mgd_update_element in order to change dynamically
> > the content of a element but I receive "Creation failed" due to access rights
>problems (it seems that it succeed only if it is belonging to sitegroup 0).
> > How can I circumvert this ?
>
> Updating an element will only have effect in subsequent requests, not
> the current request.
>
> I'm not familiar with the text 'Creation failed'. Is that the verbatim
> text you are seeing?
>
> Emile
I have this piece of code:
$style = 385;
$name = "head-java-func";
if(mgd_update_element( $style, $name, &$value )){
echo "Element created.";
}else{
echo "Creation of element failed.";
}
I've created a site info.uoradea.ro which have sitegroup 3. If I include this piece of
code in a page name it "test" and if I make then info.uoradea.ro/test the php script
is executed but I receive "Creation of element failed".
If I've include the above code in a page which is in sitegoup 0 and I log on to
nadmin/admin and I have univ.uoradea.ro/nadmin/test everything is ok.
Marius
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]