I use Postnuke on several homepages for over a year now and tested several tools to maintain my homepage without FTP, and also started implementing a new WYSIWYG editor into Postnuke (this is not done yet, but I still work on it). I'd like to share my experience with you and read about your solutions in this thread. This could also be a good start for new Postnuke users, who just start to build their Postnuke installations.
MAINTAINING POSTNUKE WITHOUT FTP:
1.) get yourself a copy of PHPFM (http://phpfm.zalon.dk/) and save it somewhere on your hard disk - you will need your copy in more than one spot.
2.) First of all, edit your PHPFM installation, choose a strong username and password
3.) change the file path of PHPFM to your "images" folder (or some subfolder perhaps...) and allow file creation, deletion, update, folder create. Also, don't forget to CHMOD on files in your "images" folder, or your subfolder, so that you won't get ugly error codes.
4.) Upload your PHPFM installation to a save place on your webserver (you can also rename the default PHPFM folder name to something else like "aGlimpse" or whatever) where nobody would search (somewhere below your "docs" or "images" folder), and
5.) Navigate to your installation with your favorite webbrowser, login and voila! - do some tests to see if all settings where correct, and that's it!
Now, repeat steps 2-5 for each folder that you'd like to maintain by web. My reason for using several installations instead of only ONE INSTALLATION:
a hacker could somehow break into your PHPFM system and lets say delete all of your files ... living without images in some images sub-folder would be fine, but without an entire Postnuke installation?!
My favorite additional installations: "downloads","modules", "themes" - I'm not a Linux Guru, so I don't know how to protect already existing folders and files in your "themes" and "modules" installation, but it would be interesting to see how to allow folder and file creation without permitting changes to the earlier through FTP installed themes and modules.
If all of your installations are done, you can start managing your site files from all over the world, without having the need to install a FTP client, contact your network admin, ...
BASIC SETUP TO USE HTMLAREA IN POSTNUKE
I gave this one a try, and it only works on pnHTML textareas, others are hardcoded and can't be modified ... perhaps this one will work with future releases of Postnuke:
I'd stick to htmlArea 2.03, because 3.0 beta would be harder to customize for Postnuke - perhaps one of you already managed to rewrite it?
So lets start:
1.) Get the modified version of htmlArea 2.03 from
http://www.interactivetools.com/forum/gforum.cgi?post=6057
(rewritten in PHP)
2.) Now modify config.inc.php, alter paths and change settings to your needs.
3.) Upload everything to "javascript/htmlarea" on your webserver
4.) Retrieve header.php from your Postnuke installation, back it up and open the original and find:
Code
echo "<!--Visual Editor Plug-in-->"
."<script type=\"text/javascript\">QBPATH='".$pnWSEditorPath."/javascript'; VISUAL=0; SECURE=1;</script>"
."<script type=\"text/javascript\" src='".$pnWSEditorPath."/javascript/quickbuild.js'></script>"
."<script type=\"text/javascript\" src='".$pnWSEditorPath."/javascript/tabedit.js'></script>";
."<script type=\"text/javascript\">QBPATH='".$pnWSEditorPath."/javascript'; VISUAL=0; SECURE=1;</script>"
."<script type=\"text/javascript\" src='".$pnWSEditorPath."/javascript/quickbuild.js'></script>"
."<script type=\"text/javascript\" src='".$pnWSEditorPath."/javascript/tabedit.js'></script>";
and replace this with:
Code
echo "<script language=\"Javascript1.2\" src=\"javascript/htmlarea/editor.js\"></script>"
."<script>_editor_url = \"javascript/htmlarea/\";</script>";
."<script>_editor_url = \"javascript/htmlarea/\";</script>";
5.) Now to the harder part:
retrieve "includes/pnHTML.php", backup and open it, look for "FormTextArea" and alter this
Code
.'</textarea>'
to
Code
.'</textarea>'
.'<script language=\"Javascript 1.2\">editor_generate(\"'.pnVarPrepForDisplay($fieldname).'\")</script>'
.'<script language=\"Javascript 1.2\">editor_generate(\"'.pnVarPrepForDisplay($fieldname).'\")</script>'
I'll try to find a WYSIWYG editor which doesn't need known names or ids; if you find any, please let me know!
Hope to see your ideas and comments in this thread!
Sascha
