nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with install nukeWYSIWYG (tm) 1.0
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeWYSIWYG (tm)
View previous topic :: View next topic  
Author Message
mmxx
Newbie
Newbie


Joined: Feb 17, 2006
Posts: 3

PostPosted: Tue Feb 21, 2006 3:09 am    Post subject: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

Hi,
I have problem with put nukeWYSIWYG (tm) 1.0 in my site "PHP Nuke 7.9 patch 3.1". I worked with instruction from mainfile.txt , config.txt and index.txt. When I put in my site this instruction I have blank page !

This is my code how I put in my mainfile.php

Code:


function check_html ($str, $strip="") {
   /* The core of this code has been lifted from phpslash */
   /* which is licenced under the GPL. */
   include("config.php");
   if ($strip == "nohtml")
       global $AllowableHTML;
       if (!is_array($AllowableHTML)) $AllowableHTML =array('');
   $str = stripslashes($str);
   $str = eregi_replace("<[[:space:]]*([^>]*)[[:space:]]*>",'<\\1>', $str);
   // Delete all spaces from html tags .
   $str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
   // Delete all attribs from Anchor, except an href, double quoted.
   $str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", '', $str);
   // Delete all img tags
   $str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
   // Delete javascript code from a href tags -- Zhen-Xjell @ http://nukecops.com
   $tmp = "";
   while (ereg("<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>",$str,$reg)) {
      $i = strpos($str,$reg[0]);
      $l = strlen($reg[0]);
      if ($reg[1][0] == "/") $tag = strtolower(substr($reg[1],1));
      else $tag = strtolower($reg[1]);
      if ($a = $AllowableHTML[$tag])
      if ($reg[1][0] == "/") $tag = "</$tag>";
      elseif (($a == 1) || (empty($reg[2]))) $tag = "<$tag>";
      else {
         # Place here the double quote fix function.
         $attrb_list=delQuotes($reg[2]);
         // A VER
         $attrb_list = str_replace("&","&amp;",$attrb_list);
         $tag = "<$tag" . $attrb_list . ">";
      } # Attribs in tag allowed
      else $tag = "";
      $tmp .= substr($str,0,$i) . $tag;
      $str = substr($str,$i+$l);
   }
   $str = $tmp . $str;
   return $str;
   exit;
   /* Squash PHP tags unconditionally */
   $str = str_replace("<?","",$str);
   return $str;
}

function filter_text($Message, $strip="") {
   global $EditedMessage;
   check_words($Message);
   $EditedMessage=check_html($EditedMessage, $strip);
   return $EditedMessage;
}

function filter($what, $strip="", $save="", $type="") {
   if ($strip == "nohtml") {
      $what = check_html($what, $strip);
      $what = htmlentities(trim($what), ENT_QUOTES);
      // If the variable $what doesn't comes from a preview screen should be converted
      if ($type != "preview" AND $save != 1) {
         $what = html_entity_decode($what, ENT_QUOTES);
      }
   }
   if ($save == 1) {
      $what = check_words($what);
      $what = check_html($what, $strip);
      $what = addslashes($what);
   } else {
      $what = stripslashes(FixQuotes($what));
      $what = check_words($what);
      $what = check_html($what, $strip);
   }
   return($what);
}

###############################################################################
#
# nukeWYSIWYG Copyright (c) 2005 Kevin Guske            http://nukeseo.com
# kses developed by Ulf Harnhammar                      http://kses.sf.net
# kses enhancement ideas contributed by sixonetonoffun  http://netflake.com
# FCKeditor by Frederico Caldeira Knabben               http://fckeditor.net
# Original FCKeditor for PHP-Nuke by H.Theisen          http://phpnuker.de
#
###############################################################################
function check_html ($string, $allowed_html = "", $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'gopher', 'mailto'))
{
   $stop = FALSE;
   if(!function_exists(kses_no_null))
   {
      @include_once(INCLUDE_PATH."includes/kses/kses.php");
   }
   if (get_magic_quotes_gpc() == 1 )
   {
      $string = stripslashes($string );
   }
   $hotHtml = "nohtml";
   $Zstrip = stripos_clone($allowed_html, $hotHtml);
   if ($Zstrip === false)
   {
      global $AllowableHTML;
      $allowed_html = $AllowableHTML;
   } else {
      $allowed_html = array('<null>');
   }
   $string = kses_no_null($string);
   $string = kses_js_entities($string);
   $string = kses_normalize_entities($string);
   $string = kses_hook($string);
   $allowed_html_fixed = kses_array_lc($allowed_html);
   return kses_split($string, $allowed_html_fixed, $allowed_protocols);
}

function wysiwyg_textarea($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
   global $advanced_editor;
   # Don't waste bandwidth by loading WYSIWYG editor for crawlers
   if ($advanced_editor == 0 or !isset($_COOKIE))
   {
       echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
   } else {
   @include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
   $oFCKeditor = new FCKeditor($name) ;
   $oFCKheight = $rows * 20;
   $oFCKeditor->Height = "$oFCKheight";
   $oFCKeditor->ToolbarSet   = "$config" ;
   $oFCKeditor->InstanceName = "$name" ;
   $oFCKeditor->Value = "$value" ;
   $oFCKeditor->Create() ;   
   }
}

