Resource browser in Newspublisher
From MODx Wiki
You want to have the resource browser available in the front end RTE too? It's not suggested to do this unless you are absolutely sure who can access your resource browser and that they have correct permissions to files / folders. Here's how you do it:
In manager/media/browser/mcpuk/connectors/php/config.php change the following:
Replace
if(!isset($_SESSION['mgrValidated'])) { die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly."); }
With
if(!isset($_SESSION['mgrValidated']) && !isset($_SESSION['webValidated'])) { die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly."); }
That allows the file to be accessed for web users too.
Then, in case you are using FCKEditor, change the following in the plugin code:
"$fckInstanceObj.Config['ImageBrowser'] = ".($use_browser==1 ? "true":"false").";".
To
"$fckInstanceObj.Config['ImageBrowser'] = true;".
Or if you are using TinyMCE, change:
$fileBrowserCallback = ($use_browser==1 ? "file_browser_callback : \"fileBrowserCallBack\"":"");
To
$fileBrowserCallback = "file_browser_callback : \"fileBrowserCallBack\"";
