IMCE & tinymce: no browse button
Hi there,
I'm trying to set-up IMCE with tinymce and I'm having some problems. I'm using Drupal 5 and the pathed tinimce module (4.7.x-1.x-to-5).
1) tinymce is working fine.
2) Looking at the demo here: http://www.ufku.com/drupal/imce/demo I should have an image button, which should call this javascript: javascript:tinyMCE.execInstanceCommand('mce_editor_0','mceImage',true);
As a nice start, I do not have such button, neither looks like I can have such button in the tinymce drupal configuration. I do have an advanced image button, and anyway if I call the javascript for the normal image it would open the image window.
3) Neither the image or advanced image window have a browse button. They are just the normal, standard windows.
4) The IMCE module is installed and if I browse to imce/browse I can see my images. I just don't have the button in tinymce.
Any suggestions?
Thanks in advance,
Andres

Problem solved
Hi,
if someone has the same problem, test the system with one of the default themes. My theme did not have this line:
<?phpprint $closure
?>
and that's what was causing the problem. It took me looooong time to find the problem...
Also, be patient because you won't have the special button for loading images untill the JavaScript at the end of the page is loaded.
Andres
Thanks for the note!
I had the same problem with a custom theme and that fixed it.
I am having the same problem
I am having the same problem with a custom theme in Drupal 4.7. I already had the closure tag, and it still isnt working?
Solved for me..
Ok, I've been all over the internet and drupal forums to find the fix for this one. I've checked all my themes to be sure they have the closure tags, they already had them, but still now IMCE browse button. I even dumped the database twice to see if it was just the order in which I was enabling the various modules that made a diference, and still no browse button. What actually enabled the browse button for me was making a change to visibility settings for TinyMCE.
I had all but given up on getting a browse button. I wanted TinyMCE to be available when editing blocks so I went to the site settings, then to TinyMCE settings. Under visibility, I added the line "admin/build/block/configure/block/*" I hit save, and when I went to edit the block, I noticed I had a browse button. I quickly checked the pages to see if the button was there, and sure enough it was. So, I'm assuming that just by adding to the visibility settings, it forced a reload of the code that produces the browse button.
I hope that helps someone else too.
Cheers!
PS: I'm using Drupal 5.1 with the latest release of TinyMCE and IMCE.
tinymce browse button - Not so solved for me :(
I've got the exact same problem. I've tried your trick but it didn't work. The basic configuration for tinymce doesn't offer a browse option (ie: Home › Administer › Site configuration > tinymce > edit > buttons and plugins)
If anyone can suggest what I've done wrong I would be eternally grateful. The main reason for installing tinymce was to be able to insert pictures.
Any luck? I am having the
Any luck? I am having the same problem.
thank you sooo much :)
thank you sooo much :)
where does $closure go?
Sorry for the rookie question, but where do I insert this line of code?
Check the themes folder...
and look for
page.tpl.php
and add this before the end of the body tag...
<?phpprint $closure
?>
Same problem, same
Same problem, same solution!
Thanks for that!
Problem solved
Problem is solved for me, but can't really explain why. Try refreshing IMCE with the RC2. BTW I'm using IMCE with FCKeditor. It simply just didn't work with TinyMCE.
Many thanks
I was missing $closure - your comment saved me hours of trying to figure it out, many thanks :)
So that's why i can't use this imce browser
Missing php code! Lol, it took me days just to find this culprit and I thought I messed up my configurations.
Thanks
closure worked great ;-)
Thankyou very much
Browse button still not there
Hi all,
I use a standard theme and i checked in the tpl file. The needed code is there but i'm still unable to display the browse button in tinymce !!
Any other idea ?
Thanks
after adding the code, it
after adding the code, it works in firefox, but not IE.
Any more suggestions?
Browse button not working
I use Drupal 6.1 with appropriate TinyMCA and brand new IMCE. I've tried everything mentioned above, but it's still not working. The code is in my theme, adding the line to the TinyMCA didn't help either. I've even tried to use both with Image and Advanced Image functions. What could have gone wrong?
SAme problem.
SAme problem.
same problem
i am having the exact same problem.
i'm using drupal 5, with tinymce 3.0.4 installed and working fine, and imce 5.1.2 supposedly installed and enabled.
selecting the "image" button in tinymce brings up a dialog that allows me to type in a URL to an image, but with no browse button... even though every single demo i've seen just about everywhere has that button.
the admin is using the garland theme, which has the "print closure" line where it belongs.
still no love.
extremely odd behavior
while tinkering with this problem i turned image assist off and then on again... and now the browse button shows up.
curioser and curioser.
Grrr
In case anyone makes a bonehead move like I did... check your TinyMCE version... I had 3.0x installed... deleted it and uploaded 2.01 and voila... browse button!
Hope that helps!
Version 5 and 4.7
hi BCooper
i resolve the same problem adding this code
<?phpprint $head_title
?>
<?phpprint $head
?>
<?phpprint $styles
?>
<?phpprint $scripts
?>
<?php/* Needed to avoid Flash of Unstyle Content in IE */
?>
var imceBrowserURL = "/imce/browse";
if don't forget this close code at end
<?phpprint $closure
?>
but i have the same probleme with version 6. you have resolve your probleme. lets me say thank
Same problem with Drupal 6.2
I am having the same problem with Drupal 6.2 , imce-6.x-1.0, tinymce_3_1_0_1 and tinymce-6.x-1.1-dev. I am using the default theme garland in which the closure code is already there.
Solved
I should have looked into the README file of IMCE first. Which gives a pointer to the issue: http://drupal.org/node/241753#comment-792305.
That solved it!
Drupal 6
Hi, are you using drupal 6 ?
Thank you!
Adding:
<?php echo $closure; ?>fixed it. Much appreciated!In my case, it was due to a jquery/prototype conflict
I had earlier resolved the jQuery/prototype conflict by eliminating jQuery's use of $() (giving it to prototype instead) (see http://drupal.org/node/100842 and http://awebfactory.com.ar/node/189). IMCE's javascript files were using that notation as well so they needed updating as well.