We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    Hi,

    Not yet tested but for your question david for using this new file manager with tv

    It seems that the issue comes from the tmplvars.inc.php file

    Line 157

    OpenServerBrowser(’".$base_url."manager/media/browser/mcpuk/browser.html?Type=images&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."’, w, h);

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 6726
      • 7,075 Posts
      Nice catch, so basically we’d need to edit this line with the new path, or is there more to it ?
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I strongly suspect that the entire block of code for the browser needs to be changed.

        Here’s the callback code from tinymce 212 tinymce.functions.php line 161
        				$tinymceInit .= ($use_browser==1 ? "		  resource_browser_path : \"".$base_url."manager/media/browser/mcpuk/browser.html?Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."\",\n" : "");
        				$tinymceInit .= ($use_browser==1 ? "		  file_browser_callback : \"fileBrowserCallBack\",\n":"");
        
        $tinyCallback = <<<TINY_CALLBACK
        	function fileBrowserCallBack(field_name, url, type, win) {
        		// This is where you insert your custom filebrowser logic
        		var win=tinyMCE.getWindowArg("window");
        		win.BrowseServer(field_name);
        	}
        TINY_CALLBACK;
        

        and here it is for the new file browser in tinymce 213
        				$tinymceInit .= ($use_browser==1 ? "		  resource_browser_path : \"".$base_url."assets/plugins/ajaxfilemanager/ajaxfilemanager.php?\",\n" : "");
        				$tinymceInit .= ($use_browser==1 ? "		  file_browser_callback : \"fileBrowserCallBack\",\n":"");
        
        $tinyCallback = <<<TINY_CALLBACK
        	function fileBrowserCallBack(field_name, url, type, win) {
        		var ajaxfilemanagerurl = "{$base_url}assets/plugins/ajaxfilemanager/ajaxfilemanager.php";
        		switch (type) {
        			case "image":
        				break;
        			case "media":
        				break;
        			case "flash": 
        				break;
        			case "file":
        				break;
        			default:
        				return false;
        		}
        		var fileBrowserWindow = new Array();
        		fileBrowserWindow["file"] = ajaxfilemanagerurl;
        		fileBrowserWindow["title"] = "Ajax File Manager";
        		fileBrowserWindow["width"] = "782";
        		fileBrowserWindow["height"] = "440";
        		fileBrowserWindow["close_previous"] = "no";
        		tinyMCE.openWindow(fileBrowserWindow, {
        		  window : win,
        		  input : field_name,
        		  resizable : "yes",
        		  inline : "yes",
        		  editor_id : tinyMCE.getWindowArg("editor_id")
        		});
        		
        		return false;
        	}
        TINY_CALLBACK;
        


        Now, corresponding code for quickedit starts at line 132 for images and ends with file browsing at line 241. It looks like those two "case" blocks need to be completely rewritten.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 33337
          • 3,975 Posts
          Fatal error: Call to a member function gc() on a non-object in D:\xampp163a\htdocs\zidesigns\assets\plugins\ajaxfilemanager\ajax_image_editor.php on line 10

          This is what I get when I click on "edit" link, I guess its not implemented?

          XAMPP on windows.
          MODx 0961
          php5
          TinyMCE213 .... not tested with FCK as yet.
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            On Mac with FF I just get a new browser window opened. Empty.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 6726
              • 7,075 Posts
              Any updates ?

              I have encountered a problem with image path, I have something like this :

              [tt]http://www.domain.tld/home/****/domains/*****/public_html/assets/images/univers_animation/illustrations/jde_couv_060706.jpg[/tt]

              I have set up [tt]Rewrite browser paths : Yes[/tt], and [tt]Resource URL : assets/[/tt]

              Has it something to do with AjaxFileManager or my set up ?

                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 6726
                • 7,075 Posts
                I just realized it’s now available in the repository, I’ll check the appropriate thread !
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 4018
                  • 1,131 Posts
                  No biggie, David! We can resume this in the other thread. Definitely a path issue that needs to be resolved. I’m aware of it and am trying to get in touch with the dev at PHPLetter.com to resolve the path issue.

                  Jeff
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 6726
                    • 7,075 Posts
                    OK thanks for the update !
                    This way I know there is no need to dig further into my config smiley
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l&#39;outil id
                      • 17883
                      • 1,039 Posts
                      A bit OT, but has someone tested this one:

                      http://kfm.verens.com/ ?

                      Looks awesome... What I like very much is the possibility to add tags to the pictures and search for tags, filenames and many more features. Look here for comparison with other file/image managers:

                      http://kfm.verens.com/comparisons

                      A documentation for adding it to TinyMCE also is available:

                      http://kfm.verens.com/Using-KFM-as-a-plugin-for-TinyMCE