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

Costa

URL http://www.infodz.com.br/in4tek/index.php?action=admin;area=filemanager;do=image;file=%2Fhome%2Finfodz%2Fpublic_html%2Fin4tek%2Favatars%2Fstar+wars%2FMaster-Yoda.jpg
8: Undefined index: fm_filepermissions
Aplicar Filtro: Mostrar apenas erros deste ficheiro
File: /home/infodz/public_html/in4tek/Themes/default/FileManager.template.php (image sub template - eval?)
Line: 289

I've +300 errors Undefined index  >:(
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

Ah, that's my bad. I'll get a fix out ASAP.

Costa

No worry, only informing you about this issue :)
It's very usefull for me, because i've other admins that I don't want to give them FTP acess to the site, only to forum folders.

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

An update on this.

The next version (1.0 RC1) won't be released until after SMF 2.0 RC2 ships.
New features in this version, however, includes syntax highlighting of code, creation of new files and folders, ability to download files to your hard drive, improved search and more.

Antechinus

A "sort by file extension" option would be very useful for maintenance work on the attachments folder. ;)

Marcus Forsberg

Gamma 1 is out!







The SMF File Management Tool 1.0 Gamma 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 and genusis.
Bugfixes: Arantor
Type: New feature
Available since: August 3 2009
Latest version: 1.0 Gamma 1 (November 12 2009)
Compatible with: 1.0 RC2
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.    
       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.
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, Norv and genusis 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.

Changelog
1.0 Gamma 1 | November 12 2009
! The file manager tried to open bmp as text files. Bad idea. :P
! Will now look for icons and files in the default theme dir, instead of the current theme dir.
! Made sure file content is properly loaded after an edit is saved.
! Fixed loads of undefined indexes.
! When removing a file, the entire path was shown. Now, the base path ($boarddir) will not be shown.
! Made sure file manager files can't be removed (Added to the $smf_important array).
! Search is now case-insensitive (Thanks genusis)
+ Added a new sub button for the file manager to the "Admin" button in the navigiation menu.
+ Added support for audio files.
+ File type icons will now change based on the actual file type.
+ Added a theoretical extract function (zip/rar), fully untested. ;)
! The "Make edits to this file below" notice will not be shown after having saved a file.
+ New files can now be created.
$ Changed package.png and rename.png.
+ Added a "Download file" feature.
+ Files should now be sorted alphabetically on all systems (Thanks Arantor).
+ Added syntax highlighting.
+ If the folder count is empty, "0 folders" won't be displayed. The same occurs to file count.
! Added /default/ to protected files and folders.
! Fixed the "There are no files in this directory." notice.
$ Moved the "Go to parent directory" link to within the directory listing.
! Files inside of protected folders are now also protected.
! The "Back" link below search results now leads back to the parent directory.
! Updated modCopyright() to prevent xHTML errors.
! Replaced all B tags with STRONG tags.
! Chmod should now work properly (Thanks Arantor).
+ Added a check for the latest version, including a warning message if you are using an old version.
+ The location box is now visible on ALL actions.
+ New directories can now be created.
! Made sure there no undefined index errors on search.
! Added $fullpath back in to imageData() to make sure there are no undefined indexes.
! Added some temporar fixes for the undefinex indexes when downloding an archive.
! Made sure there no undefined index errors on file upload.
! Updated getLocation() to make sure there are no undefined index errors when viewing files.
! Made sure process.php uses checkDirName().
$ Layout changed for Curve.
$ Updated the information at the top of both source files, and added it to process.php.



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
$ Information

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 2
1.0 Beta 1.1
1.0 Beta 1



Arantor

Btw, looks to me like you could copy that FileManager.english.php to FileManager.english_british.php (and both UTF-8 variants) without any edits :)

Marcus Forsberg

Quote from: nuwanda on November 12, 2009, 11:11:51 AM
Congrats. :)


Thanks.

Quote from: Arantor on November 12, 2009, 11:25:24 AM
Btw, looks to me like you could copy that FileManager.english.php to FileManager.english_british.php (and both UTF-8 variants) without any edits :)

Meh, I was going to make a UTF8 file, but forgot. Will add that and the British file in the next update. :P

Costa

Congrats Nas!

In this weekend I work on translations :)
Thank's for the PM ;)
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."

Nick Whetstone

Amazing Mod! It works perfectly so far. Edited the index just to see if it would work, and it worked great :) Congrats
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Marcus Forsberg

1.0 Gamma 1.1 is out! This is the last version before the mod site release of FM 1.0.
There aren't too many updates since Gamma 1, but here's the changelog:

1.0 Gamma 1.1 (10 entries)                                       November 15 2009
============================================================================================
November 2009
---------------------------------------------------------------------------------
   + Linked the image thumbnails to Highslide, so you can see the image in fullsize without loading ?do=image. (FileManager.template.php)
   ! FTP ruined the spacing in two more files. *sigh* (FileManager.php, FileManager.english.php)
   $ The parent dir link and the root dir link now uses the approvebg css class, making them red on curve, while folders use windowbg2, making them light blue. Files still use windowbg, as usual. (FileManager.template.php) [Issue #9]
   + Images will no longer use image.png as their icon. Instead, a small preview (Max 50x50px) will be shown. (Subs-FileManager.php, FileManager.template.php) [Issue #8]
   $ Updated $txt['fm_file_noexist'] to reflect non-functioning files aswell, not only missing files. (FileManager.english.php) [Issue #1]
   ! Several functions used fatal_lang_error() the wrong way (Gave it the entire string instead of just the index, resulting in error log entries). Also made sure non-existing files won't throw errors to the log. (FileManager.php, Subs-FileManager.php) [Issue #1]
   + If you are not in the root directory, and if the parent is not the root directory, a "Go to SMF Root Folder" link will be shown in the directory listing, for faster browsing. (Subs-FileManager.php, FileManager.template.php, FileManager.english.php) [Issue #7]
   $ Fixed a typo in the readme (Said 1.0 RC2 instead of 2.0 RC2). (readme.txt) [Issue #4]
   ! The spacing in process.php had gone odd. (process.php) [Issue #3]
   $ Some minor code cleanup. Got rid of unnecessary tabs and more. (FileManager.php, Subs-FileMananger.php) [Issue #2]

Sorck

The new version installs fine but there's an error saying:
You seem to be using an outdated version of The SMF File Management Tool. Please visit the SMF Mod Site as soon as possible to update to the latest release!
You are currently using version 1.0 Gamma 1.1, while the latest version is 1.0 Gamma 1.


Also the display is a little off (the 1st table colum is 5 times the width that it needs to be) ;)

Marcus Forsberg

Quote from: Colonel Sorck on November 15, 2009, 06:18:20 AM
The new version installs fine but there's an error saying:
You seem to be using an outdated version of The SMF File Management Tool. Please visit the SMF Mod Site as soon as possible to update to the latest release!
You are currently using version 1.0 Gamma 1.1, while the latest version is 1.0 Gamma 1.



Fixed. Reload the page.

Quote from: Colonel Sorck on November 15, 2009, 06:18:20 AM
Also the display is a little off (the 1st table colum is 5 times the width that it needs to be) ;)

Screenshot, please?

Marcus Forsberg

I have submitted FM 1.0 to the SMF Mod Site. Once approved, it's considered stable enough to use on any forum and development of FM 1.1 will start. :)

Marcus Forsberg


Advertisement: