News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[WIP] SMF File Management Tool 1.0

Started by Marcus Forsberg, August 03, 2009, 09:37:12 AM

Previous topic - Next topic

Marcus Forsberg

This mod is done
This mod is now done and can be downloaded here[/url].




The SMF File Management Tool 1.0
Adds a simple yet useful file manager to your administration panel.
[iurl=[url="http://custom.simplemachines.org/mods/index.php?mod=2276%5DLink"]http://custom.simplemachines.org/mods/index.php?mod=2276]Link[/url] to Mod[/iurl] | [iurl=[url="http://www.simplemachines.org/community/index.php?topic=348678.0%5DSupport"]http://www.simplemachines.org/community/index.php?topic=348678.0]Support[/url] and comments[/iurl]

Author: [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=143954]Nas[/url]
Beta testers: [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=150546]mashby[/url], [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=211029]Norv[/url], [url=http://www.simplemachines.org/community/index.php?action=profile;area=summary;u=134865]genusis[/url] and [url=http://www.simplemachines.org/community/index.php?action=profile;u=194282]JBlaze[/url].
Bugfixes: [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=53626]Arantor[/url]
Type: [url=http://custom.simplemachines.org/mods/index.php?action=search;type=1]New feature[/url]
Available since: November 15 2009 (Mod site) | August 3 2009 (Development releases)
Latest version: 1.0 (November 17)
Compatible with: 2.0 RC2
Available languages:



What does it do?
The SMF File Management Tool, aka File Manager/FM adds a simple yet useful file manager to your administration panel.
It allows you to browse all files and sub folders in your SMF installation folder.
You can edit files, remove files and directories, rename files and directories and chmod files and directories.

Features
Add a file manager to your administration panel accessible by all administrators.
       Browse all files and sub folders in your SMF installation folder.
       Includes a page index for folders with large amounts of files.
       View images with highslide js!
       Displays information such as filesize, last modified and more.    
       Can play audio files!             
Edit files.
       Edit all php, txt, html files and more.   
       Includes syntax highlighting.      
Remove files and folders
       Remove directories and all files and sub folders inside.
       Important SMF files are protected!
Rename files and folders
       Change the name of all directories and files through a fast form.   
       Important SMF files are protected!
Upload files
       Upload files from your hard drive in seconds.
       Ajax makes sure there are no page reloads during the file upload.   
Create new
       Allows you to create new files and directories by simple typing a name for them.
      
How to use
To use FM, download the package from the SMF mod site, and install it via your Package Manger.
You will be able to use the file manager without having to do anything else*!

* = The file manager is found in Admin > Maintenance > File Manager.

Using SMF 1.1.x?
If you are using SMF 1.1.x, try out Aärons version: File Manager.

Other information
Translation of this mod
I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the mod topic.
Please make sure you have translated everything, and that there are no spelling mistakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language files will occur while this modification is still in beta.
Credits
This mod is created by Nas.
Thanks mashby, Norv, genusis and JBlaze for your beta testing.
This mod was originally inspired by Aärons File Manager mod for SMF 1.1.x.
Thanks to Arantor for your bugfixes and tips.
This mod uses the Pixel LED Icon set by Marcis Gasuns.
This mod uses Highslide JS thumbnail viewer by Torstein Hønsi.
This mod uses CodePress syntax highlighter by Fernando M.A.d.S and Michael Hurni.



Balaban

Hi Nas , good work.
if you want, I can add Turkish file .İt' ready!
.

Marcus Forsberg



tfs

I'll be anxious to see how this mod turns out.  Ping for later reading.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Costa

Nas Dude Man! Awesome!

If you want i can test and translate to portuguese and brazilian :)

Farewell
- Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Marcus Forsberg

Thanks, justblbn99! I will add it to the next release!

tfs, I hope you will like the final result. :)

Costa: Thanks, and yes, I would appreciate your translations and testing. :)

Costa

My contribution to your mod  :)

One little suggestion, on columns you can put a sort method (by name, by type, by size, etc)

Congrats for your efforts

Farewell
- Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Marcus Forsberg

Thank you Casto, will add the translations in the next version.
And yes, a sorting method is being looked it since before. :) Thanks for your request.

Costa

