You are here: Pixo Point Support Forum » General Category » Slimbox2 plugin »  (Moderator: malcalevak)I have rolling circle but no image

Author Topic: I have rolling circle but no image  (Read 351 times)

musculus cerebri

  • Newbie
  • *
  • Posts: 3
I have rolling circle but no image
« on: July 10, 2010, 12:13:55 PM »
  • Reply with quote
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 http://natūrali-raumenų-masė.lt/anatomija/alkuninis-raumuo-%E2%80%93-musculus-anconaeus/.
This is IDN domain and image url also has international characters like "ąčįž".
But I believe that's not an issue?

What would you suggest to solve this problem?
Logged

malcalevak

  • Moderator
  • Sr. Member
  • *****
  • Posts: 283
Re: I have rolling circle but no image
« Reply #1 on: July 10, 2010, 01:07:15 PM »
  • Reply with quote
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.
Logged

musculus cerebri

  • Newbie
  • *
  • Posts: 3
Re: I have rolling circle but no image
« Reply #2 on: July 10, 2010, 02:42:34 PM »
  • Reply with quote
Hi,

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

I changed
Code: [Select]
<a href="'+encodeURI(el.href)+'">to
Code: [Select]
<a href="'+'">
and I changed
Code: [Select]
return[encodeURI(el.href),(slimbox2_options.url)?to
Code: [Select]
return[,(slimbox2_options.url)?
Is this the right way of deleting all calls to encodeURI?
It didn't help.
« Last Edit: July 10, 2010, 02:44:26 PM by musculus cerebri »
Logged

musculus cerebri

  • Newbie
  • *
  • Posts: 3
Re: I have rolling circle but no image
« Reply #3 on: July 11, 2010, 07:34:25 AM »
  • Reply with quote
Hi,

Problem SOLVED.

I changed
Code: [Select]
<a href="'+encodeURI(el.href)+'">to
Code: [Select]
<a href="'+el.href+'">
and I changed
Code: [Select]
return[encodeURI(el.href),(slimbox2_options.url)?to
Code: [Select]
return[el.href,(slimbox2_options.url)?
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!  ;)
Logged

malcalevak

  • Moderator
  • Sr. Member
  • *****
  • Posts: 283
Re: I have rolling circle but no image
« Reply #4 on: July 11, 2010, 06:33:21 PM »
  • Reply with quote
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.
Logged

GG

  • Guest
Re: I have rolling circle but no image
« Reply #5 on: July 13, 2010, 07:28:34 PM »
  • Reply with quote
that worked, thanks!!
Logged

Larry

  • Guest
Re: I have rolling circle but no image
« Reply #6 on: August 05, 2010, 04:42:10 PM »
  • Reply with quote
That fixed the problem on single image pages.
Thank you
Logged
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Note: this post will not display until it's been approved by a moderator.
Name: Email:

Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC | DSv4 Design by DzinerStudio