2008-02-25, 02:43 PM
Hi!
We are trying to set in all username (login) boxes the windows useraccount. This is working most of the time, except for the
Board Message
You are either not logged in or do not have permission to view this page. This could be because one of the following reasons:
..... etc etc
On that page you have also a username box and a password box.
I can't get that box filled with the username.
In Global.php I have added
$logon = explode("\\", $_SERVER['AUTH_USER']);
$logonname = $logon[1];
$logonreadonly = 'readonly';
And I changed the template 'error_nopermission', where I changed
<input type="text" class="textbox" name="username" />
to
<input type="text" class="textbox" name="username" value="{$logonname}" {$logonreadonly} />
(NOTE : Readonly variable is a text wich made the box non editable).
Above is as said not working, however when I fill in
<input type="text" class="textbox" name="username" value="TEST" {$logonreadonly} />
I see test, however it still editable.
So it seems that it doesn't pickup my global.php vars.
Anyone an idea ?
We are trying to set in all username (login) boxes the windows useraccount. This is working most of the time, except for the
Board Message
You are either not logged in or do not have permission to view this page. This could be because one of the following reasons:
..... etc etc
On that page you have also a username box and a password box.
I can't get that box filled with the username.
In Global.php I have added
$logon = explode("\\", $_SERVER['AUTH_USER']);
$logonname = $logon[1];
$logonreadonly = 'readonly';
And I changed the template 'error_nopermission', where I changed
<input type="text" class="textbox" name="username" />
to
<input type="text" class="textbox" name="username" value="{$logonname}" {$logonreadonly} />
(NOTE : Readonly variable is a text wich made the box non editable).
Above is as said not working, however when I fill in
<input type="text" class="textbox" name="username" value="TEST" {$logonreadonly} />
I see test, however it still editable.
So it seems that it doesn't pickup my global.php vars.
Anyone an idea ?