I have rolling circle but no image

Forums Forums Slimbox2 plugin I have rolling circle but no image

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1527

    Hi,

    I have installed wodpress 3.0 with default theme "Twenty ten".
    Then I have installed wp-slimbox2 plugin and added a rel="lightbox" to the url that links to an image.

    However when I click a on a link I get a lighbox effect but there is no image. All I get is a rolling circle in the middle of the screen.

    I tested with Firefox, Chrome, Opera on Linux and Firefox on Windows – none of them work.

    I have only three other plugins installed:
    "Akismet"
    "Google XML Sitemap"
    "Wordpress.com stats"

    My site url is [url=http://natūrali-raumenų-masė.lt/anatomija/alkuninis-raumuo-%E2%80%93-musculus-anconaeus/]http://natūrali-raumenų-masė.lt/anatomija/alkuninis-raumuo-%E2%80%93-musculus-anconaeus/[/url].
    This is IDN domain and image url also has international characters like "Ä…ÄÂ

    #8852
    malcalevak
    Moderator

    I’m about to head out of town for the weekend, but I suspect it may be a combination of the international characters and a function I added to the plugin, but should probably remove.
    If you don’t mind doing some editing, go to the wp-slimbox2/javascript directory and open up slimbox2_autload.js, find all calls to encodeURI and delete them.
    I think that will fix the problem, but if it doesn’t, post back here and I’ll see what I can do when I return.

    #8853

    Hi,

    I wasn’t sure how to do it. There were 6 instances of encodeURI.

    I changed
    [code:1gq7bz75]<a href="’+encodeURI(el.href)+’">[/code:1gq7bz75]
    to
    [code:1gq7bz75]<a href="’+’">[/code:1gq7bz75]

    and I changed
    [code:1gq7bz75]return[encodeURI(el.href),(slimbox2_options.url)?[/code:1gq7bz75]
    to
    [code:1gq7bz75]return[,(slimbox2_options.url)?[/code:1gq7bz75]

    Is this the right way of deleting all calls to encodeURI?
    It didn’t help.

    #8854

    Hi,

    Problem SOLVED.

    I changed
    [code:3hvbtbqj]<a href="’+encodeURI(el.href)+’">[/code:3hvbtbqj]
    to
    [code:3hvbtbqj]<a href="’+el.href+’">[/code:3hvbtbqj]

    and I changed
    [code:3hvbtbqj]return[encodeURI(el.href),(slimbox2_options.url)?[/code:3hvbtbqj]
    to
    [code:3hvbtbqj]return[el.href,(slimbox2_options.url)?[/code:3hvbtbqj]

    This solved my problem as you initially sugested. It only took some time for me to understand how to delete those calls to encodeURI function.

    Have a nice weekend and good football finals!  <img decoding=” title=”Wink” />

    #8855
    malcalevak
    Moderator

    Good, I’m glad that fixed your problem. I’ve been meaning to send out a minor fix to remove the function, since it seems more likely to create more problems than the few it fixes.

    #8856
    Anonymous
    Member

    that worked, thanks!!

    #8857
    Anonymous
    Member

    That fixed the problem on single image pages.
    Thank you

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.