I am using Drupal 7
i have add this a class="colorbox-node" href='.$base_path.'show/form?width=600&height=600>Test"; in my page _preprocess (template.php)
On web page it looks like this
a href="/drupal-7.15/show/form?width=600&height=600" class="colorbox-node init-colorbox-node-processed-processed">Test"

but when ever i clicked on this link, popup is not opening either it is normally opening new page(as normal http req) .

i am using firefox 13 as browser and i have tested in all browsers.

using bartik theme
While doing more testing got one more java script error ($.colorbox is not a function) please go through

Comments

harshil.maradiya’s picture

Issue summary: View changes

making changes in description

harshil.maradiya’s picture

Issue summary: View changes

making description more understandble

Vendramini’s picture

To use the function coloxbox_node version colorbox-7.x-2.0 (http://drupal.org/node/1704592)
and version of Plugin Version 1.3.20 - The current version of the module and its plugin colorbox are incompatible with
the colorbor_node.

By
drupalbrasil.com.br

franckdg’s picture

Sorry but it doesn't work with these versions too.

iLLin’s picture

I'll work on a new release soon to address this.

iLLin’s picture

I just downloaded the latest drupal, installed the latest colorbox-dev version and installed the lastest colorbox.js version. Everything for me works fine. Can you please post up how you can duplicate this?

deanflory’s picture

I too am finding that this module is not working at all but switching out "colorbox-node" for "colorbox-load" works fine except for having all the other block regions visible:

<a class="colorbox-node" href="@terms?width=500&height=500&iframe=true">Terms & Conditions</a>

iLLin’s picture

What happens? Any error messages? does the popup display? what versions are you using?

iLLin’s picture

Do you have a link that I can see this reproduced?

deanflory’s picture

The link does not pop up a colorbox, it just takes the browser to the linked page in the same window.

No error messages.

Colorbox Node 7.x-2.6
Colorbox 7.x-2.3

Of note, I am trying this with the Legal module that automatically creates a node at /legal. Basically Legal presents checkboxes for agreeing to Terms & Conditions that can be shown in a css box with scroll, as just HTML unrestricted visually, or as a separate page that creates a link on the word "Terms & Conditions", which is where I'm attempting to get a colorbox-node link to work. So it may be that it's not a normal node-type, user-created node but instead is a hardcoded module-created node and may be what is causing it not to work.

Again, using the regular colorbox method without Colorbox Node works perfectly. I have not tried this on another regular node to another regular node.

redijedi’s picture

I am also experiencing this issue however no workaround appears to work.

Drupal 7.21
Colorbox Node 7.x-2.6
Colorbox 7.x-2.3
Colorbox JS 1.4.10

Relevant HTML from view:

<div class="field-content">
<a class="colorbox-node init-colorbox-node-processed-processed" href="/projects/teasers/54?width=500&height=500&iframe=true" style="display: inline;">
<img width="100" height="54" title="Web Site" alt="Web Site" src="http://local.com/sites/local.com/files/styles/thumbnail/public/projects/web-site/images/main-image.png?itok=5Uq8ia1N" typeof="foaf:Image">
</a>
</div>
iLLin’s picture

Wut URL comes up? What happens? Any JS errors?

robert.labrie’s picture

So I'm getting $.colorbox is not a function on line 66 of colorbox_node.js

$.colorbox($.extend({}, settings.colorbox, params));

I do have the colorbox library in sites/all/libraries/colorbox. I'm not seeing any 404's in the net section of firebug when the page loads, so as far as I can tell everything is there. I don't see jquery.colorbox-min.js in the net window either though, so I don't know. If I've posted something useless, please disregard.

robert.labrie’s picture

Installed dev version per other bug report. Sorry. All is well.

arosboro’s picture

@iLLin

Uncaught TypeError: Object function (a,b){return new d.fn.init(a,b,g)} has no method 'colorbox' colorbox_node.js:66

Happens after clicking a link before the link loads in the current page. Using dev version of colorbox, colorbox_node 2.x, and latest colorbox library downloaded today.

colorbox.js is being included in the header after colorbox_node. To fix this, we need to include colorbox_node.js with drupal_add_js and add a weight so that it gets included last.

iLLin’s picture

Hmm, I thought the behaviors were fired last no matter what? Have you set a weight to it and verified it fixes your issue?

cmgdesign’s picture

Same issue here - no errors, just takes me to the linked page instead of opening a overlay.
I'm noticing when I run cron though that it's not recognizing the .js in the libraries. I've gone through all the documentation and I have it in the right spot, I've downloaded and installed the newest modules and libraries but it still won't recognize the library. I re-named the colourbox folder from colorbox-master to colorbox with no effect.

iLLin’s picture

Category: bug » support
Priority: Critical » Normal

Yuh, I have had issues with Drupal caching when recognizing new libraries or not picking up new ones. To be honest, I just keep clearing cache and uninstalling and reinstalling till it works lol.

arosboro’s picture

@#14 iLLin,

Yes, I added the following to colorbox_node.module and removed colorbox_node.js from colorbox_node.info.

<?php
/*
 * Implements hook_init().
 */
function colorbox_node_init() {
  drupal_add_js(drupal_get_path('module', 'colorbox_node') . '/colorbox_node.js', array('type' => 'file', 'weight' => 10));
}
?>
iLLin’s picture

Can you add it to the preprocess_html() instead and see if that works? Don't really want to use hook_init().

arosboro’s picture

It works in hook_preprocess_html() too. I'd make a patch but I see someone's already been testing it out on the master branch (without setting weight).

mareks’s picture

StatusFileSize
new13.64 KB
new23.21 KB
new22.69 KB
new13.16 KB

I have a fresh D7 install with only minimal number of core modules enabled.
I also have these contrib modules:
* Webform (7.x-4.0-alpha6)
* Webform AJAX (7.x-1.1)
* Colorbox (7.x-2.4)
* Colorbox Node (7.x-2.6)
+ the ones that are required like ctools, libraries etc...

I created a webform with a conditional field. Works fine on a normal page.

But, when I open that webform in a colorbox window then the conditional field is always shown. As if tho the JS is not included?

Any ideas? Thanks,

iLLin’s picture

Install the latest DEV version of colorbox 3.x-dev instead of 2.6. You may have a conflict or something with the webform AJAX module.

ajaygupta1139’s picture

IF you are facing the issue in admin panel then you have to exclude the admin page from the colorbox advance settings "Show Colorbox on specific pages". After that colorbox.js will be loaded in your admin pages.
Please remove the "admin*" from the "Show Colorbox on specific pages" box

iLLin’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

nuncius’s picture

with me, it loads loading.gif, but it doesn't load the node, like it can't find it.

<a class="colorbox-node" href="statement?width=500&amp;height=500">statement </a>

mysite.com/statement does exist and colorbox works perfectly with images.
Does anyone know why?

I am using Colorbox Node 7.x-3.0 Colorbox 7.x-2.4 and drupal 7.22

thanks

deanflory’s picture

nuncius, change to:

<a class="colorbox-node" href="statement?width=500&height=500">statement</a>

Remove the amp;

nuncius’s picture

Update:
After installing 7.x-3.x-dev, everything works fine.

nuncius’s picture

Issue summary: View changes

adding java script error message

tusik’s picture

Also not working for me. I tried all possible combinations of stable and dev releases of colorbox and colorbox node, and it just does not work. No error. Simply loads the page in the href in the browser window.

I can link developer to the test site if wanted.

iLLin’s picture

Check to see if you have any javascript errors in the console.

tusik’s picture

Hello @iLLin. First of all thank you very much because you are very active and responsive in all threads where issues with this node are mentioned. And I have been all day browsing to solve this issue.

Second, I managed to have the colorbox pop-up open (after disabling and uninstalling both colorbox and colorbox_node and re-insalling for a second time and clearing caches).
Now colorbox loads the node, but not in all browsers. I'm testing at the moment. For example, it does load in Firefox 10.2 in mac, but does not show in Safari 5.0.6 mac. However in Firefox Ubuntu it does not show, but does show in Chrome, in the latest vesions...

Thank you.

tusik’s picture

Console errors:

Use of getAttributeNode() is deprecated. Use getAttribute() instead. js_zzcIWOou_jnX0ZWAIA4sb6Xy_p5a8FZNA0GySvuWjPU.js:16

21:15:07.717 Use of attributes' specified attribute is deprecated. It always returns true. js_zzcIWOou_jnX0ZWAIA4sb6Xy_p5a8FZNA0GySvuWjPU.js:16

21:15:07.756 Use of getPreventDefault() is deprecated. Use defaultPrevented instead. js_zzcIWOou_jnX0ZWAIA4sb6Xy_p5a8FZNA0GySvuWjPU.js:16

21:24:30.835 TypeError: $(...).editable is not a function <---This is for jeditable I think

tusik’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
iLLin’s picture

What version of Jquery are you using?

tusik’s picture

jQuery 1.5.2 / jQuery UI 1.8.11

iLLin’s picture

Let me update my versions to that and see what happens. Give me a few.

iLLin’s picture

Can you turn off javascript aggregation so we can see what file these errors are occurring on. And update this thread. I just downloaded jquery_update to get version 1.5 and the colorbox still works for me.

tusik’s picture

Ok, I disabled JS aggregation and could see the problem was NOT colorbox_node but jeditable, entirely.
colorbox_node works as designed. However for reference, fields set to display a jeditable format in the colorbox view, will prevent the node from loading. I am updating thread.

Thank you for yout ime.

tusik’s picture

Status: Active » Closed (works as designed)
s_chandela’s picture

<?php global $base_url; 

?>
//Only node in popup
<a class="btn btn-primary colorbox-node" href="<?php echo $base_url; ?>/add/page?width=800&height=500&destination=node/10" role="button">Add Page</a>
//whole page in popup
<a class="btn btn-primary colorbox-load" href="<?php echo $base_url; ?>/add/page?width=800&height=500&destination=node/10" role="button">Add Page</a>