When u change Image Path settings for example add pictures/[node:nid] in File path (possible thanks another great module - http://drupal.org/project/filefield_paths) Colorbox won't show up :(

CommentFileSizeAuthor
#4 test-image.zip6.85 KBspamator12
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

Do you have a link to an example site with this problem?

It's a local site you can save an example page as HTML and attach it here.

hutch’s picture

Category: bug » support
Priority: Major » Normal

If the method you are using, whatever it may be, does not add 'class="colorbox"' to the anchor tag which points to the image you want to display then colorbox will not display it. So look at the source html and figure out how to get your method to do that.
eg

<a href="myimage.jpg" class="colorbox">my picture</a>
spamator12’s picture

Hi. Yea it's localhost machine. I want to make a nice gallery so I'm testing few modules like colorbox, lightbox2, filefields addons.

Colorbox do add class="colorbox colorbox-insert-image" but after using FileField Paths the patch that colorbox use to link to the picture is outdated. I guess is something like "I should link picture to this place but FileField Paths change the location location and I did not receive info where I should link it now." So the the old link dosen't work. Files are saved corectly (with FileField Paths File path settings).

spamator12’s picture

FileSize
6.85 KB

I did not have mobile Internet here - I have uninstall all additional modules - here is a page.

kerios83’s picture

Hmm after install FileField Paths - colorbox is completely lost. iframe is displayed but with an error message.

"I should link picture to this place but FileField Paths change the location location and I did not receive info where I should link it now."

I looks like that but actually all links and paths to images/content looks like normal patch without the FileField Paths tokens. So when you are using path like:

mygallery/myimages/[node:nid] the path in page looks like mygallery/myimages. And colorbox is using this patch. I guess that FileField Paths write somewhere in database that mygallery/myimages = mygallery/myimages/[node:nid] now, but colorbox is not getting that data. I don't know this bug is more Colorbox or FileField Paths related. I hope some Drupal guru look at this and fix it fast cause it's not looks so complicated. I must say that colorbox and FileField is a nice combination ! I would use those two my self if they had better cooperation :)

frjo’s picture

When I test Colorbox with FileField Paths it seems to work just as it should.

You mention the class "colorbox-insert-image", could it be that your are using the Insert module? Could it then be that you have inserted some code with the Insert feature and then afterwards changed the path with the help of the FileField Paths module?

If that is the case you need to remove the code you inserted and insert it again for it to be updated.

spamator12’s picture

@frjo you are right I'm using Inset module to add pictures to the gallery. I have inserted it (picture) again I have even create a new content and added some images to it and it still don't link to the picture. I have "This image could not be loaded" error all the time...

When I add picture via TINY MCE and add link class "colorbox" to it - image is displayed propertly in colorbox. When add image by normal field_image not related with insert - no problem. Only when adding images with Enable insert button (filefield patch is used also) option cause colorbox to not display the image.

frjo’s picture

(Wrong issue, sorry.)

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Has your problem been solved. Could you share with the community?

frjo’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)