Upon installing linktocontent on a fresh Drupal 5.1 installation, the buttons do not appear in TinyMCE on both the MSIE6 and MSIE7 browser.
Here are my step-by-step instructions:
Installing Link to Content
- Move the unpacked "linktocontent" directory to C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\modules
- Move the 2 subdirectories in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\modules\linktocontent\tinymce_plugins to C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\modules\tinymce\tinymce\jscripts\tiny_mce\plugins
- Register the plugin with TinyMCE by adding the following lines to C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\modules\tinymce\plugin_reg.php (right after the last
$plugins['easylink']entry around line 47):
// linktocontent.module: linktonode if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/linktonode/')) { $plugins['linktonode'] = array(); $plugins['linktonode']['theme_advanced_buttons3'] = array('linktonode'); } // linktocontent.module: linktomenu if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/linktomenu/')) { $plugins['linktomenu'] = array(); $plugins['linktomenu']['theme_advanced_buttons3'] = array('linktomenu'); } - After the module and the TinyMCE plugin have been installed, enable the module:
- Go to "Administer", "Site building", "Modules": http://localhost/admin/build/modules
- Tick Linktocontent, Linktocontent Menu and Linktocontent Node in the "Content" section and click "Save configuration"
- This module currently does not trigger the adminrole module. The admin permissions must be specified by hand for now. Go to "Administer", "User management", "Access control": http://localhost/admin/user/access
- linktocontent module: enable "administer linktocontent" for the admin role
- Click "Save permissions"
- Go to "Administer", "Site configuration", "Link to content": http://localhost/admin/settings/linktocontent
- Disabled plugins: enable "Link to menu" and "Link to node"
- Click "Save configuration"
- Enable the Link to Content plugins in the TinyMCE profile(s)
- Go to "Administer", "Site configuration", "TinyMCE" http://localhost/admin/settings/tinymce
- Edit each relevant profile by clicking "edit" to the right of each relevant profile
- In Buttons and plugins, enable "linktomenu" and "linktonode"
- Click "Update profile"
The bug appeared when executing these steps in the following order: 1 - 2 - 3 - 4 - 7 - 5 - 6
I did not try yet the installation procedure in the sequence 1 - 2 - 3 - 4 - 5 - 6 - 7.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | functions.js__0.txt | 8.97 KB | stborchert |
| #13 | functions.js_.txt | 8.74 KB | stborchert |
Comments
Comment #1
stborchertHi.
Did you try any other browser?
1. ok
2. ok
3. you don't need to do this because its done during installing the contrib modules (linktocontent_node, linktocontent_menu)
4. ok
5. I don't get this. How should the module trigger adminrole?
6. ok (did you make additional settings for linktomenu/linktonode?)
7. ok
Seems all fine. I would mind that it isn't a problem with linktocontent because the buttons aren't displayed if there's something wrong with plugin_reg.php or the tinymce profile itself.
Could you try please steps 1-2-4-(5-)6-7.
Comment #2
ShutterFreak commentedI did not try another browser at the moment: only MSIE6 and MSIE7. I now also tested with the Mozilla FireFox 2.0.0.3 browser, with the same result.
I was unaware of this. The documentation told me to edit those files manually.
I use the adminrole module for setting "admin" privileges to a given role (which I gave the name "admin"). I don't know how adminrole interacts with other modules; it probably hooks in the module registration API, which I am not familiar with. I will definitely retest this path.
Initially not, but now I did enable all content types for both linktomenu and linktonode. I still don't see the buttons though.
I repeatedly edited the TinyMCE profile by disabling and then reenabling both linktocontent plugins, still to no avail.
I will do a fresh Drupal reinstall this afternoon.
Does it matter that I have both Organic Groups and OG Mandatory Group modules active?
Cheers,
Olivier
Comment #3
stborchert:-) Only if the auto-installer didn't work.
No, this shouldn't matter.
I've send you a personal msg to give you my mail...
Comment #4
stborchertErr, the "contact"-function seems to be not working at the moment. I'll try again later...
Comment #5
stborchertHi.
Any status update?
Comment #6
ShutterFreak commentedNo update yet.
Maybe this: which jQuery version does Link to content need? So far I am using the one shipped with Drupal 5.1.
Best regards,
Olivier
Comment #7
stborchert5.x-1.2 only works with the jQuery version shipped with drupal.
The newest version of LinkToContent (1.5) works with both, the old jQuery and the newer one that comes with jquery_update.module.
Comment #8
stborchertHi.
Are the buttons still hidden?
You do not use tiny_mce_gzip, don't you!?
greetings,
Stefan
Comment #9
ShutterFreak commentedHi Stefan,
I am indeed using tiny_mce_gzip. I will install linktocontent again on another Drupal 5.1 installation (and make sure I am not using tiny_mce_gzip this time), and see how it works.
Best regards,
Olivier
Comment #10
stborchertHaha, I'm a magician :-)
As posted in #151671 try to copy linktonode/editor_plugin.js to linktonode/editor_plugin_src.js and do the same with linktomenu.
TinyMCE_Gzip searches for {...}_src.js which is missing for each module.
greetings,
Stefan
Comment #11
ShutterFreak commentedI installed version 1.5 (currently disabled tiny_mce_gzip), and this time I see the linktonode button (on the 3rd row)!
However I get a JavaScript error when the linktonode popup window appears:
I did not install any update to jQuery, so I still run the "vanilla jQuery" as shipped with Drupal 5.1.
Thanks for your support!
Olivier
Comment #12
stborchertFine.
Argh.
Hm, with Firefox its working but with IE we get this error message (just installed a fresh copy).
I have to test a while before I can say more...
greetings,
Stefan
Comment #13
stborchertOk, I got it.
Don't know why, but IE didn't load the additional js-files anymore.
Could you please try the attached version of functions.js for linktonode (it includes all other js-files).
If it's working I will create a new release.
greetings,
Stefan
Comment #14
ShutterFreak commentedHi Stefan,
Thanks for your quick replies!
I uploaded your JS file (for linktonode), and now the popup works for both FireFox and MSIE7.
I realize I forgot to specify which node types should participate in Linktonode. I ticked all node types, so now the list is not empty anymore :)
Just one question: will a similar patch be required for linktomenu? Would the same file do the job?
Thank you very much for your support, Stefan!
Cheers,
Olivier
Comment #15
stborchertHi.
Puh, good to hear.
Yes, linktomenu needs this, too.
No, unfortunately not. But you can use the file I attached.
greetings,
Stefan
Comment #16
ShutterFreak commentedThanks!
I guess the issue may now be closed.
Comment #17
stborchertGreat.
I'll close it after creating the new release (can't do it now).
Thanks for you bug tracking and your patience.
Stefan
Comment #18
stborchertdone