User:
jessupx
Date:
2010-02-28 17:20:27
Direct Link
<< Back to Home
Hey Guys,
I've added the ability to directly edit the code for this message board. Log in, and you will see a button that says "Edit Code" there under actions.
Click it, and a text box with all of the code for this form will display. Since all the code is in one file, you can edit, add, change modify everything.
Edit the code in the textbox, click the "Save Code" button, and this will write your new code out to the file on the server. To see your update, click the "Refresh button, as this will load what you just saved to the server.
So like, i bet your worried that you will create a parse error and kill the page. For this, i built in some simple safeguards. There are now 4 pages:
- index.php - (this page) This is the main page.. When you click save here, it updates the main page.
- index2.php - Index 2 is a branched page that will allow you to play around. Use this when you don't want your changes on the live main page yet.
- index3.php - Recover index.php. This page will not be edited. It opens and saves out to index.php. If you kill index.php, load this page to restore index.php from a good working backup*.
- index4.php - Recover index2.php. This page will not be edited. It opens and saves out to index2.php. If you kill index2.php, load this page to restore index2.php from a good working backup*.
* Note that I said backup. There is no backup system. Basically, I would suggest that you cut-and-paste the contents of the file into a local text file before you start editing. This way you will have your own revisions.
Have fun!