Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 12:36:49 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149699 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1] 2 3 4   Go Down
Print
Author Topic: Addon File Editor (AFE)  (Read 20059 times)
doc
Guest
« on: December 14, 2008, 06:51:51 PM »

Hello,

please find attached the first public beta release v0.20 of the admin tool: "WB File Editor".

This admin tool allows you to edit the WebsiteBaker module and template files via the backend and to create a zipped package of all module and templates files on the fly. The idea is based on the template editor module by John and Peter Gilbane.

Main features:
  • module and template edit capabilies combined in a single module
  • improved user-interface (less clicks, for/back actions) compared to the original module available
  • template class to seperate HTML and PHP code
  • backend.css, basic help file
  • multilingual support (German and English language files included)
  • Codepress code highlighting support
  • supported file extensions: html, htm, htt, js, css, php, php3, php4, php5, txt

As the module is still a beta version, you should test it only on a test environment to prevent loss of sensible data etc. Some code cleaning ongoing, but feedback, propols etc. already welcome.

Regards Christian

[Edit]File removed, as a newer version was released[/Edit]
« Last Edit: February 07, 2010, 08:58:03 AM by doc » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #1 on: December 14, 2008, 07:27:18 PM »

Very handy tool, Christian.

Nice Design too.

Good job!

Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #2 on: December 14, 2008, 08:12:22 PM »

Hello Christian,

a very good idea!

The WB File Editor has a problem with umlauts:



and it would be very helpful if I can edit all files in all subdirectories of a module and not only within the /languages directory, for example I'm using templates in my modules within a /templates directory.

Creating a zip is a very good idea but it should contain only the module with its assigned subdirectories and not the whole server path - its not possible to use this zip for (re-)installing...

Regards
Ralf
Logged
doc
Guest
« Reply #3 on: December 14, 2008, 08:32:20 PM »

Hello Ralf,

never used German Umlauts in any of my files so far, always sticked to entities but I will have a look on that  smiley

All sub directories and files with read- and write permission below a module or template folder should be listed if the sub directory contains at least one file with a supported file extension. The directory listing is recursive. On my local test environment, I can edit the template files *.htt located in the subfolder /htt of my modules (e.g. WB File Edit). Maybe I did not get the point on that. So can you please check and / or give some more hints on that.

First fix applied to version v0.21 (still beta) to strip off the leading path from the zip package to create installable zip archive as required for websitebaker. Only tested on Windows so far, may need another fix on Linux OS.

Regards Christian

[Edit]File removed, as a newer version was released[/Edit]
« Last Edit: December 14, 2008, 09:55:28 PM by doc » Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #4 on: December 14, 2008, 09:26:12 PM »

Hello Christian,

Quote
All sub directories and files with read- and write permission below a module or template folder should be listed if the sub directory contains at least one file with a supported file extension. The directory listing is recursive. On my local test environment, I can edit the template files *.htt located in the subfolder /htt of my modules (e.g. WB File Edit). Maybe I did not get the point on that. So can you please check and / or give some more hints on that.

Here is a screenshot from WB File Edit, simply installed nothing changed...



like you see the WB File Edit shows some files and ignores others. This is a screenshot from FTP program of /htt subdirectory:



Any idea?

Regards
Ralf




Logged
doc
Guest
« Reply #5 on: December 14, 2008, 09:52:38 PM »

Hi Ralf,

sorry, forgot to remove a test entry in tools.php line 191. The test entries used a reduced file type array (css, html, php) instead of the file extensions as defined in settings.php.

This problem should be solved with v0.22 (still beta) of the WB File Editor.

Regards Christian

[Edit]File removed, as a newer version was released[/Edit]
« Last Edit: January 05, 2009, 06:14:05 PM by doc » Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #6 on: December 15, 2008, 08:51:53 PM »

Hello Christian,

working fine  smiley

I think this tool has the ability to get the standard Admin's Module & Template Tool - it should be still more than a simple editor...

So, here are my wishes to force this idea:

  • show all files in all subdirectories, but make only textfiles editable
  • add upload of files
  • allow to delete files
  • create new textfiles, i.e. language files or templates...
  • allow access only for members of group "administrators" to prevent misuse