It's Costa :P
Great, a File manager is a powerfull tool for smf, and very usefull
I'm testing here, if i find any bug i report to you, granted.

It's amazing your evolution here at SMF, i don't doubt that in two or three years you'll be a devenloper :)

Farewell
- Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Marcus Forsberg

Sorry for the typo in your name, Costa:)
And thank's for your comments.

Özgür

Good mod @Nas. Thanks. =)
Just feature request; Need sorting system. (:
So Long

Yağız...

Nice mod nice but you should do something for CHMOD settings :)

Marcus Forsberg

Thanks guys. Both features are being added in future versions. :)

Marcus Forsberg

An update. :) See below for information. File attached.







The SMF File Management Tool 1.0 Beta 1.1
Adds a simple yet useful file manager to your administration panel.
Link to Mod | Development topic | Bugreports / Feature requests

Author: Nas
Beta testers: mashby, Norv
Bugfixes: Arantor
Type: New feature
Available since: August 3 2009
Latest version: 1.0 Beta 1.1
Compatible with: 2.0 RC1.2
Available languages:


UNDER DEVELOPMENT
Please not that this mod is not yet finished. Though it works perfectly fine on a frsh installation of SMF, not all features are added and there are a few bugs.

What does it do?
The SMF File Management Tool, aka File Manager/FM adds a simple yet useful file manager to your administration panel.
It allows you to browse all files and sub folders in your SMF installation folder.
You can edit files, remove files and directories, rename files and directories and chmod files and directories.

Features
Add a file manager to your adminitration panel accesable by all administrators.
       Browse all files and sub folders in your SMF installation folder.
       Includes a page index for folders with large amounts of files.
       View images with highslide js!
       Displays information such as filesize, last modified and more.       
Edit files.
       Edit all php, txt, html files and more.   
Remove files and folders
       Remove directories and all files and sub folders inside.
       Important SMF files are protected!
Rename files and folders
       Change the name of all directories and files through a fast form.   
       Important SMF files are protected!
More to come!   
       The File Management Tool is still under development! New features will be available.
      
How to use
To use FM, download the package from the development topic, and install it via your Package Manger.
You will be able to use the file manager without having to do anything else*!

* = The file manager is found in Admin > Maintenance > File Manager.

Other information
Translation of this mod
I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the development topic.
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language fiels will occur while this modification is still in beta.
Credits
This mod is created by Nas.
Thanks mashby and  Norv for your beta testing.
This mod was originally inspired by Aärons File Manager mod for SMF 1.1.x.
Thanks to Arantor for your bugfixes and tips.
This mod uses the Pixel LED Icon set by Marcis Gasuns.
This mod uses Highslide JS thumbnail viewer by Torstein Hønsi.

Changelog
1.0 Beta 1.1 | August 7 2009
> Added turkish language.
> Added brazillian language.
> Added portuguese language.
! Made sure the manager does not try to display files such as Profile.template.php as templates, but inside the form.
+ Seperated the display of files and directories.
+ Made sure you are redirected to the file manager after installation.

1.0 Beta 1August 3 2009
$ The first public version was released.





Changelog legend
+ New feature
- Feature removal
! Bugfix
> New language
< Removed language
* New version support
$ Initial release / Big update

Versionnames
Format: $.o.x.!
Example: 3.2.4.1

$ New version
o New features added
x Bugfix
! Small bugfix / New version support


Passed versions of this mod
1.0 Beta 1


Costa

Good update, the translations work fine here
I like more now, i can view more files/folders per page
Only need the sort method

The features (edite file/delete/etc) work fine here for a beta stage are very stable

keep the good wok Nas

Farewell
-Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Marcus Forsberg

Okey, time for Beta 2.
I added a few new things to it! Check the changelog at the bottom. :)

I am probably only doing Beta 3, then I think it's time to get it onto the SMF mod site. So anyone interested in doing the final test, finding bugs etc, please PM me ASAP.
Also, please post your feature requests here. :)







The SMF File Management Tool 1.0 Beta 2
Adds a simple yet useful file manager to your administration panel.
Link to Mod | Development topic | Bugreports / Feature requests

Author: Nas
Beta testers: mashby, Norv
Bugfixes: Arantor
Type: New feature
Available since: August 3 2009
Latest version: 1.0 Beta 2
Compatible with: 2.0 RC1.2
Available languages:


