Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 11, 2012, 03:15:34 PM
1 Hour
1 Day
1 Week
1 Month
Forever
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
.
149560
Posts in
21091
Topics by
7532
Members
Latest Member:
nes00103
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
File Edit Module
Pages: [
1
]
Go Down
Author
Topic: File Edit Module (Read 5302 times)
kiwipete
Offline
Posts: 8
File Edit Module
«
on:
August 07, 2007, 11:30:04 PM »
I have written a module, which is essentially a hack of the Template Edit module. It allows you to edit online any php, css, or html file in your WB installation (rather than just templates which is what Template Edit does).
The reason why I created it was that I found that once I had installed ANY module or template using websitebaker, I was unable to do anything with these files whatsoever. (no editing, deleting, moving etc). The only way to get rid of an installed template or module file, was to un-install it using websitebaker.
I believe this happens because WB runs as a special user, and hence the files that it installs don't "belong" to me. Because this file editor is installed as a module, it runs as the same user as WB, and hence can edit the files. So if anybody has the same issue as I do, they might find this useful.
The module can be downloaded from
http://www.vroegop.co.nz
.
Cheers.
Logged
doc
Guest
Re: File Edit Module
«
Reply #1 on:
August 08, 2007, 06:33:37 AM »
Hello,
thanks for the module, pretty sure it is very usefull for other users too. Was working on something similar with integration of syntax highlighting using the external Javascript introduced with WB2.6.6.
Will have a look tonight and will provide you some feedback.
Regards Christian
Logged
tomhung
Offline
Posts: 353
Re: File Edit Module
«
Reply #2 on:
November 27, 2007, 03:48:06 PM »
pasting file in forum... thanks...
Logged
Argos
Moderator
Offline
Posts: 2084
Re: File Edit Module
«
Reply #3 on:
December 01, 2007, 02:24:14 PM »
GREAT! Thanks alot, this is very welcome!
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!
Boudi
Addon Team
Offline
Posts: 793
Re: File Edit Module
«
Reply #4 on:
April 23, 2008, 04:52:30 PM »
For me this is a standard addon in every WB! Great stuf! ThnQ.
Sincerely,
Knert
Logged
...:: Bake the Unbakable ::...
davematt
Offline
Posts: 24
Re: File Edit Module
«
Reply #5 on:
May 08, 2008, 09:33:28 AM »
not support xml edit files ?
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4749
Re: File Edit Module
«
Reply #6 on:
June 20, 2008, 04:17:47 PM »
Hello,
the Module appears in admin-tool, but I can't use it.
Is there any record, how to get it work in 2.7
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
Re: File Edit Module
«
Reply #7 on:
June 20, 2008, 06:57:17 PM »
Hello,
admin tools needs to take care that there are two different locations depending on the WB version used. Simply have a look on the admin tools listed on the addons repository, they are updated to work withe WB 2.7 and 2.6.x. The most important change is:
Code:
<?php
// create admin object depending on platform (admin tools were moved out of settings with WB 2.7)
if(
file_exists
(
ADMIN_PATH
.
'/admintools/tool.php'
)) {
// since WebsiteBaker 2.7
$admin
= new
admin
(
'admintools'
,
'admintools'
);
} else {
// WebsiteBaker prior to 2.7
$admin
= new
admin
(
'Settings'
,
'settings_advanced'
);
}
?>
Depending on the coding quality of the module, there might be other parts which needs to be modified (e.g. links to admin tool folder etc.).
Christian
«
Last Edit: June 20, 2008, 06:58:55 PM by doc
»
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4749
Re: File Edit Module
«
Reply #8 on:
June 21, 2008, 09:31:29 PM »
Thanks Doc,
but I really didn't get it
Is there no one who adapted this code snippet/module for 2.7 ?
Best regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
iti
Offline
Posts: 31
Re: File Edit Module
«
Reply #9 on:
July 03, 2008, 05:30:05 PM »
this one works on 2.7
cheers
Logged
doc
Guest
Re: File Edit Module
«
Reply #10 on:
July 11, 2009, 06:53:39 AM »
Hi,
if you are searching for a admin tool to edit text files such as HTML, CSS, JS, XML, PHP files or to do small modifications on images of Addon Files (such als modules, templates or languages),
Addon File Editor
may be what you are searching for. The latest version of Addon File Edior can always be found on the
Addon repository
.
Regards Doc
Logged
markywatts
Offline
Posts: 27
Re: File Edit Module
«
Reply #11 on:
July 17, 2009, 08:30:36 AM »
Hi,
Thanks for the addon, can it be change so that you can only edit in a certain folder; likes files in the media directory. I need a customer to be able to edit txt and xml files but not template files!
Thanks
Marky
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...