Now it works, thanks
It won't work with this version https://cutephp.com/click.php?cutenews_latest (downloadable from cutephp.com site)

Am I the only one who ran into this problem?

open core/modules/media.php (backup first, just in case)

search for this (lines 45-54):

    if ($nw == 0)
      {
          $resize = TRUE;
          $nw = $w * ($nh / $h);
      }
      elseif ($nh == 0)
      {
          $resize = TRUE;
          $nh = $h * ($nw / $w);
      }

change it to this :

    if ($nw <= 365)
      {
          $resize = TRUE;
          $nw = $w * ($nh / $h);
      }
      elseif ($nh <= 365)
      {
          $resize = TRUE;
          $nh = $h * ($nw / $w);
      }

I hope this helps. I'm not sure it's correct, haven't tested

I was doing clean cutenews 2.0 install and added ckfinder plugin - so here's result :
http://mv.viljandimaa.ee/addnews.png

If I delete or comment out these lines from cdata/plugins/ckfinder.php those lines, then ckeditor works, but have no ckfinder (of course):

    $add_opt['filebrowserBrowseUrl']        = $http_dir . "/ckfinder/ckfinder.html";
     $add_opt['filebrowserImageBrowseUrl']   = $http_dir . "/ckfinder/ckfinder.html?type=Images";
     $add_opt['filebrowserFlashBrowseUrl']   = $http_dir . "/ckfinder/ckfinder.html?type=Flash";
     $add_opt['filebrowserUploadUrl']        = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files";
     $add_opt['filebrowserImageUploadUrl']   = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files";
     $add_opt['filebrowserFlashUploadUrl']   = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash";

I have set all permissions correctly, is there anything more I should do/know
http://mv.viljandimaa.ee/permissions.png

Have you looked this topic : Add Facebook Comments to CuteNews

Maybe this gives you an idea  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

Maybe these posts would give you some idea  https://cutephp.com/forum/style_emoticons/default/sleep.gif
[HACK] Automatic Short Story
[HACK] Characters left in comments form

https://cutephp.com/cutenews/register/

With every purchased license you are allowed to remove the annoying "Powered by CuteNews..." line and your copy of the script will be authorized on the domain where the installation is located.

Open inc/shows.inc.php and find these lines (580-607) :

        $template_form = str_replace("{config_http_script_dir}", "$config_http_script_dir", $template_form);
    //----------------------------------
    // Check if the remember script exists
    //----------------------------------
    $CN_remember_include = '';
    $CN_remember_form = '';
    if(file_exists("$cutepath/remember.js")){
            $CN_remember_include = "<script type=\"text/javascript\" src=\"$config_http_script_dir/remember.js\"></script><script>CNreadCookie();</script>";
            $CN_remember_form = "onsubmit=\"return CNSubmitComment()\"";
    }


    $smilies_form = "n<script type=\"text/javascript\">
        //<![CDATA[
        function insertext(text){
        document.comment.commentsbox.value+=\" \"+ text;
        document.comment.commentsbox.focus();
        }
        //]]></script>
        <noscript>Your browser is not Javascript enable or you have turn it off. We recommend you to activate, otherwise you will have to enter the emoticons representations manually.
        </noscript>".insertSmilies('short', FALSE);

    $template_form = str_replace("{smilies}", $smilies_form, $template_form);

    echo"<form  $CN_remember_form  method=\"post\" name=\"comment\" id=\"comment\" action=\"\">".$template_form."<div><input type=\"hidden\" name=\"subaction\" value=\"addcomment\" /><input type=\"hidden\" name=\"ucat\" value=\"$ucat\" /><input type=\"hidden\" name=\"show\" value=\"$show\" />$user_post_query</div></form>
                    n $CN_remember_include";

}

Move this code after this :

