MediaWiki talk:Gadget-Slideshow.js

From Wikimedia Commons, the free media repository
(Redirected from User:Dschwen/Slideshow)
Jump to: navigation, search


Slideshow button (click to start slideshow)

Bugs / Feature requests[edit]

Doesn't work[edit]

This script does not work for me (Firefox 3 on Windows XP). It takes me to another screen, but the images are not shown. Greetings, SPQRobin (talk) 22:16, 6 July 2008 (UTC)

Please purge your cache and try again. The HTML rendering of the galleries has changes, I had to adapt the script. --Dschwen (talk)
Yes, it works now. Thanks, SPQRobin (talk) 13:00, 11 July 2008 (UTC)

✓ Done

Example[edit]

Can you put up an example of this? I would like to see how it works.

Arrows[edit]

Could there be arrows for controlling the pictures? Like left for previous image and right for next?--Diaa abdelmoneim (talk) 12:26, 10 July 2009 (UTC)

Current status[edit]

Once in a while, this doesn't work for me. Currently it doesn't and I'm not sure if it's due to the changes of last week. Does it work for others? -- User:Docu at 20:04, 26 September 2009 (UTC)

Hello Dschwen, using Firefox 3.5.3 slideshow doesn´t work either. Maybe you can help? --4028mdk09 (talk) 12:36, 6 February 2010 (UTC) working it´s a really fine tool :-)
Must be a recent mediawili update. I'll see what I can do. --Dschwen (talk) 14:17, 6 February 2010 (UTC)
Thanks a lot. --4028mdk09 (talk) 16:37, 6 February 2010 (UTC)

Only works on some images[edit]

I just activated this gadget. Looking at the St. Louis page, some images come up in the slideshow, others don't. I tested it with Firefox, Internet Explorer, and Chrome. It's the same with all three. Any fix? Jdsteakley (talk) 18:19, 30 March 2010 (UTC)

Yes, very weird. Tsthumb must be broken [1]. --Dschwen (talk) 18:32, 30 March 2010 (UTC)
Turns out it is a problem with the underlying database [2]. --Dschwen (talk) 19:22, 30 March 2010 (UTC)
DaB, the tsthumb maintainer implemented a workaround. --Dschwen (talk) 20:06, 30 March 2010 (UTC)

borken[edit]

the URLs parsed from the href of the thumb-links are already url-encoded (in mediawiki's url-encoding variant for /wiki/-urls) and then url-encoded again with

 showimg.src = 'http://toolserver.org/tsthumb/tsthumb?w=800&h=800&domain=commons.wikimedia.org&f='+encodeURIComponent(slideshow.list[slideshow.current]);

additionally, the toolserver seems to expect url-encoded file names in ISO-8859-1, whereas commons uses UTF-8 -- (talk) 19:49, 4 June 2010 (UTC)

Titles[edit]

Hi, nice tool! I had some trouble finding out, though. You should add a note about how it works. I was looking for a new tab or something the like. Tell people to move their mouse over the gallery to see the effect.

My pictures have titles; it would be nice to see them in the slide show as well.--Nobrook (talk) 11:05, 29 August 2010 (UTC)

Usage of window.setTimeout() is wrong.[edit]

The first parameter of window.setTimeout() should point to a function not a string. So,

window.setTimeout("slideshow.nextImage()",3000);

should be replaced by

window.setTimeout(slideshow.nextImage,3000);

Otherwise, Opera will throw an exception.

--H0m3r (talk) 21:06, 5 November 2010 (UTC)

Undefined variable: wgServer[edit]

Using Opera 10.63 I got the following error:

Uncaught exception: ReferenceError: Undefined variable: wgServer

Because it tries to build the slideshow object before wgServer is defined. This can be solved by including the whole code in a function that is called in the window.onload event, i.e.: http://javascript.pastebin.com/AE1XWm4Q

--H0m3r (talk) 21:07, 5 November 2010 (UTC)