TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 201
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 130
  • Total: 130

I need help, desperately...

Started by Jpg, November 18, 2006, 01:37:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jpg

Hey everyone...I need help...
You see I have another admin on my site and he thought there was a problem with the index.php and like a moron he replaced it with the index.php~ and deleted the original.
Now I can't get to my forum's shop,arcade, gallery,etc.
But now I'm stuck without a way to edit the files on the server...I tried using net2ftp but the php editor is the dumbest thing alive, all the code is on one line...
Is there any way I can edit the index.php from the admin panel, etc?
I know I can save it and then edit it but is there a way I can edit it online so I can do it faster is what I meant to say...

Thurnok

There is nothing in place that I'm aware of that will let you edit the index.php file via either SMF or TP.

Do you not have SSH access or FTP access to your site now?  If you have SSH access, download WinSCP and use it, if you only have FTP access then download FileZilla and use it.

As far as editing a file directly on the server (by faster I assume you are trying not to download, edit, upload), the only way is either via Telnet or SSH protocols and using an editor that exists on the server (like vi or another shell based editor for *nix servers).
Thurnok
The one, the only!

Jpg

Hmmm...
I see...there should be something like how you edit the themes on SMF, perhaps allowing you only to enter that area if you have the server password...
Just an idea, but now I have to edit the file directly using a php editor because there's no way to do it manually just by editing. = \

Thurnok

Technically, that's not editing directly on the server.  That downloads the file to your browser as part of the page.  When you are done editing it (locally) then you would have to click some sort of submit button and have the "now edited" file uploaded back in place overwriting the existing one.

In that respect, the same result is achieved with WinSCP or FileZilla by selecting the file on the server side and selecting EDIT.  It automatically transfers the file to a temporary location locally, and launches its internal editor or external one you specify.  So if you meant "more convenient" when you said faster, then this would provide the same result.
Thurnok
The one, the only!

Jpg

Thanks alot man!
I'll try that out, I never even knew Filezilla could do that... = )

Lesmond

Quote from: Jpg on November 18, 2006, 01:37:02 AM
Hey everyone...I need help...
You see I have another admin on my site and he thought there was a problem with the index.php and like a moron he replaced it with the index.php~ and deleted the original.
Now I can't get to my forum's shop,arcade, gallery,etc.
But now I'm stuck without a way to edit the files on the server...I tried using net2ftp but the php editor is the dumbest thing alive, all the code is on one line...
Is there any way I can edit the index.php from the admin panel, etc?
I know I can save it and then edit it but is there a way I can edit it online so I can do it faster is what I meant to say...

Did this other admin have access to your FTP account? and if so do you have a backup of your index.php? could you not replace it with that file?
Its just the way I read your original post :idiot2:
Just my two cents worth anyway

rbh

Quote from: Jpg on November 18, 2006, 02:18:45 AM
Thanks alot man!
I'll try that out, I never even knew Filezilla could do that... = )

oh yeah, filezilla is a marvelous app! you can edit image files and pdf files like that as well. choose edit/settings/ then scroll down to file viewing/editing to set file associations with apps.

This website is proudly hosted on Crocweb Cloud Website Hosting.