Extension talk:LightboxThumbs

Resizing
What would I have to do to resize images on the fly? Ideally, I'd like to set a maximum image dimension that would match the viewer's screen. Any way to do this? – Jonathan Kovaciny 21:50, 20 December 2007 (UTC)


 * You'd need some Javascript trickery. I'm not friends with Javascript so I haven't tackled this project, but it would be a great feature. Maybe it's in the works for a future version of Lightbox itself? &#x2014;alxndr&#x00a0; (t) 23:12, 23 May 2008 (UTC)


 * What about about using the mediawiki's thumb.php to generate smaller versions of the images? --Kwisatz 00:44, 8 July 2009 (UTC)


 * Interesting idea, but it wouldn't be able to match the viewer's screen. &#x2014;alxndr&#x00a0; (t) 21:09, 7 July 2009 (UTC)

Fatal error
Got a error message - can you help ?:

Fatal error: Call to undefined method OutputPage::addStyle in /home/wikifixm/public_html/wiki/extensions/LightboxThumbs.php on line 64

--84.193.195.239, 12 January 2008


 * Sounds like you're not on MW 1.11; older versions don't have the addStyle function. You can put the s to the JS and CSS files directly into the skin(s) you use, or the hack would probably work too... &#x2014;alxndr&#x00a0; (t) 23:14, 23 May 2008 (UTC)

Problems with MediaWiki 1.11.1 ?
I installed the extension on a 1.11.1. It works fine while previewing the page in edit-mode. If I the page is saved and i view it, it only opens the image in an normal HTML page. Any ideas? --Stefan Haberstroh 13:48, 3 February 2008 (UTC)


 * I have the same problem with a 1.11.0. --83.189.120.177 13:55, 3 February 2008 (UTC)


 * Got a URL I can look at? Off the top of my head, I'm guessing it's a relative URL problem; the s to the JS and CSS aren't absolute. &#x2014;alxndr&#x00a0; (t) 23:16, 23 May 2008 (UTC)

Doesn't load the image
It does everything else--the screen goes dark and the circle keeps going around and around, like it's loading, only it never loads. --72.230.84.48, 8 March 2008


 * Interesting. Can you get to the full-size image normally from the image description page? Got a URL I can look at? &#x2014;alxndr&#x00a0; (t) 23:20, 23 May 2008 (UTC)

I have the same problem. I am using lightbox 2.04, mediawiki 1.13.1. The URL is http://menten.org/wiki/index.php5?title=Special:NewImages. 14:50 EST, 19, Jan 2009.

I encountered the same behaviour with MediaWiki 1.13.3.

I have installed another extension (Picasa2Gallery) that uses lightbox.js as well. Both work fine together on my localhost (Windows XP), but when I upload the files on the Linux server (http://www.mediterraner-garten.lu/index.php?title=Garten), the gallery still works, but the normal thumbnails don't display - the screen only darkens, and the animated gif is rotating, but nothing more.

One difference I found is that the tooltips of the thumbnails sais that (the picture can't be found). I compaired the source code of the page, and found out, that LightboxThumbs seems to get confused with the right URL to the picture, so that it can't be loaded. It's strange, but the URL that points to the picture looks something like this: .../images/5/54/Index.php?title=Bild:picture.jpg whereas the right URL should be: .../images/e/ea/picture.jpg As I said, under Windows XP on localhost the URL is displayed correct, and everything works fine. I would really like to use the LightboxThumbs extension. Maybe someone has an idea. Without LigtboxThumbs the usual special-page with the metas of the picture shows up. --77.176.240.33 12:24, 2 May 2009 (UTC)

Lightbox isn't used for SVG files
Great extension! The Lightbox is a great effect, especially for galleries. However I've found that it doesn't work with SVG files. I'm using a lot of SVGs on my wiki, and would love it if they could be shown in a Lightbox. Does anyone know if this is possible? Thanks! - LNick 13:53, 27 May 2008 (UTC)

No lightbox effet
hello I use MW 1.11 and the lightbox doesn't look to work properly. i'v got 2 javascript errors
 * Builder is not defined


 * [Break on this error] objBody.appendChild(Builder.node('div',{id:'overlay'}));

when the page is loading


 * $("overlay") has no properties


 * [Break on this error] $('overlay').setStyle({ width: arrayPageSize[0] + 'px', height: arrayPag...

When i try to clic on the thumb

you can see it here with firebug enabled thank you for your answer --Roulion 14:25, 11 June 2008 (UTC)


 * It seems as the latest version of lightbox requires an additional javascript file. I fixed this by adding the following line to LighboxThumbs.php, before the same line with lightbox.js:

$out->addScript(' ');
 * --Ext 14:04, 17 June 2008 (UTC)

MediaWiki 1.12.0
I have trouble running it in MediaWiki 1.12.0. The page leaves me with Parse error: syntax error, unexpected '<'...

Any idea? --125.163.24.155 13:51, 30 August 2008 (UTC)

German Version of Mediawiki
Hello,

the LightboxThumbs Extension is not working with effect. when i Editing a Site an run at as "Show preview" (no saveing) the effect working fine. Maybe it is the German Version of Mediwiki???

MiGo 09 Nov 2008


 * That's interesting, I don't know what could be causing that behavior. However, older versions of this extension were hard-coded to be English only; v0.1.3, which I've just put up, should work no matter the interface language. &#x2014;alxndr&#x00a0; (t) 22:10, 12 May 2009 (UTC)

MediaWiki 1.6.12
Is there anyway I can use this great extension in MediaWiki 1.6.12? The hack is not compatible either. I get the error: which refers to the $repo lines 38 and 58: Can you help me with this? I have to stick to MW 1.6 for the moment Regards, Razool 17:41, 26 March 2009 (UTC)


 * Argh, that's the bit of the extension that frustrated me the most. In older MediaWiki versions, it's no easy task to get the raw URL of an uploaded image when all you have is the title of the image.
 * What happened when you tried the hack?
 * &#x2014;alxndr&#x00a0; (t) 22:06, 12 May 2009 (UTC)

Not Working on 1.13
After clicking on image, it just openin in new page in full-size by link lokking like that: http://wikiaddress.net/w/images/6/6a/Image_name.JPG

How can i fix it?

--195.14.50.18, 21 April 2009


 * That means the Lightbox Javascript (and probably the CSS too) isn't properly linked. It expects to find the  directory inside a   directory relative to where the PHP file is (which on a default install and on mediawiki.org is in the   directory).


 * If the  directory is where it should be, try tinkering with the   lines in the   function. You may want to make them absolute (relative to the domain instead of where the current file is) by starting the   attribute with a slash. Replace the   line with another   line; it expects a full HTML tag so you want something like:

$out->addScript('&lt;link rel="stylesheet" href="/skins/LightboxThumbsFiles/css/lightbox.css" type="text/css" media="screen" /&gt;');


 * &#x2014;alxndr&#x00a0; (t) 15:47, 21 April 2009 (UTC)