function wysiwyg_textarea_html($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
   global $advanced_editor;
   # Don't waste bandwidth by loading WYSIWYG editor for crawlers
   if ($advanced_editor == 0 or !isset($_COOKIE))
   {
       echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
   } else {
   @include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
   $oFCKeditor = new FCKeditor($name) ;
   $oFCKheight = $rows * 20;
   $oFCKeditor->Height = "$oFCKheight";
   $oFCKeditor->ToolbarSet   = "$config" ;
   $oFCKeditor->InstanceName = "$name" ;
   $oFCKeditor->Value = "$value" ;
   $wysiwygHTML = $oFCKeditor->CreateHtml() ;
   return $wysiwygHTML;
   }
}

/*********************************************************/
/* formatting stories                                    */
/*********************************************************/




If you have any corection in my mainfile.php pleas help !!!

----------------

And this is my code how I put in my config.php


Code:


$dbhost = "localhost";
$dbuname = "root";
$dbpass = "";
$dbname = "nuke79";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$nuke_editor = 0;
$display_errors = false;

/**********************************************************************/
/* You finished to configure the Database. Now you can change all     */
/* you want in the Administration Section.   To enter just launch     */
/* your web browser pointing it to http://xxxxxx.xxx/admin.php        */
/* (Change xxxxxx.xxx to your domain name, for example: phpnuke.org)  *
/*                                                                    */
/* Remember to go to Preferences section where you can configure your */
/* new site. In that menu you can change all you need to change.      */
/*                                                                    */
/* Congratulations! now you have an automated news portal!            */
/* Thanks for choose PHP-Nuke: The Future of the Web                  */
/**********************************************************************/

// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

$prefix = empty($user_prefix) ? $prefix : $user_prefix;
$reasons = array("As Is","Offtopic","Flamebait","Troll","Redundant","Insighful","Interesting","Informative","Funny","Overrated","Underrated");
$badreasons = 4;

###############################################################################
#
# nukeWYSIWYG Copyright (c) 2005 Kevin Guske            http://nukeseo.com
# kses developed by Ulf Harnhammar                      http://kses.sf.net
# kses enhancement ideas contributed by sixonetonoffun  http://netflake.com
# FCKeditor by Frederico Caldeira Knabben               http://fckeditor.net
# Original FCKeditor for PHP-Nuke by H.Theisen          http://phpnuker.de
#
###############################################################################
# To completely disable the WYSIWYG editor, set $advanced_editor = 0;
# You may also override the config.php setting by setting $advanced_editor in the module index.php
$advanced_editor = 1;
$AllowableHTML = array(
   "a" => array("href" => 1, "target" => 1, "title" => array("minlen" => 4, "maxlen" => 120)),
   "b" => array(),
   "blockquote" => array(),
   "br" => array(),
   "center" => array(),
   "div" => array("align" => 1),
   "em" => array(),
   "font" => array("face" => 1, "style" => 1, "color" => 1, "size" => array("minval" => 1, "maxval" => 7)),
   "h1"=>array(),
   "h2"=>array(),
   "h3"=>array(),
   "h4"=>array(),
   "h5"=>array(),
   "h6"=>array(),
   "hr" => array(),
   "i" => array(),
   "img" => array("alt" => 1, "src" => 1, "hspace" => 1, "vspace" => 1, "border" => 1, "align" => 1),
   "li" => array(),
   "ol" => array(),
   "p" => array("align" => 1),
   "pre" => array("align" => 1),
   "span" =>array("class" => 1, "style" => array("font-family" => 1, "color" => 1)),
   "strong" => array(),
   "table" => array("align" => 1, "border" => 1, "cell" => 1),
   "td" => array(),
   "tr" => array("align" => 1),
   "tt"=>array(),
   "u" => array(),
   "ul" => array(),
);

//***************************************************************


Pleas help, with corection !!!!
NukeWYSIWYG (tm) 1.0 it's great but in my site don't work !!!!!

Help !!!!!!! Mad Sad
  
Back to top
View user's profile Send private message
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Tue Feb 21, 2006 8:24 am    Post subject: Re: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

I haven't tested nukeWYSIWYG with anything higher than 7.6, since TinyMCE is already built in there.

However, usually when you get a blank page, something isn't parsing correctly. If your PHP display_errors is turned on (also a setting in newer versions of PHP-Nuke config.php), you can usually tell exactly where the error is.
  

Last edited by kguske on Tue Feb 21, 2006 11:57 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
mmxx






PostPosted: Tue Feb 21, 2006 9:04 am    Post subject: Re: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

Have you any chance test in PHP Nuke 7.9 downloaded from www.nukescripts.net ?
  
Back to top
kguske






PostPosted: Tue Feb 21, 2006 11:59 pm    Post subject: Re: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

I have not... but again, it sounds like a parsing error. Maybe something wasn't edited correctly? That happens to me all the time...
  
Back to top
mmxx






PostPosted: Mon Feb 27, 2006 1:38 am    Post subject: Re: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

Hi !
I need your sugestion.
How I can enabled FLASH files in to my news on Nuke 7.9 with patch 3.1 ?
  
Back to top
kguske






PostPosted: Sun Mar 26, 2006 8:38 am    Post subject: Re: Problem with install nukeWYSIWYG (tm) 1.0 Reply with quote

There are several subdirectories that need to be created in the /includes/FCKeditor/editor/filemanager/upload directory.

Create these directories (depending on the types of files you want to upload) there:

/File
/Flash
/Image
/Media

and make sure the permissions are set appropriately.

You can override this in your fckconfig.js file, but these will work with the default configuration.
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeWYSIWYG (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
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

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.11 Seconds