and it will get a really great tool  cool

Regards
Ralf
Logged
doc
Guest
« Reply #7 on: December 15, 2008, 09:37:38 PM »

Hello Ralf,

main intention of the WB File Edit module is to have an easy to use module which allows small changes to installed templates and modules from the WB backend without zip ->download ->unzip -> edit -> zip -> upload sequence as required by most hosters (thats why I like DF).

What do you mean by "show all files in all subdirectories"? Do you want to list also files outside of the module or template folders? In this case, I would prefer the admin tool Webbased Editor ported by pcwacht and Ruebenwurzel a while ago. An alternative could be QuiXplorer, which is more powerfull but not yet available as WB module. Links to the original scripts of both can be found here.

My intention is to limit WB File Editor to modules and templates files only. However, possibilities to delete, upload or create new files in modules or template folders may be an intersting option.

Features already on my list:
 - show module/template files and subfolder in a Explorer like look
 - make implemented features configurable via settings.php

What are you other guys thinking about Ralfs proposal to allow also file uploads to module and template folders and to create new files and to delete existings ones??

Regards Christian
« Last Edit: December 15, 2008, 10:09:27 PM by doc » Logged
maverik

Online Online

Posts: 1541



WWW
« Reply #8 on: December 15, 2008, 09:49:41 PM »

hello

my english is not godd enough to write a whole text, so i write in german, maybe some one can translate it...ralf?  smiley

bei der jetzigen version öffnet sich bei mir beim template edit ein neues browser fenster und änderungen im template werden nicht gespeichert

ralfs idee finde ich gut, fände es prima wenn man nur ein modul hätte mit dem man alles bewältigen könnte ohne noch auf ein anderes modul zurückgreifen zu müssen, so zu sagen das "schweizer taschenmesser" unter den editoren.  grin

greets from niederrhein



Logged

Signatur wird geladen...
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #9 on: December 15, 2008, 10:10:51 PM »

My intention is to restrict WB File Editor to modules and templates files only. However, options to delete, upload or to create new files are an intersting option.
I really like this module. Mostly the handy way to edit files as they are listet above the editor (codepress textarea).
The Idea of having the possibility to add files is a good thing (mostly if you are updating a template and you want to add a small image on the fly).

However, in the future Version I would preffere to have this tools available via backend>>addons>>templates and backend>>addons>>modules for this is the place where the user will search for a tool like this in the first place.


// Edit: I mean the place where you can upload, deleate and view the infos of templates/modules.
(This is just a suggestion for a future release of WB)

in this case you will also be able to set the permissions for those authorized in editing.

Quote
What are you other guys thinking about Ralfs proposal?
I am using the "Webbased Edit" Tool for uploading files. However, a combination of this tool with the possibility for file editing is very welcome.

Regards,
Stefek
« Last Edit: December 15, 2008, 10:42:14 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #10 on: December 15, 2008, 10:14:21 PM »

Hi,

Quote from: stefek
I really like this module. Mostly the handy way to edit files as they are listet above the editor (codepress textarea).
Thanks that was my main intention (to improve the user interface and make editing files more convenient as in the versions spreading around here in the forum).

Regards Christian
« Last Edit: December 15, 2008, 10:24:07 PM by doc » Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #11 on: December 16, 2008, 05:15:03 AM »

Hello Christian,

Quote
main intention of the WB File Edit module is to have an easy to use module which allows small changes to installed templates and modules from the WB backend without zip ->download ->unzip -> edit -> zip -> upload sequence as required by most hosters


That is excactly what I have proposed - fully agreement  cool

Quote
(thats why I like DF).

What is the meaning of DF?

Quote
What do you mean by "show all files in all subdirectories"?

The subdirectories of the module or template I'm just working on, nothing outside of these both tree's...

Quote
In this case, I would prefer the admin tool Webbased Editor ported by pcwacht and Ruebenwurzel a while ago. An alternative could be QuiXplorer, which is more powerfull but not yet available as WB module.

I never need tools like this, because I have always a powerful environment at work, home or on my netbook - I've installed WB File Editor for testing and thought directly "Wow, that is a handy tool to cover all small works at templates or modules"  cool

