PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
fernando22042
New Member
New Member


Joined: Aug 30, 2007
Posts: 5

PostPosted: Thu Oct 11, 2007 8:50 am Reply with quote Back to top

How can Install nukeWYSIWYG for phpnuke 8.1
or remove tinymce
Please I will thanks Raven forum for this
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Oct 15, 2007 6:30 am Reply with quote Back to top

<bump>

Has anyone done this? Can someone help?
View user's profile Send private message Visit poster's website
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Wed Sep 02, 2009 3:15 pm Reply with quote Back to top

I tried to remove tiny_mce first and later I installed the last version of nukeWYSIWYG but It didnt work. Poor explanation on how to install nukeWYSIWYG if you have another editor. I can try again but I need some help.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Sep 02, 2009 5:25 pm Reply with quote Back to top

Someone did this (removed TinyMCE), but I don't remember the details. I'll see if I can find them.

But you should be able to install it even if there is another editor. unicornio, what didn't work? Were there any error messages in your log? Could you verify if the JS was being loaded properly?
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Fri Sep 04, 2009 12:27 am Reply with quote Back to top

Yes! The error was that editor dissapear. I pasted all the codes on mainfile.php as u said. Can u please send me a guide on how to remove tiny_mce. Maybe I did something wrong. Thanks for your reply. U did a good job with that editor. I congratulate you.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Fri Sep 04, 2009 4:44 am Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!
is the post that talks about removing tinyMCE from javascript.php. Since it wasn't specific, I looked at an 8.0 version for details (8.1. should be similar).

But again, if you used the directions nukeWYSIWYG, that **should** override tinyMCE since it's replacing the textarea that tinyMCE overrides with an iframe before tinyMCE gets a chance to override it. Still, I haven't tested that, so I can't be sure.

Did you verify that the fckeditor JS was being loaded? If you send a link and have your Submit News module active and available, I can check.
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Sun Sep 06, 2009 4:21 am Reply with quote Back to top

This is the first time I see this post about removing tiny editor but this is what I did already some days ago but there are other places u need wchich u need to remove. I would like to have a detail explanation.

Open your ftp and click on inlcudes folder and open file javascript.php

Search for these codes and remove it

Code:
if (file_exists("themes/".$ThemeSel."/style/editor.css")) {
    $edtcss = "editor_css : \"themes/".$ThemeSel."/style/editor.css\",";
} else {
    $edtcss = "editor_css : \"includes/tiny_mce/themes/default/editor_ui.css\",";
}

if ($nuke_editor == 1) {
   if (is_admin($admin) AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
      echo "<tinyMCE>
         <script></script>
         <script>
            tinyMCE.init({
               mode : \"textareas\",
            theme : \"basic\",
            language : \"$lang\",
            $edtcss
            force_p_newlines: \"false\",
            force_br_newlines: \"true\"
            });
         </script>
         </tinyMCE>";
   } elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
      echo "<tinyMCE>
         <script></script>
         <script>
            tinyMCE.init({
               mode : \"textareas\",
            theme : \"default\",
            language : \"$lang\",
            $edtcss
            force_p_newlines: \"false\",
            force_br_newlines: \"true\"
            });
         </script>
         </tinyMCE>";
   }
}


What abour these codes? Should I remove it?

global $module, $name, $admin, $advanced_editor, $lang, $nuke_editor;
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sun Sep 06, 2009 8:22 am Reply with quote Back to top

I'll look into that, but what didn't work by following the instructions with nukeWYSIWYG(tm)?

So far, I haven't found any reasons why anything needs to be removed.

Summary:
- remove references to the JS in includes/javascript.php
- remove references to the CSS in includes/javascript.php
- remove references to the $nuke_editor variable

Since nukeWYSIWYG(tm) replaces the textarea that tinyMCE overrides with an iframe before tinyMCE gets a chance to override it, it isn't necessary to remove the tinyMCE JS. Still, I haven't tested that, so I can't be sure.

The CSS isn't necessary (i.e. yes, that should be removed), but it shouldn't hurt either.

The same is true for the $nuke_editor variable, but note that $advanced_editor is defined in the config instructions.

