CuteNews

Welcome Guest ( Log In | Register )

Profile
Personal Photo
Rating
 
Options
Options
Personal Statement
Filou83 doesn't have a personal statement currently.
Personal Info
Filou83
Advanced Member
Age Unknown
Male
Germany
Birthday Unknown
Interests
CuteNews 1.3.6
Statistics
Joined: 14-October 09
Profile Views: 4,271*
Last Seen: Yesterday, 03:40 PM
Local Time: May 20 2013, 06:50 AM
158 posts (0 per day)
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour

Filou83

Members

***


Topics
Posts
Comments
Friends
My Content
6 May 2013
Name: KCFinder plugin
Author: Filou83
CuteNews Compatibility: 1.5.3 - * (no incompatibility reported yet)

Description: Adds the ability to use KCFinder within CKEditor in CuteNews.
KCFinder is an open source file managment tool, which is free (as alternative to CKFinder) and works with CKEditor too. More about KCFinder on http://sourceforge.net/projects/kcfinder

Screenshot:
Screenshot Link

Download: kcfinder plugin

Installation: Extract the zip-file to your "cutenews/cdata/plugins" directory. There should be the file "kcfinder.php" and "kcfinder.zip" in the plugin directory.
Next login into your CuteNews Panel, go to system cofnigurations, and choose the "Install kcfinder plugin". After that you can browse the server with the new plugin.

Changelog:

2013-05-06 Initial release.
9 Feb 2012
Name: CKeditor
Author: Filou83
CuteNews Compatibility:
- UTF-8 CuteNews - * (no incompatibility reported yet) - tested on UTF-8 CuteNews 9.0.1
- CuteNews 1.4.6 - * (no incompatibility reported yet) - thanks to Damoor for testing the hack with 1.4.6
Description: This hack replaces the default RTE wysiwyg Editor with the CKEditor. It also integrates CuteNews' default Image Module into CKEditor.
This forum does not support third party software! The default wysiwyg and CKEditor 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.
Requirements: A copy of CKEditor from ckeditor.com


Instructions:
You have to edit images.mdu, addnews.mdu and editnews.mdu - and replace "path to ckeditor" by the path where ckeditor is located.
Use "../ckeditor" if the ckeditor is in the same directory where cutenews is placed:
/ckeditor
/cutenews
Use "ckeditor" if the ckeditor is in the cutenews sub directory:
/cutenews/ckeditor


Edit "addnews.mdu"

1. Find:

CODE
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{
    echo '<textarea rows="12" cols="74" id="short_story" name="short_story" tabindex=4></textarea>';
}

replace with - and be sure to replace "path to ckeditor" by "../ckeditor" or "cutenews/ckeditor":
CODE
if($use_wysiwyg){
    echo '
<script type="text/javascript" src="path to ckeditor/ckeditor.js"></script>
    ';
}
echo '<textarea rows="12" cols="74" id="short_story" name="short_story" tabindex=4></textarea>';



2. Find:

CODE
if($use_wysiwyg){
    echo "<script language=\"JavaScript\" type=\"text/javascript\">
    writeRichText('full_story', '', 460, 300, true, false);
</script>";
}
else{
    echo '<textarea rows="12" cols="74" id="full_story" name="full_story" tabindex=5></textarea>';
}


replace with:
CODE
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','Underline','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            filebrowserBrowseUrl: '".$PHP_SELF."?&mod=images&action=quick&wysiwyg=true',
            filebrowserImageBrowseUrl: '".$PHP_SELF."?&mod=images&action=quick&wysiwyg=true',
            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>";
}


3. Find:

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

replace with:
CODE
if(!$use_wysiwyg){ echo insertSmilies($short_story_id, 4, true, $use_wysiwyg); }


4. Find:

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

replace with:
CODE
if(!$use_wysiwyg){ echo insertSmilies($full_story_id, 4, true, $use_wysiwyg); }


5. Find:

