Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

HELPING HANDS (TOOLS) for Postnuke  Bottom

  • Fellow PN-developers and PN-users,

    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>";


    and replace this with:

    Code

    echo "<script language=\"Javascript1.2\" src=\"javascript/htmlarea/editor.js\"></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>'


    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
  • Sascha,

    HTMLarea 3.0 is being used for PN although i've still to incorporate the latest beta. With HTMLArea 3.0 you can add onload="HTMLArea.replaceAll()" to your body tag so that all textareas are transformed to htmlareas's. This may work under v2.03 (it may not as well) - i've not tried it.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • markwest

    Sascha,

    HTMLarea 3.0 is being used for PN although i've still to incorporate the latest beta. With HTMLArea 3.0 you can add onload="HTMLArea.replaceAll()" to your body tag so that all textareas are transformed to htmlareas's. This may work under v2.03 (it may not as well) - i've not tried it.

    -Mark


    Hi Mark,

    Any Idea where I could get a hold of this? I have been using rteMulti, but it does not seem to be under development anymore and can be a bit buggy!

    Any help is appreciated.

    Kindest regards
    Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Lobos



    Any Idea where I could get a hold of this? I have been using rteMulti, but it does not seem to be under development anymore and can be a bit buggy!

    Any help is appreciated.

    Kindest regards
    Lobos


    Hi Lobos,

    you can download htmlArea 3 beta from http://www.interacti….com/iforum/P15734/.
    I'll give it a try too!

    Sascha
  • Lobos,

    The download you've been pointed to. HTMLarea is a different entity entirely to retemulti. RTEmulti has more features - uploads etc. but is limited to IE browsers only. HTMLarea while not supporting uploads (at least in the version I have) is a cross browser solution.

    If you want something comparable to retemulti that is feature comparable then take a look at FCKEditor. This one has come up a number of times in my searches on this subject and is one i'm keeping an eye on as work is being done to work under other browsers.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Why you don't want to code this stuff with javascript an dhtml? It's possible.
  • This FCKEditor - has anybody made it work ? And if so with the same "replace.All"-method ?

    Would love to hear about it.

    Jacob from Denmark.
  • I have been trying to get this working on pn726 with no luck - i get no erors no WYWSIWYG at all.

    Has anyone tried this and found any probs?
    slipsy
  • Would this "official" htmlArea plug-in work with photoshare's insert image command? that would be a killer tool!
  • Hi Mark, is that with .8 or .726? If its only with .8, is it in the CVS vers?

    Thanks!
    Michael

    markwest

    Sascha,

    HTMLarea 3.0 is being used for PN although i've still to incorporate the latest beta. With HTMLArea 3.0 you can add onload="HTMLArea.replaceAll()" to your body tag so that all textareas are transformed to htmlareas's. This may work under v2.03 (it may not as well) - i've not tried it.

    -Mark
  • Quote

    If its only with .8, is it in the CVS vers?

    http://cvs.postnuke.com/viewcvs.cgi/PostNuke/Modules/Utility/Visual_Editor/

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • This FCKEditor - has anybody made it work now? That looks absolutely brilliant!
  • 0 users

This list is based on users active over the last 60 minutes.