//################################################################################
####################################
//                 Show Comments
//################################################################################
####################################
if($allow_comments){

That's what I wrote on my post.

At 1st make new directory inside cutnews’s data dir named upfiles

https://developers.facebook.com/docs/refere...ugins/comments/
Put in URL field :

http://example.com

Replace example.com with your sitename.

Customize other selections to your needs and click Get code.

HTML5
1. Include the first code to page where showing news, right after body tag.

2. Edit your news template

add into Add comment form box (in cutenews) the code which is in the second box.
For example:

<div class="fb-comments" data-href="http://www.example.com" data-num-posts="2" data-width="470"></div>

now change the link like this:

<div class="fb-comments" data-href="http://www.example.com/index.php?subaction=showfull&id={news-id}&archive=&start_from=&" data-num-posts="2" data-width="470"></div>

Done.

Hope this works  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

11

(1 replies, posted in Problem Solving / Help & Support)

Do a search, or look at hacks board...

Do you remember the name of this hack ?

Was it xfields hack ?
http://cvdtak.home.xs4all.nl/xfields_v2.1.htm
https://cutephp.com/cutenews/addons/xfields.zip

You could search from archive too:
http://web.archive.org/web/20070209063134/...dex.php?act=idx

Well done hanska, it works.  https://cutephp.com/forum/style_emoticons/default/smile.gif
You need to put
session_start();
at the top of config.php as stated in the note
Also you must set
$config_use_sessions = TRUE;
in line 18 of cutenews.index.php

Oops, sorry.
Forgot to add it here, thanks for pointing it.
I'll edited that post.

 echo "<script type="text/javascript">

needs to be replaced with

 echo "<script type=\"text/javascript\">


Yes indeed, seems that this forum removes \

Oh, btw I found old topic:

http://web.archive.org/web/20101028081009/...showtopic=35482

Made to work with sessions and specific username.

session_start();
function CheckAuthentication()
{
    // WARNING : DO NOT simply return "true". By doing so, you are allowing
    // "anyone" to upload and list the files in your server. You must implement
    // some kind of session validation here. Even something very simple as...

    // return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];

    // ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
    // user logs in your system. To be able to use session variables don't
    // forget to add session_start() at the top of this file.

if(isset($_SESSION['username']) && $_SESSION['username'] == "your username here"){
 return true;
 }else{
 return false;
 }
}

replace your username here

in index.php (cutenews dir) change :

$config_use_sessions = TRUE;

Dear hanska,

nice one. Thank you very much!

There is still one problem left (the same I had with my attempts): It's not secure to only set "return true;" because someone could open ckfinder directly without logging on to cutenews, to upload and (more important) to delete files and images:


Is there a way to pass cutenews authentication to ckfinder?

I deleted _samples directory in ckfinder, so users can't access to ckfinder demo's. And you can't acces to it through cutenews too if not logged in.

That should do it :
code removed, because not working.
I'm working on it.

Maybe FUN can tell us, how to check cookies/sessions ?

OK, here it comes. I haven't time for test it yet.
Requirements: [WYSIWYG] Using CKeditor instead of RTE, Replaces RTE by ckeditor and A copy of CKFinder from ckfinder.com

Before modifing any files, backup them first (addnews.mdu, editnews.mdu and images.mdu).

At 1st make new directory inside cutnews’s data dir named upfiles (where upimages dir is, you can copy all images from upimages to upfiles/images) and chmod it to be rewritable (ex. 777)

Open config.php from ckfinder’s directory.
1. Find:


 
function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...

// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];

// ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
// user logs in your system. To be able to use session variables don't
// forget to add session_start() at the top of this file.

return false;
}

Replace with:

function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...

// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];

// ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
// user logs in your system. To be able to use session variables don't
// forget to add session_start() at the top of this file.

return true;
}

2. Find:

ATTENTION: The trailing slash is required.
*/
$baseUrl = '/ckfinder/userfiles/';
/*


Replace with :

ATTENTION: The trailing slash is required.
*/
$baseUrl = 'http://www.yourdomain.com/path to cutenews/data/upfiles';
/*

3. Find:

 
ATTENTION: The trailing slash is required.
*/
$baseDir = resolveUrl($baseUrl);