CODE
echo "
<td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align=\"center\"><br />
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[insert image]</a><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[insert image]</a><![endif]>
<br />
<!--   <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=full_story', '_Addimage', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_CuteCode\">[quick tags]</a><br />-->

<a href=# onclick=\"increaseTextarea('$full_story_id'); return false;\">[expand]</a>
<br><br>";

replace with:
CODE
if(!$use_wysiwyg){ echo "
<td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align=\"center\"><br />
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\_Addimage\">[insert image]</a><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[insert image]</a><![endif]>
<br />
<!--   <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=full_story', '_Addimage', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_CuteCode\">[quick tags]</a><br />-->

<a href=# onclick=\"increaseTextarea('$full_story_id'); return false;\">[expand]</a>
<br><br>";
}


6. Find:

CODE
echo "<td width=\"108\" valign=\"top\" style='background: url(skins/images/baloon.gif) no-repeat top left'>
    <p align=\"center\">
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
<br />
    [insert image]</a><br />
<!--        <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=short_story', '_CuteCode', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[quick tags]</a><br /> -->
    <a href=# onclick=\"increaseTextarea('$short_story_id'); return false;\">[expand]</a>
    <br><br>
    ";

replace with:
CODE
if(!$use_wysiwyg){ echo "<td width='108' valign='top' style='background: url(skins/images/baloon.gif) no-repeat top left'>
    <p align='center'>
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
<br />
    [insert image]</a><br />
<!--        <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=short_story', '_CuteCode', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[quick tags]</a><br /> -->
    <a href=# onclick=\"increaseTextarea('$short_story_id'); return false;\">[expand]</a>
    <br><br>
    ";
}



Edit "editnews.mdu"

1. Find:

CODE
    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{
        echo '
<textarea rows="12" cols="74" id="short_story" name="short_story" tabindex=3>'.$item_db[3].'</textarea>';

    }

replace with - and be sure to replace "path to ckeditor" by "../ckeditor" or "cutenews/ckeditor":
CODE
if($use_wysiwyg){
    echo '
<script type="text/javascript" src="path to ckeditor/ckeditor.js"></script>
    ';
}

echo '
<textarea rows="12" cols="74" id="short_story" name="short_story" tabindex=3>'.$item_db[3].'</textarea>';



2. Find:

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

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

replace with:
CODE
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','Underline','Strike'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                    ['Maximize','About']
            ],
            filebrowserBrowseUrl: '".$PHP_SELF."?&mod=images&action=quick&wysiwyg=true',
            filebrowserImageBrowseUrl: '".$PHP_SELF."?&mod=images&action=quick&wysiwyg=true',
            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>";
}



3. Find:

CODE
    echo "
<td width=\"165\" valign=\"top\" align=center style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align=\"center\">
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
<br>[insert image]</a><br>
<!--   <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=short_story', '_CuteCode', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[quick tags]</a><br> -->
<a href=# onclick=\"increaseTextarea('$short_story_id'); return false;\">[expand]</a>
<br><br>";

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

