PDA

View Full Version : Disable Help Section


dayjahone
18th June 2007, 10:52
Is there a way to disable the help section for clients who log in?

Thanks.

till
18th June 2007, 12:40
if you replace remove "help" in the string "isp_kunde,isp_file,tools,help" in the modules column of the user in the database table sys_user of the ispconfig database, the help module is not diesplayed anymore.

dayjahone
18th June 2007, 13:06
I found the file /var/lib/mysql/ispconfigdb/sys_user.MYD that has that line in it, but I'm not sure I'm editing it correctly. If I delete "help," I can't log on at all.

till
18th June 2007, 13:12
Dtabase files are never edited manually with a editor! This are not text files. Please restore a backup as of this file as it is now broken. Use e.g. phpmyadmin or the mysql command to edit data in the database.

dayjahone
18th June 2007, 13:22
Worked perfectly. Thanks.

m u r
11th September 2008, 06:59
Sorry, but how do I do it with phpMyAdmin?

I select the ispconfig database from the menu, click on "sys_user"...then what?

falko
12th September 2008, 18:00
Browse the records in that table and edit the modules column. Remove the string "help" from there.

dayjahone
14th September 2008, 02:26
I see a list of users. Is there a way to make it so, as new users are created, I don't have to go in and delete help from the modules column?

till
14th September 2008, 14:16
You will have to modify the code in /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_kunde.lib.php

dayjahone
30th September 2008, 16:16
Is it a simple modification?

falko
1st October 2008, 14:26
Yes - in line 96 change
$sql = "INSERT INTO sys_user (userid, username, passwort,gueltig,perms,modules,modul) VALUES ('$userid', '$username', '$passwort','1','rw','isp_kunde,isp_file,tools,hel p','isp_kunde')";
to
$sql = "INSERT INTO sys_user (userid, username, passwort,gueltig,perms,modules,modul) VALUES ('$userid', '$username', '$passwort','1','rw','isp_kunde,isp_file,tools','i sp_kunde')";
and in line 288 change
$sql = "INSERT INTO sys_user (doc_id, userid, username, passwort,gueltig,perms,modules,modul) VALUES ('".$sys_user_id."','$userid', '$username', '','1','rw','isp_kunde,isp_file,tools,help','isp_k unde')";
to $sql = "INSERT INTO sys_user (doc_id, userid, username, passwort,gueltig,perms,modules,modul) VALUES ('".$sys_user_id."','$userid', '$username', '','1','rw','isp_kunde,isp_file,tools','isp_kunde' )";