Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Does anyone know how to make code online editable?

Asked Modified Viewed 8,203 times
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
asked
Fusioneer

I have this webhost that has an online editor available for all files, via a file browser.

Since I have other hosts that lack this "feature" I am curious as to how one would go about making this possible, not necessarily only for PHPFusion, but since I need it for a PHPFusion site, well, any one got any ideas?

I need it for online editing of the language files, many small changes, many small updates, and I really do not see the need to neither change host, nor be connected via ftp every time I stumble over a small change I want to do. I realize this may potentially be a security issue, but it all comes down to me willing to have it, and the security I am willing to implement via, say .htaccess.

I imagine this could work as Geshi or something in a folder that reads files in predefined folder and present their content. Access to the script could easily be accomplished vi htaccess, as mentioned.

COME ON, YOU BRILLIANT FUSIONEERS! B)
0 replies

20 posts

S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

One of the Danish users have made a "My File Edit" - that does the things you are requesting. You can DL it from here:

http://myphp.dk/infusions/my_opslag/s.../start.php

Click on "Gratis download" and "My File Edit".
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Looking at it, wow that was fast!
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Quote

Homdax wrote:

Looking at it, wow that was fast!


I d/l'ed this myself and installed it on my Fusion Mod support site. This works really really GREAT!!!

I have converted all Danish text/wording to English if any of you English admins are interested in trying/using it. I also changed the 'openside' to 'opentable' in 'startedit.php' because the file opens a center panel and 'openside' as a center panel just will not work correctly on my theme. You can download the zip file from here:

www.whisperwillow.com/my_file_edit.zip
Edited by Grimloch on 16-02-2012 15:13,
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

I will try to code in localization during the weekend. I hate danish :P
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Quote

Homdax wrote:

I will try to code in localization during the weekend. I hate danish :P


I hope you don't mind; I went ahead and did localization on this mod and re-did it as an infusion. The d/l link in my previous post has been updated.

P.S. For all you admins out there: This is an EXTREMELY USEFUL mod!

:D
Edited by Grimloch on 16-02-2012 15:09,
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

No problem, that is great!

I think there is a setting for which files to be editable in some of them. Goes by file extension?
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Im thinking... What about to keep the original name for this ?

If it was me that was the original author then I would be a bit "sad" when others have changed the name of my work.

Just a thought - because it's not me that are the original author. If it was I would ask you to keep the original name..
0 replies
T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

not really smoke. Its not really any different for pimped fusion.... I get what your saying. people should be courteous enough to ask although they do NOT have to. in a way its nice not to have 20 infusions with rediculous version numbers.
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Quote

smokeman wrote:

Im thinking... What about to keep the original name for this ?

If it was me that was the original author then I would be a bit "sad" when others have changed the name of my work.

Just a thought - because it's not me that are the original author. If it was I would ask you to keep the original name..


There ya go Smoke; infusion storage directory name changed to the original authors name for the mod.

Editable extensions added: HTM, HTML, XML, PHP, TXT, CSS, JS
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Quote

If it was me that was the original author then I would be a bit "sad" when others have changed the name of my work.


Credits must be given and correctly. That is always a must in the GPL/AGPL world. But I have to admit that the original author did not comply with PHPFusion Credits in the first place.

Anyhow, fixed (I assume) nolonger an issue.
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Full credits properly implemented, agpl.txt now included and complete and proper infusion structure observed.

my_file_edit.zip updated on my server; see link in previous post.

B)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Implemented. Could do with some visual improvements, but works well enough.

Error in PHPFusion log:
fread(): Length parameter must be greater than 0 Row: 47
edit_file.php

Swedish.php:

<?php
$locale['mfe_title'] = "Live Kod Redigerare";
$locale['mfe_desc'] = "Superadmin - Redigera kod online";
$locale['mfe_link'] = "Live Kod Redigerare";

// startedit.php
$locale['mfe_001'] = "Kod redigerare: Välj fil eller mapp";