Regards
Ralf
Logged
doc
Guest
« Reply #12 on: December 16, 2008, 07:05:42 AM »

Hi Ralf,

Quote from: "Ralf (Berlin)
What is the meaning of DF?
Just use Google search and check out the first link  smiley  Some of their packages to not distiguish between ftp and php, which makes WB even more fun.

Thanks for clarification regarding the question by the means of: "show all files in all subdirectories".
Hade the fear you want WB File Editor become such a tool like Webbased Editor, which is definitelly not my intention.

All other proposals make sense and I will add those features with the next releases.

Regards Christian
Logged
doc
Guest
« Reply #13 on: December 17, 2008, 11:06:13 PM »

Hi,

please find attached v0.24 (beta) of the WB File Editor. Like the previous versions, this admin tool should only be used in a test environments at this early developing stage.

New features introduced:
 - re-worked the file explorer to show all folders and files in alphabetical order
 - introduced file icons to distinguish between folders, text files, images, archives and other file types
 - only text files are clickable per default, all files will be listed by default
 - removed date / size infos and introduced placeholder column (actions)

Next steps planned for early 2009:
 - use Javascript to allow to expand / collaps folders (per default all folders except the root folder will be collapsed)
 - implement file actions: edit, delete, upload
 - implement folder actions: recursive delete
 - clean up the code

Regards Christian

P.S.: Will follow up the work on WB File Editor in the 2nd week of January 2009  wink

[Edit]File removed, as a newer version was released[/Edit]
« Last Edit: January 11, 2009, 07:23:12 PM by doc » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #14 on: December 31, 2008, 06:54:32 PM »

Will follow up the work on WB File Editor in the 2nd week of January 2009  wink

Cool.
Looking forward to it.

Best Regards,
Christian Stefan
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #15 on: January 11, 2009, 07:34:35 PM »

Hi,

please find attached version v0.33 (beta) of the WB File Editor. This is the first release with most of the planned features in place. As this is still a beta release, one should use this tool in a test environment only (even if no serious bugs were reported up to now).

New features introduced:
 - re-worked file manager look and feel (added file size and creation time)
 - introduced PEAR Download package (used to send zip archive to the browser once created)
 - replaced syntax highlighting framework Codepress by EditArea (thank to pcwacht for the tip)
 - EditArea is part of the module, no need to install it seperately
 - added file actions: edit, rename, delete, create and upload
 - added possibility to open image files in a new browser window

Installation:
First uninstall any previous versions of WB File Editor via the WebsiteBaker backend. Then install the latest version via the WB backend. You will find the module listed in the section: Admin-Tools.

To do:
- gain user feedback (usability, support of different operating systems and browser ...)  - ongoing
- code clean up (especially the language files and parts of the action handler) - done
 - implement a FTP layer to edit also files uploaded via FTP (depending on users feedback) - done

As usual, feedback welcome.

Regards Christian

[Edit]File removed, as a newer version was released[/Edit]
« Last Edit: January 19, 2009, 08:06:42 AM by doc » Logged
fahad4x4

Offline Offline

Posts: 16



WWW
« Reply #16 on: January 11, 2009, 10:14:16 PM »

Hi,

please find attached v0.30 (beta) of the WB File Editor. This is the first release with all planned features in place. As this is still a beta release, one should use this tool in a test environment only (even if no serious bugs were reported up to now).

New features introduced:
 - re-worked file manager look and feel (added file size and creation time)
 - introduced PEAR Download package (used to send zip archive to the browser once created)
 - replaced syntax highlighting framework Codepress by EditArea (thank to pcwacht for the tip)
 - EditArea is part of the module, no need to install it seperately
 - added file actions: edit, rename, delete, create and upload
 - added possibility to open image files in a new browser window

Installation:
First de-install a possible existing previous versions via the WebsiteBaker backend. Then install the module via the Website Backer backend. You will find the module listed in the section: Admin-Tools.

To do:
Clean up (especially the language files and parts of the action handler).

As usual, feedback welcome.

Regards Christian





Nice Design   cheesy.

Good job!

Logged
doc
Guest
« Reply #17 on: January 12, 2009, 12:16:49 AM »

