Browse Button not showing up
moisesc - June 11, 2009 - 07:12
| Project: | IMCE |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
My browse button does not work in IMCE. after revewing another issue posting for this problem I noticed "template.php" did not exist. I've to created the "template.php" in the "sites\all\modules\imce\tpl" folder and in the "template.php" I pasted the code below and the browse button still does not show up in IMCE box. Can someone please help.
<?php
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
static $access, $integrated;
if (!isset($access)) {
$access = function_exists('imce_access') && imce_access();
}
$init = theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);
if ($init && $access) {
$init['file_browser_callback'] = 'imceImageBrowser';
if (!isset($integrated)) {
$integrated = TRUE;
drupal_add_js("function imceImageBrowser(fid, url, type, win) {win.open(Drupal.settings.basePath +'?q=imce&app=TinyMCE|url@'+ fid, '', 'width=760,height=560,resizable=1');}", 'inline');
}
}
return $init;
}
?>| Attachment | Size |
|---|---|
| Screenshot.PNG | 12.74 KB |

#1
The code above is for tinymce module(which is deprecated) not fckeditor.
If you use WYSIWYG API module try the 2.x version with IMCE WYSIWYG API bridge module.
If you use fckeditor module, read the instructions to enable IMCE.
#2
I followed the instructions on the README file which was to into go to
sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
and copy this
require_once "../../../../../filemanager.config.php";
below the following path
$Config['UserFilesAbsolutePath'] = '' ;
I saved the file, cleared the cache and I still do not get the browse button. What should be my next step after following these instructions?
#3
those settings are for fckeditor's internal file browser. There must be settings for IMCE in profile settings in admin section.
#4
Can you remote into my computer so you can check out my settings. I am sending you an invite so you can remote to my computer and check it out. I will stay in this session until 3:30pm CT.
If so, here is the invite:
Moises has invited you to join an online work session using Microsoft SharedView.
To join the session either:
Click the following link: https://joinsvw.sharedview.com/join.aspx?ID=moisesc@cdw.com&pass=62%25GKAGD
Open SharedView. Join the session by entering the following information:
Session Name: moisesc@cdw.com
Password: 62%GKAGD