Drupal - Take Control module

rahul's picture

Take Control is an administrative module for the popular Drupal CMS created by me last year primarily for managing this very website. The module is currently in its 2.x series with major enhancements and features being introduced in its 2.0 release, notably featuring a full-fledged File Browser/Manager.

The original intent for creating the module was discussed by me in an earlier blog post:
http://www.rahulsingla.com/blog/drupal-take-control-module

The official page for the module on drupal.org is this:
http://drupal.org/project/take_control

The module package is available on the official module page listed above.

The current page you are viewing has been created as the permanent address for the module on my website, where I would provide updates on the module development status, and links to some other resources I have created for using the module. You can also use this for discussing with me any issues you face while using the module. However, please file all bug reports and feature requests at the official module issue queue.

You can find a video tutorial demonstrating the steps for installation of the module here:
http://www.rahulsingla.com/projects/drupal-take-control-module/installation

I originally used FamFamFam icons for the File Browser, which I was not able to commit to the module's CVS because of licensing conflicts with Drupal. The module now ships with a default icon-set for the File Browser, that are GPL licensed. You can find addtional icon-sets for the File Browser here:
http://www.rahulsingla.com/projects/drupal-take-control-module/icon-sets

An online demo for the module is now available here:
http://drupal.sandbox.rahulsingla.com/

Below are some of the screenshots for the module:

File Browser     Quick Permissions screenshot     Admin configuration

UPDATE:

  • Jun 18, 2011 - Drupal 7 port of the module is now available. Please download and test the same from the official module page at drupal.org.
  • Apr 30, 2012 - A greatly enhanced Drupal 7 version of the module with ability to configure accessible paths per-role and per-user is now available. Please help test the latest dev version from here and report any issues you find to enable releasing a stable version with the new features:
    http://drupal.org/node/1192922 

 

Web 2.0: 
Projects: 
PHP: 

Comments

Rahul, let me be the first to say thanks for this module!  I can hardly wait to try it out on my site.  It's developers like you that make Drupal better every day.  Well done!

By Colin (not verified)
rahul's picture

Hi Colin, thanx for the feedback. I have just committed and created the 2.0-beta2 version of the module to the CVS. It is important that you download and install the latest version from the official module page.

By rahul

Hi Rahul,


I installed Take Control earlier today and it's absolutely perfect. The instructions were clear and very easy to follow. Thanks again, and keep up the awesome work!


Colin

By Colin (not verified)
rahul's picture

Thanx again Colin for the feedback, you probably might be interested in another of my modules that I would release on drupal.org over the next few days. That module is basically for documentation sites, allowing authorized users to attach and rate custom reference links to documentation pages.

One important thing while using Take Control is to remember not to abuse Drupal's design. I created this module because I was suffocated on how Drupal completely alienated me to my site's own files directory. But it is equally important to remember that Drupal does this for security reasons. You should keep custom permissions on the files directory only for the minimum duration for which you want to access it from your FTP or Hosting panel, and should be immediately restored to Drupal defaults after your task is complete.

Equally important to remember is not to change .htaccess in the files folder, and not upload executable code files (e.g. with .php extension etc) into the files folder using this module's Upload feature.

By rahul

Great module.  Can I change it so it deosn't display the entire file system.  I would like to use this with staff and I want them to only see a folder I specicify.

By Chris (not verified)
rahul's picture

Hi Chris, the module out of the box does not support what you want, you will need to go into the code of the module and customize it for your needs.

By rahul

Thanks for the response.  Again I love your module.  Any chance you can point me in the right direction so I can easily change the home folder users see when they access your module. 

By Chris (not verified)
rahul's picture

Hi Chris, I think you can control the entire experience from the fb/get-files.php file. It should have a method to return the root folders, that you can easily customize even for user-specific root folders.

Please note I am out for some days, so the next reply if you post another comment can take sometime.

By rahul

Once again thanks for your response.  We were able to modify the code to point to a different root folder.  Essentally allowing us to control what parts of the file system Take Control provides access to.  We know find this to be a great tool for allowing users to access files through drupal like a cloud based file server.  Private files is protecting file properly but our only issue is that Take Control is only available to users with the admin role.  Do you know how we can change this to allow different roles access to this module?

rahul's picture

Hi Chris, I have this in my to-do list for this module. Doing so would need some changes to module architecture, which I plan to make soon. Maybe you can add this as a feature request in the official issue queue for the module at d.o. and I will have a go at this as soon as I can.

I will further appreciate if you can provide links to where you are using this module so I can update the same on the project page for this module as a demonstration of the capabilities of the module.

By rahul
rahul's picture

Hi Chris, major enhancements have been committed for the 7.x-2.x branch of the module. The module now provides new permissions, enhanced administration options (including a demo mode option). The killer feature is ability to control accessible folder paths per-role and per-user.

Please download the latest dev release of the module from here and help test it:
http://drupal.org/node/1192922 

By rahul

Hello;

So,i have a problem to change the root folder in get-file.php files.

I've changed the document_root and $rootfolder variable but i always have the message error :"You are not authorized to perform this action".

can you help me to fix this problem.
Thank you in advance.

By tracy (not verified)
rahul's picture

Hi tracy, I am running an awful schedule these days. I won't have much time, I can try giving a quick look to see what's wrong (if you can email me the FTP details and User Id 1 credentials for your setup together with site url).

By rahul

Hi rahul,

I 've seen the comment of christ named " Module acess". He said that : "We were able to modify the code to point to a different root folder. "

So i just wanna know what line of the code i must modify (in get-files.php file) to point to my "C:/" directory. (for the filebrowser bloc).

I am new in drupal 7 but i've experience in the 6 version and i see one module in 6 version that can do this: that's FileBrowser module.  website: http://drupal.org/project/filebrowser

Thanks in advance. it's really a good module. good job.

By tracy (not verified)
rahul's picture

Hi tracy, look for the method _take_control_fb_validate_path in get-files.php. That's pretty simple PHP code, and you should be able to modify it to point the directory to C:\ or whatever you need.

By rahul

hello rahul,

I were able to modify the php code in get-files.php.

Thanks a lot for your help.

Sincerly.

By tracy (not verified)

Add new comment