Hi
I'm trying to use Colorbox with PDF Reader (the Idea is to have the pdfviewer that PDFreader handles into a Colobox).

When I'm trying, the Colobox opens itself but inside, I only got "This content failed to load" :(

Any idea ?

Thanks
D

Comments

Anandyrh’s picture

I have planned for the same

clcl’s picture

I had a little bit the same issue and my problem is for the moment partially solved. I had some bad links with localhost in it. This made that my thumbnail was clear on the page, but clicking on it gave the error 'This content failed to load'. In the mean time I did change all the links, by setting each page in full text mode and then a search on localhost in firefox braughted me to every localhost and I replaced it manually with the url mywebsitesname.
But I still have an error when the image opens in one particular contenttype. I have twice sometimes three times the same image, where I have in one or two cases 'This content failed to load'. I continue looking the bug in my programation somewhere.

It is also stupid that I have to change manually each time the localhost. Maybe I have some configuration that I mised.

gChen07’s picture

Im not sure if we have similar problem here, but we are aiming for the same thing.. to load pdf reader inside colorbox..
As of now Im trying to check whether colorbox plugin is working properly.. or as you said the problem might be the link.. But my problem is that I don't know how to create the colorbox link.. I tried to put on plain text and it works like a download link to original content.. Would you mind to post example of your link that works.

clcl’s picture

I'm not using pdf, I only used colorbox. You can see the colorbox link when you are in plain text mode or when you just click disable rich text under the text box.

Everywhere were I had localhost/name I had to put manually the name of my site like this: www.mysitesname.be.
Here the code on localhost:
<p><a class="colorbox colorbox-insert-image" href="http://localhost/name/sites/default/files/image_gallery/montachetechnieken/Mobiele Workshop (2).png" rel="gallery-all" title="Eén van onze mobiele workshoppen"><img alt="Eén van onze mobiele workshoppen" class="image-thumbnail" src="http://localhost/name/sites/default/files/styles/thumbnail/public/image_gallery/montachetechnieken/Mobiele%20Workshop%20%282%29.png?itok=UTe26KpN" style="margin: 20px;" title="Eén van onze mobiele workshoppen" typeof="foaf:Image"></a><a class="colorbox colorbox-insert-image" href="http://localhost/name/sites/default/files/image_gallery/montachetechnieken/Mobiele Workshop.png" rel="gallery-all" title="Eén van onze mobiele workshoppen"><img alt="Eén van onze mobiele workshoppen" class="image-thumbnail" src="http://localhost/name/sites/default/files/styles/thumbnail/public/image_gallery/montachetechnieken/Mobiele%20Workshop.png?itok=Qfe84XKs" style="margin: 20px;" title="Eén van onze mobiele workshoppen" typeof="foaf:Image"></a></p>

and on the server (not localhost):
<p><a class="colorbox colorbox-insert-image" href="http://www.mysitesname.be/sites/default/files/image_gallery/montachetechnieken/Mobiele Workshop (2).png" rel="gallery-all" title="Eén van onze mobiele workshoppen"><img alt="Eén van onze mobiele workshoppen" class="image-thumbnail" src="http://www.mysitesname.be/sites/default/files/styles/thumbnail/public/image_gallery/montachetechnieken/Mobiele%20Workshop%20%282%29.png?itok=UTe26KpN" style="margin: 20px 40px;" title="Eén van onze mobiele workshoppen" typeof="foaf:Image"></a><a class="colorbox colorbox-insert-image" href="http://www.mysitesname.be/sites/default/files/image_gallery/montachetechnieken/Mobiele Workshop_0.png" rel="gallery-all" title="Eén van onze mobiele workshoppen"><img alt="Eén van onze mobiele workshoppen" class="image-thumbnail" src="http://www.mysitesname.be/?q=sites/default/files/styles/thumbnail/public/image_gallery/montachetechnieken/Mobiele%20Workshop_0.png&amp;itok=eaWJLdaf" style="margin: 20px 40px;" title="Eén van onze mobiele workshoppen" typeof="foaf:Image"></a></p>

Hope this helps.

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)