[SOLVED] Module File manager

Обсуждение CMS Made Simple в России.

Moderators: iturbay, wdwp

Post Reply
User avatar
webboy33
Forum Members
Forum Members
Posts: 36
Joined: Thu Jan 22, 2009 10:38 am
Location: I am from Bulgaria (България).

[SOLVED] Module File manager

Post by webboy33 »

Добры день!
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")
Last edited by webboy33 on Wed Apr 15, 2009 10:08 am, edited 1 time in total.
Post Reply

Return to “Russian - русский”