hi builders
plz help me out

i want to use htmlarea in my phpnuke site. i downlaoded it and put it in my website and then test teh core.html file for testing purposes and all was fine. now the installation instructions says that i have to add the javascript code to the head and /head of the webpage that i want to have this wysiwyg editor installed. i want to have this htmlarea editor on my New Stroy page in admin menu in phpnuke. i just dont know which file i have to edit to add teh java code so that it appeares in teh New Stroy page.

plz plz plz help me

    a) Make a copy of the header file (e.g. [user@machine /path/to/nuke/]# ; cp header.php htmlarea_header.php
    b) insert the code below in your new header file before the following line:

    echo "\n\n\n</head>\n\n";

    somewhere around the first 50 line of the file:

            echo "    <script type=\"text/javascript\">\n";
            echo "        _editor_url=\"/htmlarea/\";\n";
            echo "        _editor_lang=\"en\";\n";
            echo "    </script>\n\n";
            echo "    <script type=\"text/javascript\" src=\"/htmlarea/htmlarea.js\"></script>\n\n";
            echo "    <script type=\"text/javascript\" defer=\"1\">\n";
            echo "        HTMLArea.replaceAll();\n";
            echo "    </script>\n\n";
    

    c) Check so the paths are ok.
    d) Change the header.php include in the news index file (e.g. [user@machine /path/to/nuke/modules/News/admin/]# vi/vim/edit/whatever index.php)
    e) Search for 'function adminStory'
    f) A few lines below the function start, replace the include file 'header.php' with your new 'htmlarea_header.php'
    g) Save all and reload your browser.

    Now, I suppose you are aware of that nuke already has a built in wysiwyg editor you can switch on and off in the config file.

    good luck
    /j.

      Write a Reply...