// show_file_menu.php
$locale['mfe_005'] = "Redigera fil";
$locale['mfe_006'] = "Radera fil";

// add_file.php
$locale['mfe_010'] = "Spara i mapp:&nbsp;&nbsp;&nbsp;&nbsp;";
$locale['mfe_011'] = "Välj filen: ";
$locale['mfe_012'] = "Ladda upp";
$locale['mfe_013'] = "Avbryt";

// delete_file.php
$locale['mfe_020'] = "Fil ";
$locale['mfe_021'] = " är raderad";
$locale['mfe_022'] = "FEL!: Filen ";
$locale['mfe_023'] = " kunde inte raderas";

// edit_file.php
$locale['mfe_030'] = "Spara";
$locale['mfe_031'] = "Avbryt";
$locale['mfe_032'] = "FEL!: Kan inte hitta filen";

// save_file.php
$locale['mfe_040'] = "Filen blev sparad";
$locale['mfe_041'] = "FEL!: Filen blev inte sparad ";

// tjek(checkout)_file.php
$locale['mfe_050'] = "Filer av denna typ ";
$locale['mfe_051'] = " får inte laddas upp";
$locale['mfe_052'] = "Fil ";
$locale['mfe_053'] = " finns redan, kan inte ladda upp";
$locale['mfe_054'] = "FEL!";
$locale['mfe_055'] = "Fortsätt uppladdning";

// upload_file.php
$locale['mfe_060'] = "FEL!: Du måste välja en fil";
$locale['mfe_061'] = "Filen är för stor";
$locale['mfe_062'] = "Filtyp ";
$locale['mfe_063'] = " är inte tillåten";
$locale['mfe_064'] = "Fil ";
$locale['mfe_065'] = " har nu sparats i ";
$locale['mfe_066'] = "Ej sparad: okänt fel";
$locale['mfe_067'] = "FEL!: Filnamnet ";
$locale['mfe_068'] = " finns redan. Radera eller ändra innan du laddar upp ny";
$locale['mfe_069'] = "FEL!: Du måste välja en fil";

// show_folder.php
$locale['mfe_100'] = "Navigation:&nbsp;&nbsp;&nbsp;&nbsp;";
$locale['mfe_101'] = "&nbsp;Vänster Panel: Filer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Höger Panel: Mappar&nbsp;";
$locale['mfe_102'] = "Ladda upp en fil till angiven mapp";

?>


Swedish support thread:
http://www.php-fusion.se/forum/viewth...ad_id=2124
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

I've never seen an error in the log... as for visual improvements, you shoulda' seen it BEFORE I made the improvements I did ! LOL

Thanks for the Swedish locale.

B)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Yeah, well nothing to take too seriously I guess. Ur Welcome. Could this be submitted as an AddOn so we have some reference location?
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

Quote

Homdax wrote:

Could this be submitted as an AddOn so we have some reference location?


I just submitted this as an addon Richard... B)
0 replies
— 2 months later —
E
egonbj
E
egonbj 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

I have made some changes, layout and the possibility to add folders.
Can be downloaded at
http://myphp.dk/infusions/my_opslag/s.../start.php
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

I've downloaded, uploaded and infused this most recent version of the online file editor but it is not working in that when clicking on the testfile.txt file, nothing happens. No little window opens that asks if I want to edit the file. What am doing wrong?
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Great job egon, will see if I can test it a bit and get back, afoster....kinda busy :P

Anyone else for having a peek, it is a very useful thing to have, secured.
0 replies
G
ginny
G
ginny 10
  • Member, joined since
  • Contributed 80 posts on the community forums.
  • Started 31 threads in the forums
answered
Member

WOW, this looks great. I believe it is just what I need. Thanks for the translation my Danish stinks.

ginny:D
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 20 posts
  • Votes 0 votes
  • Topic users 7 members

7 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
G
G
ginny 10
  • Member, joined since
  • Contributed 80 posts on the community forums.
  • Started 31 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
E
E
egonbj 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
T
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet