Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Ckeditor, image button with browse
Dla86
Posted on 13 Feb 2011, 13:47:59

Access: Member
Total Posts: 21
Joined: 2011-02-10

Hi,
I tryed the new Ckeditor version:
http://ckeditor.com/demo
I noticed some nices features, How can I Install this version in my N-13 News Version 4.0? Is it possible?
#3197
Chris
Posted on 13 Feb 2011, 13:53:07

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Download this version of the script

http://code.google.com/p/n-13news/downloads/detail?name=n13news4.0.1_fullwysiwyg.zip&can=2&q=

Extract and copy news/js/ckeditor/config.js to your own installation of the script.
#3198
Dla86
Posted on 13 Feb 2011, 14:01:51

Access: Member
Total Posts: 21
Joined: 2011-02-10

In the demo on line, when I click on Image button and Link Button, I can "Browse" to find what I'm looking for... :new_embarassed:
There are more features..
#3199
Last edited by Dla86 at 2011-02-13 14:13:18 Reason:
Chris
Posted on 13 Feb 2011, 14:30:04

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

You're on your own unfortunately.
#3200
Dla86
Posted on 13 Feb 2011, 14:33:17

Access: Member
Total Posts: 21
Joined: 2011-02-10

sorry, but I didn't understand..
Is not possible have the same features? Like:

-Source code
-Browse Server

??
#3201
Chris
Posted on 13 Feb 2011, 14:33:42

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm sure it is possible but it's not something I have looked into so I can't really help you in doing it.
#3202
Dla86
Posted on 13 Feb 2011, 14:35:37

Access: Member
Total Posts: 21
Joined: 2011-02-10

:( ok... thanks
#3203
Hanska
Posted on 18 Mar 2011, 15:22:27

Access: Member
Total Posts: 2
Joined: 2009-11-06

backup your functions.php and find (line 2429):
Code:

    echo "  <textarea class=\"$useck\" id=\"story\" class=\"story\" name=\"story\" style=\"width: 100%; height: 250px;\">$story</textarea>\n";


replace it wiht this code :
Code:

    echo "  <textarea class=\"$useck\" id=\"story\" class=\"story\" name=\"story\" style=\"width: 100%; height: 250px;\">
$story</textarea>\n
            <script type=\"text/javascript\">
CKEDITOR.replace( 'story',
{
filebrowserBrowseUrl : './js/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : './js/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : './js/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
</script>";


upload ckfinder into js directory (where ckeditor is)
open ckfinder/config.php and find

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


change false to true
then make 2 more modifications in this script :
Code:

$baseUrl = 'http://www.yoursite.com/news/uploads/';


and :
Code:

$baseDir = '/home/***/domains/yoursite.com/public_html/news/uploads/';


I hope I didn't foget something. And I'm not sure it's working 100% :pirate:
#3369
Last edited by Hanska at 2011-03-18 15:23:01 Reason:
Network-13.com © 2013