Closed (fixed)
Project:
Link to content
Version:
5.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2007 at 17:02 UTC
Updated:
26 May 2007 at 13:28 UTC
Jump to comment: Most recent file
Comments
Comment #1
vm commentedDid you move the linktonode folder from the tinymce_plugins folder to the tinymce installation ? If its anything like the other plugins that comes with / or seperate from tinymce, the folder has to be add to the tinymce library plugins folder. the plugin_reg.php file (if i remember the correct name of the file) may have to be altered as well adding the proper button to the tinymce bar.
Comment #2
vm commentedinsure the above code was indeed added to the plugin_reg.php file
you can figure out what button linktonode should look like by inspecting linktonode/images/linktonode.gif which is the image the button should be using.
Comment #3
stborchertHi.
Thank you, VeryMisunderstood for youre quick help.
The plugin info should be inserted into plugin_reg.php while installing linktocontent_node or linktocontent_menu (see #119677).
Unfortunately the plugings themself are not copied to the tinymce plugins folder yet.
Comment #4
jsgammato commentedWell, I got it to appear, but now when I click it, it never finishes loading and I get an error that says an object was expected in Char 3 Line 115 of linktonode\popup.php
Comment #5
stborchertHm, sure it says "popup.php"? The file only has 95 lines.
Could you please make a screenshot of this javascript (?) error.
Comment #6
stborchertForget to change title...
Comment #7
jsgammato commentedHere is a screenshot. You can't see the line 115 char 3 because the address to the popup.php is too long, but that is what it says.
Comment #8
jsgammato commentedHere is the left-hand part of the error message.
Comment #9
stborchertHm, weird.
Which version do you use (Internet Explorer)?
Comment #10
stborchertAnd which version of popup.php...
Comment #11
jsgammato commentedI use IE 6.0.2900
and popup.php // $Id: popup.php,v 1.6.4.4 2007/02/21 16:26:51 stborchert Exp $
(I only just downloaded it last night for the first time)
Comment #12
stborchertHm. Well, lets debug a little :-)
Could you please insert an alert into jscripts/functions.js:
Line 53:
alert(_getBaseHref());Perhaps some additional alerts in nodelist.js to isolate the error...
Comment #13
jsgammato commenteddone, I think - no space between alert and the rest?
I typed: alert(_getBaseHref());
into a previously blank line 53
Comment #14
stborchertJup. It should give you a message box the next time you open the plugin.
Comment #15
jsgammato commentedSame error, but I see no message.
According to my FTP client:
< 257 "/www/HarnWriters/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/linktonode/jscripts" is current directory.
and functions.js is now size = 3,628, so I am sure I copied it to the place I got it from.
Comment #16
stborchertNo message? Uh, thats really weird. But you can see the loading image?
Is this your code?
The message must appear if you see the loading image. :-[
Comment #17
jsgammato commented$("#statusImg").top(top + "px").show();
alert(_getBaseHref());
$.ajax({
type: "POST",
is my code, but... I can only see the tiptop of the loading image - see attached
Maybe the message is underneath the image?
Comment #18
stborchertNo not really. They are centered in the calling window.
Try to move the alert call from #53 to #29 (for example).
Comment #19
stborchertCould you please test what happens if you delete your cache (settings > advanced)?
Comment #20
jsgammato commentedI'm not quite sure how to do that.
I'm on Drupal 5.1, so I went to Administer>Site Configuration>Performance and set Page Cache to Disabled, saved, then I re-enabled it and set it to 1 minute (from None) and saved again. I hope that did it.
I sent you a message via your profile, too.
Comment #21
jsgammato commentedI added the var objTop to line 32, with no value:
function loadCategories(obj) {
alert(_getBaseHref());
var params = '';
var vid = '-1';
var objTop;
var top = 75;
if (obj != null) {
var fSel = $("#browse_sel_0_sel");
if (fSel !== null) {
vid = fSel.get(0).value;
}
Comment #22
jsgammato commentedThat also had no apparent effect. I wondered if I am editing the wrong file, but I check and triple check and it sure looks right :(
Comment #23
stborchertCould you please upload the new files (popup.php and functions.js; see mail).
Comment #24
jsgammato commentedwill do
see PM on site
Comment #25
jsgammato commentedIt worked!
You're a genius!
Thank you so much - this will be very helpful on my link-heavy, text-heavy site!
Comment #26
stborchertPuh, nice to hear.
But there's is also the problem with inline popups. But this is an other story... :-)
Comment #27
stborchertComment #28
dcoun commentedHello,
I have the same problem. What was the solution?
Comment #29
stborchertHi.
John didn't use the latest version (
// $Id: functions.js,v 1.10.4.3 2007/03/01 20:27:02 stborchert Exp $).Did you download version 5.x.1-2 of linktocontent?
Comment #30
dcoun commentedI have: // $Id: functions.js,v 1.1.2.2 2007/03/07 08:35:24 stborchert Exp $
and in firefox and opera it hangs waiting the blue "loading" circle, in IE it gives the error mentioned before. I have downloaded the last 1.2 version
Comment #31
dcoun commentedThe above was in linktomenu, the following is in linktonode:
// $Id: functions.js,v 1.10.4.4 2007/03/07 08:35:24 stborchert Exp $
Comment #32
dcoun commentedAgain sorry but the message I get from IE is a bit different:
For linktonode is about the popup.php:
Line: 47, Char:3, Error: The object does not support this property or method
For linktomenu is about the popup.php:
Line: 42, Char:3, Error: The object does not support this property or method
Comment #33
dcoun commentedI am not an expert user and I now found the Error Console in firefox that it is much more clear:
Comment #34
stborchertHi.
I opened a new issue to not spam the accounts of VeryMisunderstood and jsgammato.
Please answer to http://drupal.org/node/147025.