Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help
Author Message
nukezero
New Member
New Member


Joined: Aug 19, 2006
Posts: 3

PostPosted: Sat Aug 19, 2006 9:39 pm Reply with quote

hello,
i have installed the nukeWYSIWYG add-on which i had downloaded from NukeSEO earlier today. i did everything the Read Me included expect steps 3 and 4. I noticed that it doesnt show in my News @ all, Where you add the new story. I was wondering why? I had seem in other posts on this site that it was suppossed to be fully intergrated already without coding into the index.php for news posting, yet i dont see it. And yes in my config.php it is set as $advanced_editor = 1; Im also on the newest patch 3.2B from ChatSERV downloaded VIA @ NukeResources.Com. I Have Also Implemented the mainfile edits aswell. My mainfile.php looks like this

Code:


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

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


So what was it i did wrong ?
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sun Aug 20, 2006 5:48 am Reply with quote

It's possible to turn off the editor by module.

Why did you skip steps 3 and 4?

There are changes both in the modules/submit_news and in the modules/news/admin index.php files. Did you change both of these?

Not sure I understand what you mean by "supposed to be fully integrated already". It is only pre-integrated with RavenNuke if you download use the experimental addon. It will be pre-integrated in the next release of RavenNuke.

If the only problem you're experiencing is that submit news doesn't show the wysiwyg editor, recheck the changes in the modules/submit_news/index.php file.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
nukezero
PostPosted: Sun Aug 20, 2006 1:16 pm Reply with quote

the problem is in my news module. i just want it to show for the admin to post bro.
 
nukezero
PostPosted: Sun Aug 20, 2006 1:23 pm Reply with quote

i tryed this and all i get is a white page now. this is in my news post when i try to goto News
 
kguske
PostPosted: Sun Aug 20, 2006 1:34 pm Reply with quote

Sounds like a parsing error. Try to bring up the file you changes by itself, and you'll likely see the line number of the parsing error.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©