Extension talk:SlimboxThumbs

Small Problem
Hi, I really like your extension and the fact that thumbnails size adapt to the size of the window. But I think it could cause lots of problem. Each time you open your browser with a different size of window you obtain thumbnails of different size. By looking in the images/thumbs folder. I can see that if 100 people use 100 different window sizes, you will get at the end 100 different thumb files ! It could be a good idea to have the option to limit the number of possible thumb sizes. What do you think of that ?

Thank you


 * VitaliyFilippov (talk) 22:29, 28 September 2012 (UTC) Hm :-) I think you're right, yet instead of 100 there would probably be a relatively small amount of "typical" widths, as related to users' display resolutions... The fix for this is easy, I've just committed it - auto-fitted thumnail widths will be limited to multiples of 80 (I think it's a reasonable number...)

Hey ! Thanks for the update ! I have changed the 80 to 160 to have less thumbs Thank you !

Non existing images crashes page
Hi, this extension is really cool and i like it. But i have a little trouble. Im using MW 1.18.4. When i put a link to non existing image, Slimbox crashes this page and the page is not accesible. I must shut off this extension, then i can go to this page. MW works with non existing files. Where's the trouble? Thank you much. --31.186.189.226 13:32, 27 July 2012 (UTC)
 * I suggest changing line 58 to read:

--89.160.21.47 08:52, 16 August 2012 (UTC)

It works perfect, thank you! --31.186.189.226 07:30, 5 September 2012 (UTC)


 * -- Fixed in new version (2012-09-17). VitaliyFilippov (talk) 10:19, 27 September 2012 (UTC)

[OLD] Howto use Gallery?
I have just installed it with Mediawiki version 1.18.1 - it works fine. It is possible to use the gallery feature? Gallery works fine (using the gallery tag) - but when i click a picture i get no "left" or "right" arrows and no counter how many pictures there are.

I can see in the SlimboxThumbs.php a efRewriteGalleryImage Function - but it did not work or i am using the wrong tags. Thx for help --BLinz 23:49, 26 January 2012 (UTC) Edit: --> Found the Reason: in the SlimboxThumbs.php at the last lines:

The $allDone will not use - the efRewriteGalleryImage function did not work right. So no gallerys are possible. I changed the code at line 118 from: to so the gallery feature will always used. Now all pictures at one Site will used in only one Gallery, even if i don't use the gallery tag - but i like it so. --BLinz 20:51, 29 January 2012 (UTC)

[OLD] Announcement
Sorry for not replying to any of your complaints. I'll pick back up the development of this extension soon and will look after the issues. --Clausekwis 02:53, 25 September 2010 (UTC)

[OLD] Full Size Image with 1.18.1
Hi, I just upgraded to mediawiki 1.18.1. I download SVN version 109611 of SlimboxThumbs. When I clicked a picture in a Gallery, The picture popup by taking all the space in the window and it is impossible to resize it. The next fonction seems to work, but the image is not scale to the size of the window.

Thank you

I have the same problem --ZelChief 17:50, 21 January 2012 (UTC)

[OLD]
Hi, thanks for the extension!

The gallery code worked without any problems, except I changed your hardlink from /w/thumb.php to '.$wgScriptPath.'/thumb.php

The single image code did not work, it seems to be some sort of problem with the way the regex interprets greediness on different servers. I played with it a bit and ended up using the following pattern and rewriting the callback a little:

and

I had one further problem, that the Edit page was not shown, but I can't reproduce it now; it had something to do with the callback - no content was returned. As a security measure I built the following couple of lines in: and

--Cm 11:24, 29 October 2009 (UTC)

[OLD] No slimbox effekt
After clicking on image, it just openin in new page in full-size by link lokking like that: http://www.turystyka-powiat-nowosolski.info.pl/thumb.php?f=Siedlisko_%28zamek%29-02.jpg&width=299

Site

