natashawylie / iviewer

image viewer plugin for jquery
233 stars 97 forks source link

Wordpress Integration #19

Closed tombuv closed 12 years ago

tombuv commented 12 years ago

Hi,

I tried to integrate the Lightbox2 in wordpress but it isn't working, (I just got the image in a new page) do you have any idea of what i should change in order to make it work ? (Or just some clues, I'm not very good)

Thanks.

can3p commented 12 years ago

Can you provide a test case to me? I can't figure out what's wrong otherwise

tombuv commented 12 years ago

Thank you for your response. Here are the details.

I want to put "lightbox2" (very nice job by the way) in a wordpress page. I put the script call in the header and i get no error msg

Then i added i my css the css of lightbox2 (I just changed the paths of the images)

And i put this in my code (It's just à link in order to test)

/images/Ceintures/ceinture%20bug.jpg">Show lightbox(horizon) Show lightbox(10years)
```
``` At the beggining i had the image displaying in a full page without any js working. I added jQuery(function(){ at the beggining of main.js and now the matter is that when i click on the links. The black bg and the spinner appears but not my img. The console of chrome says " Uncaught TypeError: Object [object Object] has no method 'iviewer' " in main.js on line 16. Does it help ? Thank you Thomas
can3p commented 12 years ago

Ok, I see. Probably, you are using a wrong demo as the base for your code. Please, look for lightbox demo at the

http://test.dpetroff.ru/jquery.iviewer/test/lightbox/

Feel free to reopen the issues if it will not help