Drupal 6.16
JQuery Update 6.x-2.0-alpha1
Colorbox Plugin 1.3.8 (sites/all/libraries)

I attempted to replace thickbox 6.x-1.6 with colorbox 6.x-1.0-beta5. The end result is not only colorbox not working at all, I got a weird side effect. All of the expandable section of a page, such as item config in view disappeared. Not sure if I am explaining this well. Let me show you the example:

At the bottom of the colorbox config page, there are 3 expandable sections: Load in Colorbox, Styles and options, and Advanced settings (see attached). As soon as I click on Save Config button, they all becomes statick text with no hyperlink even though all the settings are left default. As soon as I click on Reset to Default button, they all comes back to expandable items.

The effect is site-wide. As soon as I click on Save Config, all the expandable items dies throughout the site, and other JQuery stuff such as Popup Calendar dies.

Any help would be appreciate it.

-Hiro

CommentFileSizeAuthor
statickTxt.png6.54 KBmadflute
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

My first guess is that either jQuery Update and/or Colorbox plugin is not installed correctly.

Check the following file so it shows "// ColorBox v1.3.x …" etc.

yourdomain.tdl/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js

And that this file show "jQuery JavaScript Library v1.3.2 …" etc.

yourdomain.tdl/sites/all/modules/jquery_update/replace/jquery.min.js
madflute’s picture

Thank you!
I didn't realize colorbox directory needed to be nested to another colorbox directory under libraries. This fixed the problem.

However, migrating from thickbox is far from over for me. Colorbox now works for fileds I reassigned to colorbox from now removed thickbox, those which I was hoping would had been automatic. The problem is that there are so many fields/content types I used thickbox with, and I don't remember where all of them are.

Maybe I should had not removed thickbox so I could still see which ones I used with? Can I have both thickbox and clorbox side by side while this move-over?

But there is a bigger problem for me. I have so many static HTML content in body where I inserted class="thickbox". I don't really know how to do search/replace in database. Is there any good tool for this?

===UPDATE===

I just noticed colorbox is not working under image gallery where I used to have thickbox.

===UPDATE===

I solved the image gallery issue. Sorry! Oversight.

frjo’s picture

Priority: Critical » Normal

I think running Thickbox and Colorbox at the same time should work. I have done it but only on local dev sites.

Colorbox comes with a Drush command to install the Colorbox plugin, it's the quickest and easiest way. If you are not using Drush, today is an excellent day to start. http://drupal.org/project/drush

For search and replace in the database you can try out http://drupal.org/project/scanner. I have never used it myself since I'm comfortable with SQL. Make sure you take a backup of the database before attempting anything like this!

You could also add a copy of modules/colorbox/js/colorbox.js, add it to your theme and replace the class "colorbox" with "thickbox" in it. For this you need to make sure the Thickbox module is not active.

TeamThunder’s picture

Madflute:
Can you help out and explain how you corrected the issue with the dynamic menus not working. I have the same issue and can't resolve it. It works for a few minutes and then stops. I'm trying to create a colorbox to an external webpage and as far as I can tell colorbox just isn't working for me. I love colorbox and have implemented on some non drupal sites.

Thomas

madflute’s picture

Thank you so much for your help. The scanner plug-in did the wonder. Loved the module.

I still have to go through each fields to reassign thickbox to colorbox. Actually I think it was half working. I see the problem clearer now.

The original
[thickbox: thumbnail]
After replacing Thickbox module with Colorbox:
[colorbox: image] where there is no actual object linked to image in image cache.

Re:Drush, I did try it first as the readme instructed, but I got this, which suggests I don't really know how to use drush other than updating modules.
The drush command 'colorbox-plugin' could not be found.

madflute’s picture

Sorry, not sure what you mean by "dynamic menus". I don't think I am using that feature.

===UPDATE===
Oh, do you mean the expandable config items? If so, my solution was to nest the colorbox directory.

Before:
sites/all/libraries/colorbox/
After
sites/all/libraries/colorbox/colorbox/

frjo’s picture

madflute: Did you change directory to your sites folder before you run the Drush command?

madflute’s picture

Yes. I am assuming the same way I run Drush against module update, the site root directory.

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.