Forums › Forums › Slimbox2 plugin › I have rolling circle but no image
- This topic has 6 replies, 3 voices, and was last updated 14 years, 4 months ago by Anonymous.
-
AuthorPosts
-
July 10, 2010 at 6:13 pm #1527musculus cerebriMember
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 "Ä…ÄÂJuly 10, 2010 at 7:07 pm #8852malcalevakModeratorI’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.July 10, 2010 at 8:42 pm #8853musculus cerebriMemberHi,
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.July 11, 2010 at 1:34 pm #8854musculus cerebriMemberHi,
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! ” title=”Wink” />
July 12, 2010 at 12:33 am #8855malcalevakModeratorGood, 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.
July 14, 2010 at 1:28 am #8856AnonymousMemberthat worked, thanks!!
August 5, 2010 at 10:42 pm #8857AnonymousMemberThat fixed the problem on single image pages.
Thank you -
AuthorPosts
- You must be logged in to reply to this topic.