So again, what didn't work with the nukeWYSIWYG(tm) instructions?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sun Sep 06, 2009 9:12 am Reply with quote Back to top

I downloaded 8.1 from
Only registered users can see links on this board!
Get registered or login to the forums!
(not sure why, but if anyone else wants 8.1 without having to fork over $, it's there and other places).

You don't need to remove references to the $nuke_editor. This is an admin setting that controls whether or not the allowed HTML is displayed on the News comments, Submit News page, and Survey comments. If this is removed (or if the setting is set to no / 0), it will display the allowed HTML text, even though that doesn't apply when using the WYSIWYG editor.

Otherwise, the previous steps were accurate in removing tinyMCE from PHP-Nuke 8.1:

- remove this code from includes/javascript.php:
Code:
if (file_exists("themes/".$ThemeSel."/style/editor.css")) {
    $edtcss = "editor_css : \"themes/".$ThemeSel."/style/editor.css\",";
} else {
    $edtcss = "editor_css : \"includes/tiny_mce/themes/default/editor_ui.css\",";
}

if ($nuke_editor == 1) {
   if (is_admin($admin) AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
      echo "<tinyMCE>
         <script></script>
         <script>
            tinyMCE.init({
               mode : \"textareas\",
            theme : \"basic\",
            language : \"$lang\",
            $edtcss
            force_p_newlines: \"false\",
            force_br_newlines: \"true\"
            });
         </script>
         </tinyMCE>";
   } elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
      echo "<tinyMCE>
         <script></script>
         <script>
            tinyMCE.init({
               mode : \"textareas\",
            theme : \"default\",
            language : \"$lang\",
            $edtcss
            force_p_newlines: \"false\",
            force_br_newlines: \"true\"
            });
         </script>
         </tinyMCE>";
   }
}


Then, follow the instructions for installing nukeWYSIWYG(tm) with kses and FCKeditor.
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Thu Sep 10, 2009 12:20 am Reply with quote Back to top

I will do that buddy and later I will report any issue. Thanks for taking the time. I love when people are serios about phpnuke.

This is what I have on my javascript.

Code:
if (file_exists("themes/".$ThemeSel."/style/editor.css")) {
    $edtcss = "editor_css : \"themes/".$ThemeSel."/style/editor.css\",";
} else {
    $edtcss = "editor_css : \"includes/tiny_mce/themes/default/editor_ui.css\",";
}

if ($nuke_editor == 1) {
    if (is_admin($admin) AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
        echo "<!-- tinyMCE -->
            <script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
            <script language=\"javascript\" type=\"text/javascript\">
               tinyMCE.init({
                mode : \"textareas\",
                theme : \"advanced\",
//                language : \"$lang\",
                force_p_newlines: \"false\",
                force_br_newlines: \"true\",
   plugins : \"style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras\",
   theme_advanced_buttons1 : \"save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect\",
   theme_advanced_buttons2 : \"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor\",
   theme_advanced_buttons3 : \"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen\",
   theme_advanced_buttons4 : \"insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking\",
   theme_advanced_toolbar_location : \"top\",
   theme_advanced_toolbar_align : \"left\",
   theme_advanced_path_location : \"bottom\",
   extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\"
           //     $edtcss
                });
            </script>
            <!-- /tinyMCE -->";
    } elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
        echo "<!-- tinyMCE -->
            <script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
            <script language=\"javascript\" type=\"text/javascript\">
               tinyMCE.init({
                mode : \"textareas\",
                theme : \"advanced\",
             //   language : \"$lang\",
             //   $edtcss
                force_p_newlines: \"false\",
                force_br_newlines: \"true\",
   theme_advanced_buttons1 : \"bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink\",
   theme_advanced_buttons2 : \"\",
   theme_advanced_buttons3 : \"\",
   theme_advanced_toolbar_location : \"bottom\",
   theme_advanced_toolbar_align : \"center\",
   theme_advanced_path_location : \"\",
   extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\"
               });
            </script>
            <!-- /tinyMCE -->";
    }
}


