Overlay images not available for displaying

From semantic-mediawiki.org

It works on this wiki. Unless you provide more information (SRF/SMW/MW version) and how to replicate the described behaviour (best to have have access to a public wiki), it will hard for anyone to provide useful assistance.

19:25, 9 April 2013

Hello, thanks for the reply. My last attempt looks like this:

 {{#ask: [[File:picture1.jpg]] OR [[File:picture2.jpg]]|?A_property|format=gallery|overlay=yes}} 

Version details: MediaWiki 1.20.2, Semantic MW 1.8, SRF 1.8

19:56, 9 April 2013

The above cited example works on this wiki as well. See [1]

[1] Select images directly

20:33, 9 April 2013

Well, we managed to solve it at last. We are not sure its the best solution, but it works for now. On the "ext.srf.gallery.overlay.js" we changed the line 64 from this:

var title = image.attr( 'href' ).replace(/.+?\File:(.*)$/, "$1" ).replace( "%27", "\'" ),

to this:

var title = image.attr( 'href' ).replace(/.+?\Archivo:(.*)$/, "$1" ).replace( "%27", "\'" ),

We are using a Wiki in Spanish, I should've mencioned it ("Archivo" is spanish for "File"). Is there a better solution?

Cheers, Benjamín.-

23:54, 10 April 2013

Nice, you are the first testing it with a non-En language therefore [1] should fix this. This change will only go into 1.9, any other version should apply it manually.

[1] https://gerrit.wikimedia.org/r/#/c/58646/

03:10, 11 April 2013

I tested on Opera 12.15 for Win/Linux and the images overlay option stops working on this wiki. It was fine a few days ago.

01:29, 20 April 2013

I tested on Opera 12.15 for Win/Linux and the images overlay option stops working on this wiki. It was fine a few days ago.

01:29, 20 April 2013

I just checked Overlay images with Opera 12.02 and it works.

Due to the language issue, the JS script needed a change therefore pages served by the ResourceLoader need to be purged.

02:45, 20 April 2013

I'm getting the same error, though I'm using English language. MW 1.19.3, SMW, SRF 1.8 on IIS7.5 Windows Server 2008 R2.

 {{#ask: [[Category:some category]] [[Has some property::property1]]

The little square boxes don't show up. And when I hover over the image, the browser shows the destination URL to be the page URL, whereas on the demo page, it shows the destination URL as the image's File: URL or the actual image URL.

I wonder if this has something to do with a conflict with another extension.

Without the overlay=yes parameter, a standard gallery is shown, and inspecting the destination URL when hovered over the image shows the File: URL.

07:11, 3 May 2013

With no accessible public source available to inspect the issue and the format working on smw.org, there is yet little chance for making suggestions about the possible cause or solution.

The only advice I can give is to compare the examples on smw.org with the examples you have employed and check for possible JavaScript errors (see here).

PS: The change cited above for multilingual namespace support is only deployed with SMW/SRF 1.9.

12:18, 3 May 2013

I know this is old, but I just ran across this problem myself. On Windows servers, the href uses "%3A" instead of ":". Changing

var title = image.attr( 'href' ).split( encodedNsText + ':' ), to var title = image.attr( 'href' ).split( encodedNsText + '%3A' ),

on line 96 of ext.srf.gallery.overlay.js worked for me.

21:49, 12 January 2015