UNDER DEVELOPMENT
Please not that this mod is not yet finished. Though it works perfectly fine on a frsh installation of SMF, not all features are added and there are a few bugs.

What does it do?
The SMF File Management Tool, aka File Manager/FM adds a simple yet useful file manager to your administration panel.
It allows you to browse all files and sub folders in your SMF installation folder.
You can edit files, remove files and directories, rename files and directories and chmod files and directories.

Features
Add a file manager to your adminitration panel accesable by all administrators.
       Browse all files and sub folders in your SMF installation folder.
       Includes a page index for folders with large amounts of files.
       View images with highslide js!
       Displays information such as filesize, last modified and more.       
Edit files.
       Edit all php, txt, html files and more.   
Remove files and folders
       Remove directories and all files and sub folders inside.
       Important SMF files are protected!
Rename files and folders
       Change the name of all directories and files through a fast form.   
       Important SMF files are protected!
Upload files
       Upload files from your hard drive in seconds.
       Ajax makes sure there are no page reloads during the file upload.   
More to come!   
       The File Management Tool is still under development! New features will be available.
      
How to use
To use FM, download the package from the development topic, and install it via your Package Manger.
You will be able to use the file manager without having to do anything else*!

* = The file manager is found in Admin > Maintenance > File Manager.

Other information
Translation of this mod
I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the development topic.
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language fiels will occur while this modification is still in beta.
Credits
This mod is created by Nas.
Thanks mashby and  Norv for your beta testing.
This mod was originally inspired by Aärons File Manager mod for SMF 1.1.x.
Thanks to Arantor for your bugfixes and tips.
This mod uses the Pixel LED Icon set by Marcis Gasuns.
This mod uses Highslide JS thumbnail viewer by Torstein Hønsi.

Changelog
1.0 Beta 2 | August 18 2009
+ Archives such as zip, tar, and rar are now seperated from other files. Clicking one of these lets you download it to your hard drive.
! Made sure the edit in Admin.php uses a smaller selection.
! Fixed the readme to include the other available languages.
$ Cleaned some code.
+ File extensions are now shown in the "Type" column.
+ Added a feature for file upload.
+ Added a search feature.
! The bug when viewing templates such as profile template is now fully fixed.
+ Added a chmod feature.
+ Added a column displaying the file permissions, as well as a new row for that when viewing/editing a file.
1.0 Beta 1.1 | August 7 2009
> Added turkish language.
> Added brazillian language.
> Added portuguese language.
! Made sure the manager does not try to display files such as Profile.template.php as templates, but inside the form.
+ Seperated the display of files and directories.
+ Made sure you are redirected to the file manager after installation.

1.0 Beta 1August 3 2009
$ The first public version was released.





Changelog legend
+ New feature
- Feature removal
! Bugfix
> New language
< Removed language
* New version support
$ Initial release / Big update

Versionnames
Format: $.o.x.!
Example: 3.2.4.1

$ New version
o New features added
x Bugfix
! Small bugfix / New version support


Passed versions of this mod
1.0 Beta 1.1
1.0 Beta 1


kai920

Quote from: tfs on August 03, 2009, 04:02:29 PM
I'll be anxious to see how this mod turns out.  Ping for later reading.

Ditto, manually bookmarked :)

[SiNaN]

Good job so far! Just had looked through the codes and two issues: I guess it does let you remove files in the Sources directory, but not the directory itself. It shouldn't allow removal of default SMF files. Same goes for the templates. The other is unnecessary tabs. See this for example:

[tab]// We're gonna need this file no matter what happens. So let's just get it now.
[tab]require_once($sourcedir . '/Subs-FileManager.php');
[tab]
[tab]// We will use the "filemanager" template layer...
[tab]$context['template_layers'][] = 'filemanager';


It should be:

[tab]// We're gonna need this file no matter what happens. So let's just get it now.
[tab]require_once($sourcedir . '/Subs-FileManager.php');

[tab]// We will use the "filemanager" template layer...
[tab]$context['template_layers'][] = 'filemanager';
Former SMF Core Developer | My Mods | SimplePortal

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Advertisement: