I've tried to install Lightbox V2 on Drupal 5.1 that already have CCK 1.4, Contemplate 1.1 installed. I found that when I installed Lightbox V2 (Date Apr 30, 2007), the edit template doesn't show the collapse/expand arrow icon. The problem is that it's expand only if that box has checked with "Affect Output", but if that box is unchecked, it's collapsed. (And no way to expand it.) That means I can't set a new template at all. I've tried to install/uninstall Lightbox two times and found it's only happen when I installed Lightbox. I've tried on both IE7 and Firefox 2 browser.

CommentFileSizeAuthor
#12 image_nodes_js.zip_.txt932 bytesstella

Comments

stella’s picture

Assigned: Unassigned » stella

I can't reproduce this with the latest versions of contemplate, cck and lightbox2 using the garland theme.

This is assuming you're talking about the collapsible fieldsets on a random "create template" page linked to from "Administer >> Content management >> Content Templates". Whenever I go to create a template for a node type, all 3 fieldsets (teaser, body, RSS) are collapsed but expand when clicked on and all have their "affect ... output" checkboxes unchecked.

There's no reason why lightbox2 should affect the collapse/expand stuff. It only deals with images, not forms. Does the same thing happen if you enable other extra modules and then disable them? Are other collapse/expand fieldsets affected?

Stella

seakayjay’s picture

The same problem goes to me. Once i've enabled the lightbox, the expand/collapse arrow disappears. I'm not able to expand or collapse the box.

However, when i disable the image.module, everything is fine. Does it mean that image.module is conflicting lightbox?

stella’s picture

I don't think it's to do with any particular module, maybe it's something to do with the number of modules installed? There's a new release of the lightbox2 module now: lightbox2 5.x-1.0.

stella’s picture

Also check out this issue.

abx’s picture

snpower, yes, that's where I got the problem. However, the CCK I currently installed is 1.4, not the latest one. I also think the same as you that Lightbox shouldn't be the problem since I installed 2 modules at the same time which is Thickbox and Lightbox. At first, I just tried to work with Thickbox and see if it's cause the problem and found later that it's because of Lightbox. Also, I've tried to install another module without any problem.

For version 1.0 that just released today. I uninstalled and deleted the older version. Upload a new one but Lightbox module didn't show up in Module page. (So, I can't install it.) I tried to upload older lightbox module again and it works fine. which I've never used before and another one show up correctly. So, Does 1.0 version got the problem of installing it?

ckjian, I didn't have image module installed though. I mainly have CCK, View and Imagefield module. Now, I'm confused what caused this problem.

For the link snpower said, I tested it by create new content without any problem. (All collapse/expand works correctly.) Also, I did a pure install of Drupal 5.1. So, that shouldn't be the issue.

abx’s picture

"which I've never used before and another one show up correctly."

above, I intended to say that I also have tried to upload some other new module that I never have before. The new module shows up fine in the module page. (Just Lightbox V2 1.0 doesn't show up correctly.)

stella’s picture

Ok there was a problem with the 1.0 release, but I've made another one - lightbox2-5.x-1.0-1. Sorry about that.

abx’s picture

The new version didn't fix my problem though. I also found that some content types shows different behavior. For Page, Story and any new content type that created though CCK got the problem. But for Poll, no problem at all.

Also, I used to installed image module. So, there is a image content type left. That image content type got no problem also.

And with Advanced Poll module that I've just installed, there are two new content types. The Ranking Poll got no problem but Binary Poll got the same problem with Page and Story.

Uninstall Lightbox V2 module solve those problem as usual.

stella’s picture

Does it happen on any other forms? Such as the "my account" page?

Which browser does this happen in? Could you try it in Firefox and send me any javascript errors that appear in the "Error Console"? Does clearing your cache help?

Stella

abx’s picture

Version: 5.x-1.0-1 » 5.x-1.x-dev
Status: Closed (fixed) » Active

In My Account page, it seems to work fine. I can see collapse/expand for TinyMCE Rich text setting and Comment setting.

The problem is exactly the same to both Firefox and IE 7. Clear cache in IE7 didn't help.

For the error I found under Firefox. Below are all errors I got when loading Edit template in Contemplate:

Error: $(document).ready is not a function
Source File: /sites/all/modules/lightbox2/js/image_nodes.js
Line: 23

Error: $("input[@id*=enable]") has no properties
Source File: /sites/all/modules/contemplate/contemplate.js
Line: 34

Error: $(document).ready is not a function
Source File: /misc/textarea.js
Line: 33

Error: $(document).ready is not a function
Source File: /misc/collapse.js
Line: 54

Error: $(document).ready is not a function
Source File: /sites/all/modules/advpoll/advpoll-vote.js
Line: 56

Error: tinyMCE.baseURL has no properties
Source File: /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js
Line: 1

Error: tinyMCE.baseURL has no properties
Source File: /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js
Line: 1

Error: tinyMCE.baseURL has no properties
Source File: /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js
Line: 1

Error: $(window).load is not a function
Source File: /sites/all/modules/imce/imce_set_tinymce.js
Line: 3

stella’s picture

Use the scriptaculous libraries from www.stellapowerdesign.net/scriptaculous-drupal.zip instead of those from script.aculo.us.

Stella

stella’s picture

Version: 5.x-1.x-dev » 5.x-1.0-1
Status: Active » Fixed
StatusFileSize
new932 bytes

Update - this issue was fixed by using the scriptaculous js files from the link provided in comment #11, the attached zipfile of the two image_nodes js files and by clearing the cache.

Stella

stella’s picture

Should be fixed in lightbox2 5.x-1.1.

Cheers,
Stella

stella’s picture

Status: Fixed » Closed (fixed)

Status: Active » Closed (fixed)