1) I also checked with different versions of jstools (as you mention that only 0.6 works, i dowgraded from 0.8 and also tried with 1.1) but no difference. I also tried different themes.
2) You mention the button below the edit box: when I "disable rich-text" and click on the icon, i get a nice DBFM popup! So this works...
We must have missed something.. It's a drupal thing - we're gearing up for 5.7 so it should be fixed soon (5.4) If you can give us more detailed instructions on how to re-produce it using 5.x.3.0 that'd be good.
Hi,
When I first wrote the code I tried using a standard popup window rather than the dbfm greybox. In my development directory I still have a couple of my failed attempts: editor_plugin.worksToPopup and editor_plugin_src.js
The files ended up being committed to cvs even though they shouldn't be part of the distribution. Looking at your screenshot there's no greybox - this tells me that you're almost certainly running editor_plugin_src.js rather than the correct editor_plugin.js.
Hope this helps
Though the readme file doesn't actually mention anything about the .js files....
I guess for the next release some tidying is needed! There are also loads of icons that aren't in use anymore - we could probably strip out quite a bit (as well as tidying the comments!).
One thing you might try - in dbfm.module somewhere around line 1030 (at the end of the attachit function) can you change "print $output" to "echo $output". See if that helps. I know that if you put "return $output" you'll certainly get the effect your screenshot shows (although in a greybox if you're using the correct .js)
Of course I double-checked the readme.txt and followed instructions there. I added the plugin initialization stuff and also checked the path in editor_plugin.js.
The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));
Is this correct?
As mentioned earlier, I'm using the icon included in tinymce's toolbar, NOT the button below the editor box. This button (the one below the editor box) works fine. IE I "disable rich-text" and click on the button below the editor box and I've got a pretty greybox with dbfm in it.
note: just noticed it is not necassary to disable rich-text anymore...
"The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));
Is this correct?"
Although in drupal 5 you're supposed to put non-core modules in the sites directory, in practice some sites still have ALL the modules under the modules directory. If you're in that category then you should replace 'sites' with 'modules' in the line above.
I'm guessing (from your original screenshot) that everything's fine there.
Do you run firebug? Are there any errors when you're on a node add or node edit page?? Gotta say this one's really got me puzzled!
#1
This looks like a TinyMCE configuration issue. Ensure that you haven't enabled it for all text boxes!
#2
#3
Ah, have you just clicked the "DBFM" icon within TinyMCE?
Please ensure you have used the built-in button and not the one below the node.
What versions of Drupal, PHP are you running - what webserver, server OS, etc.
#4
hello,
Yes, I've clicked the icon within tinymce's toolbar.
Drupal 5.7
DBFM 3.2-RC0
DBFM greybox 5.x-2.0
DAPI 5.x-1.0
TinyMCE module 5.x-1.9 with TinyMCE 2.1.2
Note: I just noticed that TinyMCE 2.1.3 was out. I'll install it and report results ASAP.
I did not install organic groups (yet).
This is a RedHat Enterprise Linux 4, update 6 with PHP5 from CentOS.
MySQL database 5.0.58
PHP 5.1.6
Web server Apache/2.0.59 (CentOS)
Browsers Firefox 2.0.0.14 and 3.0 RC1
edit: also checked with IE 7 : same result
#5
Same issue with TinyMCE 5.x-dev/2.1.2, 5.x-dev/2.1.3 and 5.x-1.9/2.1.3
#6
1) I also checked with different versions of jstools (as you mention that only 0.6 works, i dowgraded from 0.8 and also tried with 1.1) but no difference. I also tried different themes.
2) You mention the button below the edit box: when I "disable rich-text" and click on the icon, i get a nice DBFM popup! So this works...
#7
#8
Noted as a known issue. We know what's causing it, will get a fix out for RC2.
#9
#10
Re-tested 11/06/08 and OK.
#11
Problem still there. I tested with IE7, FF2, FF3. What am I missing?
Drupal 5.7
DBFM 3.3
DBFM greybox 5.x-3.0
DAPI 5.x-1.0
TinyMCE module 5.x-1.9
TinyMCE 2.1.3
#12
We must have missed something.. It's a drupal thing - we're gearing up for 5.7 so it should be fixed soon (5.4) If you can give us more detailed instructions on how to re-produce it using 5.x.3.0 that'd be good.
#13
#14
Hi,
When I first wrote the code I tried using a standard popup window rather than the dbfm greybox. In my development directory I still have a couple of my failed attempts: editor_plugin.worksToPopup and editor_plugin_src.js
The files ended up being committed to cvs even though they shouldn't be part of the distribution. Looking at your screenshot there's no greybox - this tells me that you're almost certainly running editor_plugin_src.js rather than the correct editor_plugin.js.
Hope this helps
Geoff
#15
Check the readme file included with the module - there are instructions for installing the TinyMCE components!!!
You must use these for it to work correctly with TinyMCE
#16
Though the readme file doesn't actually mention anything about the .js files....
I guess for the next release some tidying is needed! There are also loads of icons that aren't in use anymore - we could probably strip out quite a bit (as well as tidying the comments!).
One thing you might try - in dbfm.module somewhere around line 1030 (at the end of the attachit function) can you change "print $output" to "echo $output". See if that helps. I know that if you put "return $output" you'll certainly get the effect your screenshot shows (although in a greybox if you're using the correct .js)
#17
You are using the DBFM icon on the TinyMCE toolbar? or the one below the node input form?
M.
#18
DBFM not appear if you use garland theme, try to use another...
Good Luck
#19
Nope - I can't agree with you there. My development machine runs garland and it runs dbFM fine. We'll have to look elsewhere for the problem!
#20
hello
I moved these two files out of the way. Same behavior.
Geof
#21
@rooey
Of course I double-checked the readme.txt and followed instructions there. I added the plugin initialization stuff and also checked the path in editor_plugin.js.
The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));
Is this correct?
As mentioned earlier, I'm using the icon included in tinymce's toolbar, NOT the button below the editor box. This button (the one below the editor box) works fine. IE I "disable rich-text" and click on the button below the editor box and I've got a pretty greybox with dbfm in it.
note: just noticed it is not necassary to disable rich-text anymore...
#22
@nurmanx
check with serveral other themes... same problem.
#23
"The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));
Is this correct?"
Although in drupal 5 you're supposed to put non-core modules in the sites directory, in practice some sites still have ALL the modules under the modules directory. If you're in that category then you should replace 'sites' with 'modules' in the line above.
I'm guessing (from your original screenshot) that everything's fine there.
Do you run firebug? Are there any errors when you're on a node add or node edit page?? Gotta say this one's really got me puzzled!
#24
Just a thought - After changing the js code in the tinymce/jscripts/plugins/drupaldbfm directory did you remember to trash your browser cache??
#25
sorry - that should have read tinymce/jscripts/tinymce/plugins/drupaldbfm
#26
The problem comes from tinymce's compression plugin!
Well, very good suggestion. I did not. I installed it and I'm getting this error when I click on tinymce's dbfm button:
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/browser.xml :: :: line 644" data: no]http://w3.cbss.inet/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=true&plugins=contextmenu%2Cdrupalbreak%2Cdrupaldbfm%2Cemotions%2Cfullscreen%2Cinlinepopups%2Csearchreplace%2Cstyle%2Ctable&themes=simple%2Cadvanced&languages=en&diskcache=true
Line 1957
I googled a bit for NS_ERROR_FAILURE and found that it is not so informative...
But I also noticed this "tiny_mce_gzip.php" in the error message. So I removed tinymce's gzip plugin and it worked!
If I enable the gzip plugin again, the button doesn't work anymore!
#27
I'm afraid you're on your own with that one.
#28
be advised that you'll need to run drupal in the root of your webserver for this to work correctly.
You also have to go to the settings pages for DBFM and DBFMgreybox and "Save" the settings before running the tool.
#29
#30
Heard of no other users with the same problems - hope the problem's gone away for good?