/*


Replace with :

ATTENTION: The trailing slash is required.
*/
$baseDir = '/home/login/public_html/path to cutenews/data/upfiles ';

/*

close and save config.php
open addnews.mdu
1. Find :

if($use_wysiwyg){
    echo '
<script type=\"text/javascript\" src=\"path to ckeditor/ckeditor.js\"></script>
    ';


replace with - and be sure to replace " path to ckfinder " by "../ckfinder" or "cutenews/ckfinder":

if($use_wysiwyg){
    echo '
<script type=\"text/javascript\" src=\" path to ckeditor /ckeditor.js\"></script>
<script type=\"text/javascript\" src=\" path to ckfinder /ckfinder.js\"></script>
    ';


2. Find:

echo '<textarea rows=\"12\" cols=\"74\" id=\"full_story\" name=\"full_story\" tabindex=5></textarea>';

if($use_wysiwyg){
    
    $showsmilies = explode(',', $config_smilies);
    foreach($showsmilies as $showsmile){
        $showsmile = trim($showsmile);
        $showsmiliesdecriptions .= "'".$showsmile."', ";
        $showsmiliesoutput .= "'".$showsmile.".gif', ";
    }
    echo "<script type=\"text/javascript\">
    //<![CDATA[
    (function()
    {
        var settings = {
            customConfig: '',
            entities_latin: false,
            entities_greek: false,
            toolbar: [
                    ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
                    ['Link','Unlink','Anchor'],
                    '/',
                    ['Format','FontSize','TextColor','BGColor'],
                    ['Bold','Italic','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            smiley_path: '".$config_http_script_dir."/data/emoticons/',
            smiley_images: [".$showsmiliesoutput."],
            smiley_descriptions: [".$showsmiliesdecriptions."]
        };
        CKEDITOR.replace ('short_story', settings);
        CKEDITOR.replace ('full_story', settings);
    })();
    //]]>
    </script>";
}


replace with:

echo '<textarea rows=\"12\" cols=\"74\" id=\"full_story\" name=\"full_story\" tabindex=5></textarea>
';

if($use_wysiwyg){
    
    $showsmilies = explode(',', $config_smilies);
    foreach($showsmilies as $showsmile){
        $showsmile = trim($showsmile);
        $showsmiliesdecriptions .= "'".$showsmile."', ";
        $showsmiliesoutput .= "'".$showsmile.".gif', ";
    }
    echo "
<script type=\"text/javascript\">
    //<![CDATA[
    (function()
    {
        var settings = {
            customConfig: '',
            entities_latin: false,
            entities_greek: false,
            toolbar: [
                    ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
                    ['Link','Unlink','Anchor'],
                    '/',
                    ['Format','FontSize','TextColor','BGColor'],
                    ['Bold','Italic','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            smiley_path: '".$config_http_script_dir."/data/emoticons/',
            smiley_images: [".$showsmiliesoutput."],
            smiley_descriptions: [".$showsmiliesdecriptions."]
        };

var editor_short = CKEDITOR.replace('short_story', settings);
editor_short.setData( '' );
CKFinder.setupCKEditor( editor_short, '../ckfinder/' );

var editor_full = CKEDITOR.replace('full_story', settings);
editor_full.setData( '' );
CKFinder.setupCKEditor( editor_full, '../ckfinder/' );
    })();
    //]]>
    </script>

";
}

save and close addnews.mdu

open editnews.mdu
1. Find:

if($use_wysiwyg){
    echo '
<script type=\"text/javascript\" src=\"path to ckeditor/ckeditor.js\"></script>
    ';
}

replace with - and be sure to replace " path to ckfinder " by "../ckfinder" or "cutenews/ckfinder":

if($use_wysiwyg){
    echo '
<script type=\"text/javascript\" src=\" path to ckeditor /ckeditor.js\"></script>
<script type=\"text/javascript\" src=\" path to ckfinder /ckfinder.js\"></script>
    ';


2. Find:

echo "<textarea rows=\"12\" cols=\"74\" id=\"full_story\" name=\"full_story\" tabindex=4>$item_db[4]</textarea>";

if($use_wysiwyg){
    
    $showsmilies = explode(',', $config_smilies);
    foreach($showsmilies as $showsmile){
        $showsmile = trim($showsmile);
        $showsmiliesdecriptions .= "'".$showsmile."', ";
        $showsmiliesoutput .= "'".$showsmile.".gif', ";
    }
    echo "<script type=\"text/javascript\">
    //<![CDATA[
    (function()
    {
        var settings = {
            customConfig: '',
            entities_latin: false,
            entities_greek: false,
            toolbar: [
                    ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
                    ['Link','Unlink','Anchor'],
                    '/',
                    ['Format','FontSize','TextColor','BGColor'],
                    ['Bold','Italic','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            smiley_path: '".$config_http_script_dir."/data/emoticons/',
            smiley_images: [".$showsmiliesoutput."],
            smiley_descriptions: [".$showsmiliesdecriptions."]
        };
        CKEDITOR.replace ('short_story', settings);
        CKEDITOR.replace ('full_story', settings);
    })();
    //]]>
    </script>";
}

replace with:

echo "<textarea rows=\"12\" cols=\"74\" id=\"full_story\" name=\"full_story\" tabindex=4>$item_db[4]</textarea>";

if($use_wysiwyg){
    
    $showsmilies = explode(',', $config_smilies);
    foreach($showsmilies as $showsmile){
        $showsmile = trim($showsmile);
        $showsmiliesdecriptions .= "'".$showsmile."', ";
        $showsmiliesoutput .= "'".$showsmile.".gif', ";
    }
    echo "<script type=\"text/javascript\">
    //<![CDATA[
    (function()
    {
        var settings = {
            customConfig: '',
            entities_latin: false,
            entities_greek: false,
            toolbar: [
                    ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
                    ['Link','Unlink','Anchor'],
                    '/',
                    ['Format','FontSize','TextColor','BGColor'],
                    ['Bold','Italic','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            smiley_path: '".$config_http_script_dir."/data/emoticons/',
            smiley_images: [".$showsmiliesoutput."],
            smiley_descriptions: [".$showsmiliesdecriptions."]
        };
var editor_short = CKEDITOR.replace('short_story', settings);
CKFinder.setupCKEditor( editor_short, '../ckfinder/' );

var editor_full = CKEDITOR.replace('full_story', settings);
CKFinder.setupCKEditor( editor_full, '../ckfinder/' );
    })();
    //]]>
    </script>";
}

save and close editnews.mdu

open images.mdu

just replace all with this code (and change ckfinder paths) :

<?PHP

if($member_db[1] > 3){ msg("error", "Access Denied", "You don't have permission to add/edit files"); }




// **************
// Show Images List
// **************

echoheader("images","Manage Files");



// *************
// Upload Image(s)
// *************

            echo"
<br/>
<br/>
<script type=\"text/javascript\">

// This is a sample function which is called when a file is selected in CKFinder.
function ShowFileInfo( fileUrl, data )
{
var msg = 'The selected URL is: ' + fileUrl + 'nn';
// Display additional information available in the "data" object.
// For example, the size of a file (in KB) is available in the data["fileSize"] variable.
if ( fileUrl != data['fileUrl'] )
  msg += 'File url: ' + data['fileUrl'] + 'n';
msg += 'File size: ' + data['fileSize'] + 'KBn';
msg += 'Last modifed: ' + data['fileDate'];

alert( msg );
}

</script>

<p style=\"padding-left: 5px; padding-right: 5px;\">
<table>
<tr>
<td>
";

require_once 'path to ckfinder/ckfinder.php';

// You can use the "CKFinder" class to render CKFinder in a page:
$finder = new CKFinder();
$finder->BasePath = 'path to ckfinder/'; // The path for the installation of CKFinder (default = "/ckfinder/").
$finder->Width = 700;
$finder->SelectFunction = 'ShowFileInfo';
$finder->Create();

// It can also be done in a single line, calling the "static"
// Create( basePath, width, height, selectFunction ) function:
// CKFinder::CreateStatic( '../../', null, null, 'ShowFileInfo' );
            echo"
</td>
</tr>
</table>




";




echofooter();




?>

Enjoy  https://cutephp.com/forum/style_emoticons/default/cool.gif

OK

I'll try to recover that ckfinder integration post today-tomorrow.
Stay tuned https://cutephp.com/forum/style_emoticons/default/wink.gif

Well some years ago I wrote too this hack, but seems it's deleted from board. Thanks Filou for rewriting this script.
And I integrated ckfinder into ckeditor and into images.mdu, maybe I repost it here some day if interested.

22

(2 replies, posted in Hacks & Tricks / FAQ)

Name: FCKeditor
Author: hanska
CuteNews Compatibility: 1.4.0 - * (no incompatibility reported yet)
Description: This forum does not support third party software! The default wysiwyg and FCKeditor are third party software and got nothing to do with cutephp. So don't ask about it! The sole reason this post has been added to the faq is because the defaults wysiwyg hasn't got a support forum and is incompatible with some new browsers like google chrome. Also note that this editor/wysiwyg has it's own image module thus you won't be able to use the image module from CuteNews.
Requirements: A copy of CuteNews. For CN UTF-8 also see notes in the next post.
Instructions:

First download newest V2 FCKeditor from here

Then unpack and upload in cutenews dir. Now you should have dir list something like this :
data
fckeditor
inc
rte
skins
.....

Now open inc/addnews.mdu and add just after <?php this

require_once("fckeditor/fckeditor.php");

And make sure the path to this file is correct.

then find

        
Short Story
        <td>";


if ($use_wysiwyg) {
        echo"
        <script language=\"JavaScript\" type=\"text/javascript\" src=\"rte/richtext.js\"></script>
<script language=\"JavaScript\" type=\"text/javascript\">
        initRTE(\"rte/images/\", \"rte/\", \"rte/\", false); </script>

<script language=\"JavaScript\" type=\"text/javascript\">
        writeRichText('short_story', '', 460, 250, true, false);
</script>
        ";
}else{

replace

        
Short Story
        <td>";


if ($use_wysiwyg) {

$oFCKeditor = new FCKeditor('short_story');
$oFCKeditor->Width  = '100%';
$oFCKeditor->Height = $config_wysiwyg_height_short;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create();

}else{

then find and delete

     echo"
        <td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
        <p align=\"center\">[url= onclick=\]

        [insert image][/url]

<!--        [url= onclick=\][quick tags][/url]
 -->
        [url= onclick=\][expand][/url]
        



        ";

    echo insertSmilies("$short_story_id", 4, true, "$use_wysiwyg");


find

        
Full Story
<font style=\"font-size:7pt\">(optional)</font>
        <td>
        ";


if ($use_wysiwyg) {
    echo"<script language=\"JavaScript\" type=\"text/javascript\">
        writeRichText('full_story', '', 460, 300, true, false);
        </script>";
}else{

replace

        
Full Story
<font style=\"font-size:7pt\">(optional)</font>
        <td>
        ";


if ($use_wysiwyg) {
$oFCKeditor = new FCKeditor('full_story', null, 550);
$oFCKeditor->Width  = '100%';
$oFCKeditor->Height = $config_wysiwyg_height_full;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = 'Write here...';
$oFCKeditor->Create();
}else{

find and delete

      echo"
        <td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
        <p align=\"center\">

        [url= onclick=\][insert image][/url]

<!--        [url= onclick=\][quick tags][/url]
-->

        [url= onclick=\][expand][/url]
        


        ";

        echo insertSmilies("$full_story_id", 4, true, "$use_wysiwyg");

Save and close addnews.mdu
Now open inc/editnews.mdu

right after <?php insert this

include("fckeditor/fckeditor.php");

find :

        
Short Story
        <td width=\"464\" colspan=\"3\">
";

if ($use_wysiwyg) {
        echo"
        <script language=\"JavaScript\" type=\"text/javascript\" src=\"rte/richtext.js\"></script>
<script language=\"JavaScript\" type=\"text/javascript\">
        initRTE(\"rte/images/\", \"rte/\", \"rte/\", false); </script>

<script language=\"JavaScript\" type=\"text/javascript\">
        writeRichText('short_story', '".rteSafe($item_db[3])."', 460, 250, true, false);
</script>
        ";
}else{

replace with

        
Short Story
        <td width=\"100%\" colspan=\"3\">
";

if ($use_wysiwyg) {
$oFCKeditor = new FCKeditor('short_story');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = $item_db[3];
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = $config_wysiwyg_height_short;
$oFCKeditor->Create();
}else{

find and delete

     echo"

        <td width=\"165\" valign=\"top\" align=center style='background: url(skins/images/baloon.gif) no-repeat top left'>
        <p align=\"center\">[url= onclick=\]

        [insert image][/url]

<!--        [url= onclick=\][quick tags][/url]
 -->
        [url= onclick=\][expand][/url]
        



";

    echo insertSmilies("$short_story_id", 4, true, "$use_wysiwyg");

find

        
Full Story
<font style=\"font-size:7pt\">(optional)</font>
        <td width=\"464\" colspan=\"3\">
";

if ($use_wysiwyg) {
        echo"
<script language=\"JavaScript\" type=\"text/javascript\">
        writeRichText('full_story', '".rteSafe($item_db[4])."', 460, 250, true, false);
</script>
        ";
}else{

replace

        
Full Story
<font style=\"font-size:7pt\">(optional)</font>
        <td width=\"100%\" colspan=\"3\">
";

if ($use_wysiwyg) {
$oFCKeditor = new FCKeditor('full_story');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = $item_db[4];
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = $config_wysiwyg_height_full;
$oFCKeditor->Create();
}else{

find and delete

     echo"

        <td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
        <p align=\"center\">

        [url= onclick=\][insert image][/url]

<!--        [url= onclick=\][quick tags][/url]
-->

        [url= onclick=\][expand][/url]
        

";

        echo insertSmilies("$full_story_id", 4, true, "$use_wysiwyg");

save and close editnews.mdu

open inc/options.mdu and find

    showRow("Use WYSIWYG Editor","use (or not) the advanced editor", makeDropDown(array("yes"=>"Yes","no"=>"No"), "save_con[use_wysiwyg]", "$config_use_wysiwyg"));

replace

    showRow("Use WYSIWYG Editor","use (or not) the advanced editor", makeDropDown(array("yes"=>"Yes","no"=>"No"), "save_con[use_wysiwyg]", "$config_use_wysiwyg"));
    showRow("WYSIWYG Editor height (short story)", "enter number (400 ex.) ", "<input type=text style=\"text-align: center;\"  name='save_con[wysiwyg_height_short]' value='$config_wysiwyg_height_short' size=10>");
    showRow("WYSIWYG Editor height (full story)", "enter number (400 ex.) ", "<input type=text style=\"text-align: center;\"  name='save_con[wysiwyg_height_full]' value='$config_wysiwyg_height_full' size=10>");

Then upload all files and go to Options -> System Configurations choose News tab and you see 2 new lines there : WYSIWYG Editor height (short story) and WYSIWYG Editor height (full story) . Put numbers there to your needs (400 for example) and you're done  https://cutephp.com/forum/style_emoticons/default/tongue.gif