replace with:
CODE
if(!$use_wysiwyg){     echo "
<td width=\"165\" valign=\"top\" align=center style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align=\"center\">
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?&mod=images&action=quick&area=$short_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
<br>[insert image]</a><br>
<!--   <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=short_story', '_CuteCode', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\">[quick tags]</a><br> -->
<a href=# onclick=\"increaseTextarea('$short_story_id'); return false;\">[expand]</a>
<br><br>";

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


4. Find:

CODE
    echo"
<td width='108' valign='top' style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align='center'><br>
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
[insert image]</a><br>
<!-- <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=full_story', '_Addimage', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_CuteCode\">[quick tags]</a><br>-->
<a href=# onclick=\"increaseTextarea('$full_story_id'); return false;\">[expand]</a>
<br><br>";

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

replace with:
CODE
if(!$use_wysiwyg){     echo"
<td width='108' valign='top' style='background: url(skins/images/baloon.gif) no-repeat top left'>
<p align='center'><br>
<!--[if IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]-->
<![if !IE 8]><a href=# onclick=\"window.open('$PHP_SELF?mod=images&action=quick&area=$full_story_id&wysiwyg=$use_wysiwyg&noie', '_Addimage', 'HEIGHT=500,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_Addimage\"><![endif]>
[insert image]</a><br>
<!-- <a href=# onclick=\"window.open('$PHP_SELF?&mod=about&action=cutecode&target=full_story', '_Addimage', 'HEIGHT=280,resizable=yes,scrollbars=yes,WIDTH=360');return false;\" target=\"_CuteCode\">[quick tags]</a><br>-->
<a href=# onclick=\"increaseTextarea('$full_story_id'); return false;\">[expand]</a>
<br><br>";

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



Edit "images.mdu"

1. Find:

CODE
function insertimage(selectedImage) {
var area = '$area';

replace with:
CODE
function insertimage(selectedImage) {
";
if($wysiwyg) {
    if(isset($_GET["CKEditorFuncNum"])) { $CKEditorFuncNum = $_GET["CKEditorFuncNum"]; }
    echo "window.opener.CKEDITOR.tools.callFunction(".$CKEditorFuncNum.",'".$config_http_script_dir."/data/upimages/'+ selectedImage)";
}
else {
$CKEditorFuncNum = '';
echo "var area = '$area';


2. Find:

CODE
else{ echo "opener.document.getElementById(area).value += finalImage;"; }

Add below:
CODE
}


3. Find:

CODE
if($action == 'quick'){
echo "<form name=properties>

replace with
CODE
if($action == 'quick'  && $wysiwyg != 'true'){
echo "<form name=properties>


4. Find:
CODE
<input type=hidden name=wysiwyg value='$wysiwyg'>

Add below:
CODE
<input type=hidden name=CKEditorFuncNum value='$CKEditorFuncNum'>



Good luck smile.gif

Edit, 11.02.2012: Corrected: Sometimes the cutephp-forum replaces \" by " so the code did not work anymore... Hack is reported to be compatible with CuteNews 1.4.6.
Edit, 09.03.2012: Added support to images.mdu for uploading and inserting images with ckeditor.
31 Jan 2012
Hi there,

I'm using CuteNews since version 1.3 (as it still was open source) and I am visiting the forums since then every once in a while, getting help from really nice guys like Ifa, FUNimations, (lKj) and many more, helping others as far as I can.

There have been no official updates for CuteNews since 2005, only the users and support members have posted workarounds, fixes, hacks and even a more secure and better UTF-8 CuteNews version.

Since november last year, the forum got overwhelmed by spam bots posting rubbish in here. The owner sold its product (nothing heared from him for the last years), the new admin was never seen again and the support users could not handle the spam problem without an administrator. Because of this the support crew left the forum in late december unsure.gif

A few days ago someone deleted all old topics in the support forums (even usefull topics)... Without any comments. And now a new "Support_Team" user appears with group "Admin"... What's happening in here? Would be nice, if the new support user could post something in this topic and tell us what's going on here.

Thanks in advance.
1 Jun 2011
Name: OriginalBlue
Author: Filou83
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
- - - - - - - also tested with UTF-8 CuteNews 9.1 and CuteNews 1.5.3
Description: New theme for your CuteNews admin panel based on Flexer's CutePHP 1.3 website back in 2003 biggrin.gif
Screenshot:
Link

Download: OriginalBlue Skin
Installation: Extract the zip-file to your "cutenews/skins" directory.
Next login into your CuteNews Panel, go to system cofnigurations, and choose the new skin.

Changelog:
2011-06-01 Initial release.
2013-05-06 Updated for IE 10 compatibility.

More stuff on http://filou83.bplaced.net
Last Visitors


7 May 2013 - 5:00


5 Feb 2013 - 13:30


23 Jan 2013 - 10:58


15 Oct 2012 - 20:13


9 Oct 2012 - 13:54

Comments
Other users have left no comments for Filou83.

Friends

16501 posts
Private
View All Friends
RSS Lo-Fi Version Time is now: 20th May 2013 - 04:50 AM