Skip to content
Eko Junaidi Salam edited this page Jul 9, 2015 · 1 revision

Welcome to the Database_Plugin4CKFinder wiki!

How to use this Plugin from github subversion ?

  1. Create folder in your htdocs ckfinderku and Checkout from trunk folder in https://github.com/ekojs/Database_Plugin4CKFinder/trunk
  2. Create database using *.sql from assets/slideshow.sql, assets/userfiles.sql, assets/users.sql.
  3. Change the configuration in application/config/database.php file using information from your new database created earlier.
  4. Change line 21 in application/controllers/welcome.php file
    $this->ckfinder->BasePath = '/ckfinderku/assets/ckfinder/'; //change this path based on your need, this line means : http://localhost/ckfinderku/assets/ckfinder
  1. Change line number 75 and 346-355 in assets/ckfinder/config.php file.
    $baseUrl = 'http://'.$_SERVER['SERVER_NAME'].'/ckfinderku/assets/ckfinder/userfiles/'; //change this line 75 and 346 based on your configuration above
	
	$config['Plugin_ejsplug'] = array(
        "dbhost" => "",
        "dbuser" => "",
        "dbpass" => "",
        "dbase" => "",
        "opt" => array(
            "main_table" => "slideshow",
            "other_table" => "userfiles"
        )
    );
  1. Run this demo http://localhost/ckfinderku and click "Here"
  2. For the first time you run the ckfinder it will create a folder in userfiles/
    assets/ckfinder/userfiles/_thumbs
    assets/ckfinder/userfiles/files
    assets/ckfinder/userfiles/flash
    assets/ckfinder/userfiles/images
  1. Create folder "slideshow" in assets/ckfinder/userfiles/images
  2. Refresh the ckfinder page until you see slideshow child folder in images folder
  3. Test upload, rename and delete while you check in slideshow table in database.
Clone this wiki locally