Disable Main Menu from showing
Brought to you by:
thomasbley
Hi,
If you want to remove the Main Menu from appearing (mostly useful for anonymous users),
here is a very crude but effective patch.
In ...\sgw\bin\ext\js\functions.js
Line 1026
function drawmenu() {}
function drawmenuNOT() {
Above will change the name of the original drawmenu() function to drawmenuNOT() and introduce a do nothing function.
Question:
How could you introduce an if on the entry to drawmenu() to check for certain conditions (user name, a global/user control parameter etc.)
and refrain from drawing the menu?
Thanks
Easy
ibaumel@hotmail.com
Developer
Hello,
your patch disables login/logout functionality, data export, folder permissions, history, etc.
Sorry, your patch can't be added.
bye
Thomas
Hi Thomas,
I understand the patch disables indicated operations and that was what I was trying to achieve (mostly in anonymous access situation).
Would you consider having a control to be able to turn on/off for this purpose, at either:
- global or
- anon / not anon or
- specific user level
that would preserve the Alt-I (login/out) functionality?
Thanks a lot for sgs and for swift response.
Easy
ibaumel@hotmail.com
deveoper
Hello,
sorry, disabling the menu and forcing users to use keyboard shortcuts is not very user friendly.
bye
Thomas
Hi Thomas,
Absolutely right, but, what can I do that my prospective client wants the anonymous visitor to be very limited indeed.
Preserving the ALT-I will allow a support person to tell an anonymous user on the phone, to change to the login screen and then use special user credentials to proceed.
At least, that's how we envisioned it.
Thanks again,
Easy
ibaumel@hotmail.com
Hello,
this change is very business specific, so you shouldn't expect this to be in a standard release.
bye
Thomas
Hi Thomas,
I respect your opinion about this.
Can you please suggest a simple if statement that will check current user against the anonymous?
Also, do you have a facility to introduce a new parameter to the "Change setup settings" page?
By the way, where are the Super Admin credentials kept? I've realized that one cannot add a user with the same user name as the Super Admin although there is no users file record for the SA?
How do you feel about creating a SA record in users when setting up.?
Thank you,
Easy
Submitted a suggested patch to implement.
Easy.