[SOLVED] Module File manager
Posted: Wed Apr 15, 2009 7:32 am
Добры день!
If you want, type me on Russian, cause i understand it, but i am bad with writing...
Here is the problem:
Module File manager - cant find the code for hide it in the Main Menu.
The reason, which i want to hide it, is when i gave Modify files permissions to a user (for correct uploading of images in Album module).
So, with this permissions, a user can access File manager and Image manager from the menu. I want to hide File manager part in the menu.
I found the code, but it was in Comments in original behaviour, so if someone knows how its working, please, lets say.
lib\classes\class.admintheme.inc.php
row - 723
/* 'files'=>array('url'=>'files.php','parent'=>'content',
'title'=>$this->FixSpaces(lang('filemanager')),
'description'=>lang('filemanagerdescription'),'show_in_menu'=>$this->HasPerm('filePerms')),
*/
I tryed to retype it, without the comments , in this way:
'files'=>array('url'=>'files.php','parent'=>'content',
'title'=>$this->FixSpaces(lang('filemanager')),
'description'=>lang('filemanagerdescription'),'show_in_menu'=>false),
, but it doesnt work.... Any suggestions?
==================================
I solved it myself with little trick
Here what i did:
I modifyed the code in File Manager.module.php
return ($this->CheckPermission("HERE I CHANGED IT")
If you want, type me on Russian, cause i understand it, but i am bad with writing...

Here is the problem:
Module File manager - cant find the code for hide it in the Main Menu.
The reason, which i want to hide it, is when i gave Modify files permissions to a user (for correct uploading of images in Album module).
So, with this permissions, a user can access File manager and Image manager from the menu. I want to hide File manager part in the menu.
I found the code, but it was in Comments in original behaviour, so if someone knows how its working, please, lets say.
lib\classes\class.admintheme.inc.php
row - 723
/* 'files'=>array('url'=>'files.php','parent'=>'content',
'title'=>$this->FixSpaces(lang('filemanager')),
'description'=>lang('filemanagerdescription'),'show_in_menu'=>$this->HasPerm('filePerms')),
*/
I tryed to retype it, without the comments , in this way:
'files'=>array('url'=>'files.php','parent'=>'content',
'title'=>$this->FixSpaces(lang('filemanager')),
'description'=>lang('filemanagerdescription'),'show_in_menu'=>false),
, but it doesnt work.... Any suggestions?
==================================
I solved it myself with little trick

Here what i did:
I modifyed the code in File Manager.module.php
return ($this->CheckPermission("HERE I CHANGED IT")