Help with a File Uploader and editor

I’ll premise this by saying I’m a network/systems administrator by trade, not a web designer.

I’m doing some web design for a client I’ve worked with for over a decade now, and I need some help. I’m trying to create a password created area with links to something like TinyMCE and a php file uploader. I’ve set an area with a user/password tied to a mysql database and that works great.

What I’m looking for is a file editor that can edit a single file that’s on the website from behind the admin area.

Example:

Domain.com/Admin/editor.php brings up a WYSIWYG editor that edits Domain.com/specials.html/php/whatever by default. No selecting a file or anything

(the people this is for are relatively computer illiterate. I had given them step by step directions + a video on how to edit the file + upload any new lists and they managed to break the entire site (I don’t know how).

And for the file uploader:

Domain.com/Admin/upload.php would have a simple uploader that would upload to Domain.com/static/ . If at all possible I’d like to make it only allow .pdf’s to be uploaded.

If you guys could throw me in the right direction I’d totally appreciate it. I can figure out most of the main site myself (or through google if I need it.) I tried ckeditor and ckuploader, but all I can find in the examples is to edit a file where you place it inline with what you want to edit which isn’t what I need.

Thanks!

Well, how I do it is use the database.

So, the not-computer-savy user simply types in an TinyMCE and that data is stored directly into the database when the press UPDATE button. Then, the site pulls the text when it displays the specials.

The Specials.Html opens the database and pulls the text into a variable. In the Specials.html page where you normally have the text for the specials, then you just print the variable. Easy. And, since the TinyMCE allows for customization, you can limit the buttons to the normal ones the user would need such as font size, color, bold, italics, etc…

Hope that idea helps. Not sure if that is what you were asking for… Good luck…

Sponsor our Newsletter | Privacy Policy | Terms of Service