Hello,

released WB File Editor v0.33 which fixes two bugs (image preview, redirect error if referer is not set).

Regards Christian
« Last Edit: January 12, 2009, 01:20:52 AM by doc » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #18 on: January 12, 2009, 06:09:31 AM »

Cool.
Very handy, good overview (maybe the icons a little too small by the dimensions of 10x10px).
I like it.

Could you explain this idea a little more:
Quote
- implement a FTP layer to edit also files uploaded via FTP (depending on users feedback)
(Sounds interesting)

Regards,
Christian Stefan
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #19 on: January 18, 2009, 07:56:17 PM »

Hello,

please find attached the first release candidate v0.35 (RC1) of the Addon File Editor. This release includes all the features I had in mind for the File Editor.

New features:
 - support for language files (all WB Add-ons such as modules, templates and languages files are now supported)
 - additional FTP layer (this allows dealing with files uploaded by FTP not via the WB backend)
 - renamed tool from WB File Editor into Addon File Editor
 - code clean up

Installation:
Delete previous versions if exists. Then download the latest version and install it via the WB backend. The tool is listed in the Admin-Tool section of websitebaker.

Configuration:
If you want to enable FTP Support, you need to provide the connection details to your FTP server in config.inc.php of the Addon File Editor. You can use the FTP assistant to check if the settings are right (can be invoked from the backend). Please double check, that the FTP starting directory points to your WB installation folder. If WB was installed in a sub folder of your web space, you need to adapt the path from / to e.g. /wb. Use the start path as defined in your FTP tool or just start with / first.

As usual, feedback, suggestions etc. are welcome.

Have fun
Christian

Version history:
 - v0.30 initial release (first post in this thread)
 - v0.31 fixed issue with image preview function
 - v0.32 fixed issues if no referer is defined (thanks to Maveric for reporting)
 - v0.33 fixed another referer bug and some typos
 - v0.34 internal release not published in the forum
 - vo.35 RC 1

DOWNLOAD:
Latest version can be found on the WebsiteBaker Add-ons Repository.
« Last Edit: April 28, 2009, 06:58:13 PM by doc » Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #20 on: January 18, 2009, 11:43:48 PM »

Nice one. Although I personally like the editor http://www.websitebakers.com/pages/admin/admin-tools/webbase-edit.php better, the added FTP support of your editor is handy for people that don't have an FTP client.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
doc
Guest
« Reply #21 on: January 19, 2009, 12:02:48 AM »

Hi Argos,

thanks for your comments. The main intention of Addon File Ediitor is to have a handy tool which allows small modifications restriceted to WB Add-on files such as modules, templates and WB language files. The FTP support is used automatically if PHP file access fails in the first shoot. This way the user do not need to bother about permissions.

Regards Christian
« Last Edit: January 19, 2009, 12:07:18 AM by doc » Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #22 on: January 19, 2009, 12:07:16 AM »

Hi Argos,

thanks for your comments. The main intention of Addon File Ediitor is to have a handy tool which allows small modifications restriceted to WB Add-on files such as modules, templates and language files only. FTP support is only used if PHP file access fails in the first shoot.

Regards Christian

Hi Christian,

you're right, I'm sorry I was too quick... The two editors are really not quite comparable. It's nice to have a special editor for addons! Good job!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #23 on: January 19, 2009, 12:09:37 AM »

I really like this tool.
Finally it is possible to edit the files via backend which are normally owned by ftp-user (as it is the case with the core-modules as "form, news, ...").

Excellent work Christian.
It makes my designer life even easier smiley

Kindly Regards,
"Stefek"
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #24 on: January 19, 2009, 12:11:17 AM »

Hello Argos,

Quote from: argos
you're right, I'm sorry I was too quick... The two editors are really not quite comparable. It's nice to have a special editor for addons!
no need for excuses. Any feedback is welcome as written in my initial post. I simply like coding and one of my customers asked for a admin tool like this, so I started to code it. Honestly speaking, if people like the tool, I am glad, if not I am not totally pissed off  wink

Regards Christian
« Last Edit: January 19, 2009, 01:11:36 AM by doc » Logged
Pages: [1] 2 3 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!