IMCE & tinymce: no browse button

andres@baravalle.it - January 27, 2007 - 18:47

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

andres@baravalle.it - January 27, 2007 - 19:18

Hi,
if someone has the same problem, test the system with one of the default themes. My theme did not have this line:

<?php
print $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!

dustymugs - February 19, 2007 - 22:48

I had the same problem with a custom theme and that fixed it.

I am having the same problem

stephtek - March 10, 2007 - 00:36

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..

webservant - March 20, 2007 - 12:14

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 :(

davidjmcq - May 6, 2007 - 07:27

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

visionmark - June 9, 2008 - 17:57

Any luck? I am having the same problem.

thank you sooo much :)

SteveK - May 14, 2007 - 01:26

thank you sooo much :)

where does $closure go?

kaplan1 - June 12, 2007 - 21:01

Sorry for the rookie question, but where do I insert this line of code?

Check the themes folder...

rosgar - June 14, 2007 - 04:34

and look for

page.tpl.php

and add this before the end of the body tag...

<?php
print $closure
?>

Same problem, same

McCool - April 3, 2008 - 12:53

Same problem, same solution!
Thanks for that!

Problem solved

hackmac27 - April 14, 2008 - 22:56

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

sheffy_llama - July 11, 2008 - 10:19

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

rosgar - May 11, 2007 - 15:12

Missing php code! Lol, it took me days just to find this culprit and I thought I messed up my configurations.

Thanks

davidkyte - November 27, 2007 - 22:51

closure worked great ;-)

Thankyou very much

Browse button still not there

tk5ep - December 11, 2007 - 09:44

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

oceancomputers - January 7, 2008 - 02:07

after adding the code, it works in firefox, but not IE.

Any more suggestions?

Browse button not working

hackmac27 - March 24, 2008 - 23:52

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.

Aleasenir - April 3, 2008 - 10:36

SAme problem.

same problem

datawench - April 10, 2008 - 16:28

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

datawench - April 10, 2008 - 17:25

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

bcooper - April 17, 2008 - 03:49

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

virtuose - May 5, 2008 - 18:42

hi BCooper

i resolve the same problem adding this code

<?php
print $head_title
?>

<?php
print $head
?>

<?php
print $styles
?>

<?php
print $scripts
?>

<?php
/* Needed to avoid Flash of Unstyle Content in IE */
?>

var imceBrowserURL = "/imce/browse";

if don't forget this close code at end

<?php
print $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

subhacom - July 3, 2008 - 14:03

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

subhacom - July 3, 2008 - 14:04

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

peter_halada - May 28, 2008 - 09:15

Hi, are you using drupal 6 ?

Thank you!

danbryant - June 6, 2008 - 00:06

Adding: <?php echo $closure; ?> fixed it. Much appreciated!

 
 

Drupal is a registered trademark of Dries Buytaert.