Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KCFinder for GetSimple 2.x
#5
It's actually quite simple after all... just do:

Code:
function kcfinder_show() {
    echo '
    <div id="kcdemo">
    <div id="kcbrowser">
    <iframe name="kcfinder" id="kcframe" src="../plugins/kcfinder-1.7/browse.php" frameborder="0" width="100%" height="500px" marginwidth="0" marginheight="0" scrolling="yes" >
    </iframe>
    </div>
    </div> ';
}

function kcfinder_editor(){
    echo "
    <script type=\"text/javascript\">
    if(editor) {
        editor.config.filebrowserBrowseUrl = \"../plugins/kcfinder-1.7/browse.php\";
        editor.config.filebrowserWindowWidth = \"640\";
        editor.config.filebrowserWindowHeight = \"480\";
    }
    </script>";
}

However, I found that after selecting an image (e.g. by double clicking) the path is wrong (/uploads/image.jpg).
-- Sam
Reply


Messages In This Thread
KCFinder for GetSimple 2.x - by n00dles101 - 2010-06-22, 20:02:24
KCFinder for GetSimple 2.x - by Oleg06 - 2010-06-22, 22:14:41
KCFinder for GetSimple 2.x - by SamWM - 2010-06-23, 02:11:36
KCFinder for GetSimple 2.x - by n00dles101 - 2010-06-23, 03:34:06
KCFinder for GetSimple 2.x - by SamWM - 2010-06-25, 19:33:16
KCFinder for GetSimple 2.x - by stalagmit - 2010-06-28, 21:26:59
KCFinder for GetSimple 2.x - by SamWM - 2010-06-29, 20:40:48
KCFinder for GetSimple 2.x - by SamWM - 2010-06-29, 20:53:09
KCFinder for GetSimple 2.x - by rogerstreets - 2010-06-30, 00:00:22
KCFinder for GetSimple 2.x - by SamWM - 2010-06-30, 01:39:44
KCFinder for GetSimple 2.x - by Oleg06 - 2010-06-30, 03:30:28
KCFinder for GetSimple 2.x - by n00dles101 - 2010-06-30, 08:20:17
KCFinder for GetSimple 2.x - by n00dles101 - 2010-07-01, 08:31:35
KCFinder for GetSimple 2.x - by Oleg06 - 2010-07-01, 16:12:46
KCFinder for GetSimple 2.x - by n00dles101 - 2010-07-02, 00:11:59
KCFinder for GetSimple 2.x - by Oleg06 - 2010-07-02, 01:57:28
KCFinder for GetSimple 2.x - by maxpop - 2010-07-02, 06:52:21
KCFinder for GetSimple 2.x - by SamWM - 2010-07-02, 20:10:03
KCFinder for GetSimple 2.x - by Jamz - 2010-07-25, 02:59:25
KCFinder for GetSimple 2.x - by Oleg06 - 2010-07-25, 04:33:16
KCFinder for GetSimple 2.x - by RobA - 2010-11-27, 04:18:23
KCFinder for GetSimple 2.x - by Carlos - 2012-02-26, 18:09:38
KCFinder for GetSimple 2.x - by n00dles101 - 2012-02-26, 19:54:32
KCFinder for GetSimple 2.x - by Carlos - 2012-02-26, 22:23:38



Users browsing this thread: 1 Guest(s)