How can i fix it?--Skarabeusz 11:17, 31 January 2010 (UTC)


 * It seems the javascript isn't loaded. There might be a problem with the jQuery library having a conflict with some other library your mediawiki installation is using. Can you please post the link to the page where your gallery is? --Clausekwis 13:13, 3 March 2010 (UTC)
 * See here []--Skarabeusz 15:01, 9 March 2010 (UTC)

I HAVE THE SAME PROBLEM. I tried LightboxThumbs, SlimboxThumbs, but nothing happens. Installed: ajax.js,ajaxwatch.js, mwsuggest.js,google analytics js, AND jquery.js,slimbox.js My site is in Russian, maybe its important? But i think its because of JS Conflict. PLEASE HELP. http://abcplanet.co.cc/
 * Hey, on my wiki I have the same problem, no slimbox effects, I can't figure out how it works - sometimes I get forwarded to the file's description page, sometimes it just shows the image... - the example page though works fine. --Fxk2

No slimbox effect
I have a page that has the same problem. It has 9 images on the page of which 5 work with slimboxthumbs. Slimboxthumbs will scroll through the 5 images that work fine, the others don't call the JS, they function just as links to the inbuilt mediawiki image with metadata page. Update: Paths on non-working images seem slightly different: /images/thumb/8/8f/600px-filename.jpg works, /images/8/8f/filename.jpg doesn't?

Update 2: Found a workaround. By commenting out line 42 and 48 of slimboxthumbs.js (removing the if statement) it now adds the zoom function to all 9 images on my page. Ralph


 * VitaliyFilippov (talk) 20:23, 23 October 2012 (UTC) It was thought to be a feature :))) SlimboxThumbs only shows lightboxes for image thumbnails, not for all images on the page. I.e. just Image.jpg]] won't show up in the lightbox, and [[File:Image.jpg will. Also, commenting out the if statement isn't correct as it will probably break on external images.

Ah ok, I didn't realise it was designed to only trigger on thumbnails. Thanks for your replies and a very useful plugin :-) Ralph

[OLD] See source code of the plugin instead of my own wiki
When I include this plugin (or lightbox for that matter) my wiki suddenly turns into a Extension:SlimboxThumbs/SlimboxThumbs.php page, in which I see the sourcecode of the extension, which is clearly not the idea. It is really the only thing I can see, also my own menu items aren't there anymore: it is all basic mediawiki. This is probably me doing something wrong with this plugin (though all other plugins I installed work fine), but has anyone any idea why this is?

Thanks a lot in advance, --FrankLeone 21:26, 16 March 2010 (UTC)

[OLD] Problem with 1.16.1, Gallery and SlimboxThumbs
After an upgrade from 1.15.4 to 1.16.1 mediawki I have problems with galleries. If on my page I have 18 or less pictures, SlimboxThumb does not work. If I have more than 18 pictures, I can not see the pictures table on the page. Everything else is visible. I also try to use HighslideThumbs but exactly same effect. So I think there is an incompatibility with 1.16 and 1.16.1 and one component of HighslideThumbs and SlimboxThumb.

Thank you, 13:47, 06 January 2011


 * You are correct in your assessment. I'll try to get the extension working with 1.16 but I'd be happy for any kind of help of course. --Clausekwis 18:45, 12 February 2011 (UTC)

Problem with 1.16 and SlimboxThumbs
I was getting an error in my console .parseJSON is not a function, it appears the version of jquery.min.js that gets pulled in by the script with a low mediawiki version is 1.3.2, this is too old to include that function so I fixed it by including the latest jquery.min.js (1.8.2 at time of writing). Seems to work now. Ralph


 * VitaliyFilippov (talk) 20:10, 18 October 2012 (UTC) Thanks for the report, I've just fixed that incompatibility in the repository. Now it uses $.ajax instead of the deprecated sajax_do_call and doesn't use $.parseJSON at all.