Start
Help
Forum
Addons
Project
Welcome,
Guest
. Please
login
or
register
.
July 05, 2009, 03:04:25 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
You wanna join the Website Baker team?
For more Informations read
here
or on our
Startpage
.
85291
Posts in
13125
Topics by
8214
Members
Latest Member:
Nebz
Website Baker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
File Edit Module
Pages:
[
1
]
Author
Topic: File Edit Module (Read 3208 times)
kiwipete
Pending Apprentice Baker
Offline
Posts: 7
File Edit Module
«
on:
August 08, 2007, 12:30:04 AM »
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 Website Baker, 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 Website Baker.
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
A Baker's Baker
Offline
Posts: 2979
Never mind, love it, change it or leave it.
Re: File Edit Module
«
Reply #1 on:
August 08, 2007, 07: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
Master Baker
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
"All I Do Is Bake" Baker
Offline
Posts: 985
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
www.argosmedia.nl
WB sites: vitiligo.nl, vanbetuwgrafischontwerp.nl, pauladudok.nl,ksi-advies.nl, maycroft.com, bakker-schilder.nl, bruschke.nl, bereikbaarheid.nl, nvpit.nl, kerncompany.nl, wijnenspijs.nl, almerehuren.nl
Boudi
Master Baker
Offline
Posts: 341
//o_-\\
Re: File Edit Module
«
Reply #4 on:
April 23, 2008, 05:52:30 PM »
For me this is a standard addon in every WB! Great stuf! ThnQ.
Sincerely,
Knert
Logged
...:: Bake the Unbakable ::...
davematt
Pending Apprentice Baker
Offline
Posts: 23
Re: File Edit Module
«
Reply #5 on:
May 08, 2008, 10:33:28 AM »
not support xml edit files ?
Logged
Stefek
Backend Theme Team
A Baker's Baker
Offline
Posts: 2101
Friedenspfeife rumgereicht
Re: File Edit Module
«
Reply #6 on:
June 20, 2008, 05: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
WebsiteBaker CMS
the best things in life are simple
.:.
Bowling in
Kiel
,
Halle
und
Aschaffenburg
doc
A Baker's Baker
Offline
Posts: 2979
Never mind, love it, change it or leave it.
Re: File Edit Module
«
Reply #7 on:
June 20, 2008, 07: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 Website Baker 2.7
$admin
= new
admin
(
'admintools'
,
'admintools'
);
} else {
// Website Baker 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, 07:58:55 PM by doc
»
Logged
Stefek
Backend Theme Team
A Baker's Baker
Offline
Posts: 2101
Friedenspfeife rumgereicht
Re: File Edit Module
«
Reply #8 on:
June 21, 2008, 10: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
WebsiteBaker CMS
the best things in life are simple
.:.
Bowling in
Kiel
,
Halle
und
Aschaffenburg
iti
Pending Apprentice Baker
Offline
Posts: 31
Re: File Edit Module
«
Reply #9 on:
July 03, 2008, 06:30:05 PM »
this one works on 2.7
cheers
Logged
Pages:
[
1
]
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
===> Security Announcements
=> Guest Area and Off-Topic
=> Website Showcase
-----------------------------
English
-----------------------------
=> Help/Support
===> Help/Support of WB2.7.x core
=> Website Baker Development
===> Website Baker 3
=> Documentation
=> Templates
=> Modules
===> Code Snippets
=> Languages
=> Archive
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
===> Templates, Module & Co.
===> Hilfe/Support von WB2.7.x core
=> Diskussion über WB
===> jQuery
=> Off-Topic
=> Archiv
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Help / Support
===> WB Core
===> Templates, Modules & Languages
=> WB Discussie
=> Niet-Terzake (Off Topic)
-----------------------------
French
-----------------------------
=> Help/Support
-----------------------------
Italian
-----------------------------
=> Help/Support
Loading...