Should I remove all these codes?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Thu Sep 10, 2009 4:21 am Reply with quote Back to top

Yes. That can be removed or commented out.
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Fri Sep 11, 2009 1:21 am Reply with quote Back to top

I am here again with more news. I guess you are not clear enough with your explanations. I will prove it now that u miss more steps on installing that editor for phpnuke 8.1

Let's see

Open your ftp where your config.php is
Open /public_html/admin/modules/ foldes

Search for and open blocks.php


Search for

Code:
   echo '</select>&nbsp;&nbsp;<font class="tiny">'._FILEINCLUDE.'</font></td></tr>'
      .'<tr><td>'._CONTENT.':</td><td>';
   //<textarea name=\"content\" cols=\"50\" rows=\"10\"></textarea>
   wysiwyg_textarea("content", "", "PHPNukeAdmin", "50", "10");
   echo '<br /><font class="tiny">'._IFRSSWARNING.'</font></td></tr>'
      .'<tr><td>'._POSITION.':</td><td><select name="bposition"><option value="l">'._LEFT.'</option>'
      .'<option value="c">'._CENTERUP.'</option>'
      .'<option value="d">'._CENTERDOWN.'</option>'
      .'<option value="r">'._RIGHT.'</option></select></td></tr>';
   if ($multilingual == 1) {
      echo '<tr><td>'._LANGUAGE.':</td><td>'
            .'<select name="blanguage">';
      $handle=opendir('language');
      $languageslist = '';
      while ($file = readdir($handle)) {
            if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
                $langFound = $matches[1];
                $languageslist .="$langFound ";
            }
      }


Replace with

Code:
      echo "</select>&nbsp;&nbsp;<font class=\"tiny\">"._FILEINCLUDE."</font></td></tr>"
      ."<tr><td>"._CONTENT.":</td><td>";
   wysiwyg_textarea("content", "", "PHPNukeAdmin", "50", "10");
      echo "<br><font class=\"tiny\">"._IFRSSWARNING."</font></td></tr>"
      ."<tr><td>"._POSITION.":</td><td><select name=\"bposition\"><option name=\"bposition\" value=\"l\">"._LEFT."</option>"
      ."<option name=\"bposition\" value=\"c\">"._CENTERUP."</option>"
      ."<option name=\"bposition\" value=\"d\">"._CENTERDOWN."</option>"
      ."<option name=\"bposition\" value=\"r\">"._RIGHT."</option></select></td></tr>";
      if ($multilingual == 1) {
         echo "<tr><td>"._LANGUAGE.":</td><td>"
         ."<select name=\"blanguage\">";
         $handle=opendir('language');
         $languageslist = "";
         while ($file = readdir($handle)) {
            if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
               $langFound = $matches[1];
               $languageslist .= "$langFound ";
            }
         }


Last edited by unicornio on Fri Sep 11, 2009 6:54 am; edited 1 time in total
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Fri Sep 11, 2009 10:07 am Reply with quote Back to top

I'm confused. The readme says how to add nukeWYSIWYG and identifies admin/blocks.php as one of the files that needs to be changed.

Were you expecting detailed instructions for the blocks.php file or for the instructions in the readme to be posted here?
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Tue Sep 29, 2009 1:44 pm Reply with quote Back to top

Hi kguske

Everything is working now and nukeWYSIWYG is installed succefully but I am having a blank page from Blogger module. Can u please tell me if I have to change something on that module?


Last edited by unicornio on Tue Sep 29, 2009 3:10 pm; edited 1 time in total
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Sep 29, 2009 2:10 pm Reply with quote Back to top

Blogger module? Do you mean Journal? Which page is blank - the module index or an admin page? Usually, blank pages are caused by parsing errors or security. You should be able to see parsing errors in the error log.
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Mon Nov 16, 2009 2:48 am Reply with quote Back to top

I will send you a pm on your site. It was a lot of work to change from one editor to another one. I love nukeWYSIWYG. It wasnt so difficult to remove and implement another editor on phpnuke 8.1. U need to use a decent editor and concentration on what you are doing otherwise you can mess it around. Thanks for your suggestion. Wink
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum