Browse button not showing up (A fix)

dan.spray - September 26, 2007 - 17:32
Project:IMCE
Version:6.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:jimmb
Status:patch (code needs review)
Description

I am currently using the newsflash theme. I am not getting the browse button. I have the closure tag in the right spot but still nothing. Any help would be great.

#1

Eugef - December 20, 2007 - 15:00

I have the same problem with my own theme. If i use it - i didn't see "Browse" button, but if i use theme Garland - i see it.

I found out that my theme in file page.tpl.php had an error. It haven't this code <?php print $closure;?>.

When i wriote this code - "Browse" button appeared.

#2

knownothing - January 6, 2008 - 02:33

I'm having the same issue, even though I changed the code at the bottom of page.tpl.php. Any other ideas?

I'm using the LiteJazz theme (similar to NewsFlash)

#3

knownothing - January 9, 2008 - 14:01

Still needing help on this one. Is it my theme (again, it's LiteJazz)?

#4

knownothing - January 9, 2008 - 14:21

Possibly some helpful info to the more technical among us - according to Firebug, this is the error:

tinymce.configs has no properties
    for (var i=0; i<tinymce.configs.length; i++) (

Firebug cites the following:
imce_set_tinymce.js Line 7

I'm no coder, so none of this make sense to me. However, I'm sure it will ring a bell with many people here.

#5

knownothing - January 17, 2008 - 15:38

Still waiting for help...

I noticed today that I have the "Personal Files" tab on my profile page - so I guess some part of IMCE is working. However, as I've noted for the past week or so, I can't get the browse button to show up in the images dialog box in TinyMCE.

#6

Mike Sances - January 22, 2008 - 17:34

Having the same issue. Have personal files, but since upgrading to Drupal 5.5 can't see "browse button." Have checked for closure tags, that isn't the issue.

#7

jscheel - January 22, 2008 - 20:44

Have you checked you permissions? Have you granted "access imce" to any roles?

#8

markstos - January 22, 2008 - 23:06
Title:Browse button not showing up» Browse button not showing up (A fix)
Status:active» patch (code needs review)

I noticed the same JavaScript error.

The following code is in "diff" form and supplies a workaround. I think this is a bad way to solve it, but it works. The original code had a better approach, but I don't understand why it's not working. Unix geeks can apply this with "path". Otherwise, note the file names, and realize that the plus or minus in the first column indicates whether a line should be added or removed.

AttachmentSize
tinymce_imce.patch1.26 KB

#9

cafe - February 3, 2008 - 09:16

markstos - your patch works for me, thanks.

#10

elgreg - February 3, 2008 - 20:22

This patch worked for me as well. much thanks! Wonder if this has anything to do with using v3 of TinyMCE?This is on Drupal 5.7, TinyMCE v3.0, tinymce,module v 1.92, imce.module,v 1.8.2.30

#11

KermitJr - February 4, 2008 - 17:38

Appreciate the patch, but for the non-technically inclined... which file am I patching? TinyMCE or IMCE? The drupal or the internal for tiny?

thanks!
Kermitjr

#12

domineaux - February 4, 2008 - 18:23
Status:patch (code needs review)» active

Browse not showing up, but when I do a refresh of the browser it shows up.

I've tried it on Garland and LiteJazz, same thing happens. The IMCE window pops up, but there is no browser button on any page.

I refresh the web browser and the little browser button shows up on the IMCE popup.

Can't we just turn off the old FCKeditor/TinyMCE popup some way and eliminate this issue?

This way caching wouldn't make a flip of difference.

I'm using FCKeditor.

#13

naitsirhc26 - February 4, 2008 - 18:23
Status:active» patch (code needs review)

Thanks markstos. Your fix worked perfectly. KermitJr, when you open up the patch file, you will notice the two files that you need to edit.

tinymce/tinymce.module (which is in the tinymce folder)
imce/imce_set_tinymce.js (which is in the imce module folder)

Just edit the lines of code where he has placed - and + marks. Just delete lines with a - symbol and add lines with a + before them.

#14

jazzun4141 - February 5, 2008 - 12:26

Thank you. This patch really worked. I was very frustrated by the lack of functionality when the browser button did't show up.

#15

momendo - February 5, 2008 - 17:58

Marktos patch didn't work for me with D5.7 and the latest tinymce/imce.

#16

jwurster - February 6, 2008 - 19:04

Great, that patch worked. Thank you.

#17

Andrew Maiman - February 10, 2008 - 21:25

The patch worked successfully for me, as well. (Drupal 5.7 + TinyMCE 5.x-1.x-dev (2007-Dec-16) + TinyMCE 3.0 + IMCE 5.x-1.0)

#18

amthebigfish - February 13, 2008 - 02:15

Patch worked for me too!
(Drupal 5.7 + TinyMCE 5.x-1.9 + TinyMCE 3.0 + IMCE 5.x-1.0)

#19

joelg - February 13, 2008 - 13:06

Thanx a lot for the patch. Worked well too...

#20

stiggynet - February 13, 2008 - 20:54

Thanks markstos!!!!!!!

#21

sayes - April 9, 2008 - 04:40

It's worked for me too. Thanks!!!

#22

rontec76 - August 1, 2008 - 23:52

The patch worked for me too with one exception.

I'm using TinyMCE module 5.x-1.9, TinyMCE 3.1.0.1 and IMCE 5.x-1.2.

In this case I only applied the patch to tinymce.module and left imce_set_tinymce.js.

This is because before I applied the patch I noticed the existing code referenced in the patch is different than what is in my version of IMCE.

Point being in my case it worked to just patch the TinyMCE module.

At any rate....thanks for the patch. It saved me a headache.

#23

robbm - August 23, 2008 - 12:46

Similarly, I only patched tinymce.module (as I didn't actually have an imce_set_tinymce.js!)

Edit
Just realised that while this makes my button appear, the button doesn't do anything!

Firefox's Error Console gives me:

Error: f has no properties
http://<my domain>/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js?w    Line: 1

This is with:
Drupal 6.4
IMCE 6.x-1.1
TinyMCE 6.x-1.1-dev

#24

jimmb - August 27, 2008 - 19:45
Version:5.x-1.0» 6.x-1.1
Assigned to:Anonymous» jimmb

I have the same setup as robbm, and am using the LiteJazz theme. When I open the TinyMCE editor, there's no browse icon for selecting an image. I find it interesting that in the D6 vsn. of IMCE, there is no checkbox option to:

Enable tinyMCE support
Make IMCE the default image/file browser for tinyMCE.

I would think this could be part of the problem, except I suspect it's been removed from this version of IMCE for some unknown reason. At any rate, I'm joining the chorus of people looking for a solution.

Jim

#25

Grinch2171 - September 12, 2008 - 17:57

I too am one one of those who doesn't have a browse button.

Drupal 6.4
IMCE 6.x-1.1
TinyMCE 6.x-1.1-dev

I am using the Deco theme.

#26

gorgen - September 23, 2008 - 19:16

#27

jasonch - October 20, 2008 - 22:29

Hi,
I have the same problem, but I realized my version of imce doesn't even has imce_set_tinymce.js file so I can't apply the second half of the patch (after applying the first half, the button appears but goes no where).

I've tried everything else that's suggested on this thread, nothing worked.
Any hint :)?

#28

jasonch - October 20, 2008 - 22:45

Actually... I applied the patch from
http://drupal.org/node/241753#comment-792305
and it works now ^^

thanks

 
 

Drupal is a registered trademark of Dries Buytaert.