In the message

Configuration for "link to node" has been disabled 
because the corresponding tinyMCE-plugin does not exist.
Please check the README.txt for more information."

the link to README.txt is broken.
I'm not sure you can have a direct link to an install file anyway.
Maybe use hook_help instead ?

I don't understand why I get this message, BTW, but I'll post a separate support request if I really can't figure it out :-)

Comments

stborchert’s picture

Hi.
Ähm, you're right. The link to README.txt isn't correct.
You get the error message because you didn't copy the files (folder "linktonode") in linktocontent/tinymce_plugin into the tinymce plugin folder (tinymce/.../tiny_mce/plugins).

(copied from installation.txt):

Installation
------------

1. Copy the linktonode folder and its contents to the modules directory 
   of your Drupal installation.

2. Copy the contents of the tinymce_plugins folder to the tinyMCE plugin 
   folder (/modules/tinymce/tinymce/jscripts/tiny_mce/plugins)

3. For each linktocontent plugin insert the following lines to 
   /modules/tinymce/plugin_reg.php (Example for "linktonode"):
   $plugins['linktonode'] = array();
   $plugins['linktonode']['theme_advanced_buttons3'] = array( 'linktonode' );

4. Go to 'administer' -> 'modules' and enable linktonode.

5. Go to 'administer' -> 'settings' -> 'tinymce' and edit the profile you 
   want to enable the new plugins (for example "linktonode").
   In section "buttons and plugins" check linktonode and save the profile.

6. If you have category.module installed and wish to link categories by 
   selecting them in linktonode, go to 'administer' -> 'settings' -> 
   'linktocontent' and select "category" as active extension for "linktonode"

Hope, this helps.

stborchert’s picture

Assigned: Unassigned » stborchert

I don't understand why I get this message
Ok, seems I should work on the messages to clearly tell the user what's wrong and how to fix it.

Thanks for your hint.

yched’s picture

Well, what I meant with "I don't understand why I get this message" is that I did copy the plugin in the TinyMCE folder.
I even enabled it in TinyMCE profile buttons / plugins...
In fact, I think I did everything that's described in INSTALL.txt...

stborchert’s picture

Status: Active » Needs review

Oh, I got it. It was a really nasty bug (or mistake).
My check, if the plugin-files exists always returned false and I handled it in a wrong way.

Please try the newest versions of linktocontent.module and plugins.inc.

yched’s picture

That looks better, thanks :-)
The error message on admin/settings/linktocontent disappeared, and I can select my "active extension" allright.

But I still can't see any linktonode icon in the TinyMCE toolbar...
(yet the plugin is enabled on the tinyMCE profile, and I added the things in plugin_reg.php)

stborchert’s picture

Hm, strange.
Could you please send me (per mail if you don't want to make it public) your directory structure (modules, tinymce, ...) and some information about your configuration.

yched’s picture

Status: Needs review » Fixed

Er, my fault, silly mistake.
I copied the files in the wrong "plugins" directory
(modules/tinymce/plugins
instead of
modules/tinymce/tinymce/jscripts/tiny_mce/plugins)
Guess I was tired. Sorry about that, and thanks for the quick replies.

stborchert’s picture

Status: Fixed » Closed (fixed)

Puh, good to hear :-)