Extension talk:FancyBoxThumbs/LQT Archive 1

Hi,

Thank you for this out of the box working extension. I made some changes in FancyBoxThumbs.php to get it work with various image types and with small or capital letters (i.g. gif, GIF, png, PNG, jpg, JPG, jpeg, JPEG) - see the included JavaScript (line 47ff) --Filburt 13:02, 11 January 2011 (UTC)


 * Thanks for the help, Filburt. I've added your changes verbatim.
 * --Gilluminate 04:53, 14 January 2011 (UTC)


 * My pleasure! Have you tried, if the extensions works with MW versions before 1.16? I guess it doesn't because it depends on jQuery. I don't have an older version in use to test it. So maybe we should add that it works with MW 1.16+. Greetings --Filburt 08:15, 14 January 2011 (UTC)


 * I haven't tested it in prior versions. Truthfully, 1.16 is the first version I've used so I'm pretty new to the game. I went ahead and added 1.16+ to the compatibility parameter. It shows up in the bottom of the box on the right. --Gilluminate 18:01, 14 January 2011 (UTC)


 * Hi again, I changed the line




 * to




 * otherwise it is not working with IE7. (IE 7 is not able to count from the end of a string :-) ) Now everything is alright - I've already posted it on the extension page


 * --Filburt 15:20, 28 January 2011 (UTC)


 * Thanks again! I've copied your code into version 0.3
 * --Gilluminate 16:31, 28 January 2011 (UTC)

I'm not able to make FancyBox running in my Mediawiki, I got the error "Property or method not supported by the object jquery.fancybox-1.3.4.pack.js"
Hi, I saw the demo of your extension and I found it amazing, sò following step by step the instructions I dowloaded and installed FancyBoxThumbs on my wiki (1.16.1), but I wont run. With galleries or single thumbnails when I click on an image, it is opened at the bottom of the gallery page, and the browser (I use IE8) report me the following error:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Timestamp: Sun, 6 Feb 2011 00:12:25 UTC

Property or method not supported by the object jquery.fancybox-1.3.4.pack.js?270 Line: 25 Char: 185 Code: 0 URI: http://192.168.1.230/mediawiki/extensions/FancyBoxThumbs/fancybox/jquery.fancybox-1.3.4.pack.js?270

Is there any chance to solve the problem ? Thanks ! --FrancoR 00:21, 6 February 2011 (UTC)


 * Sounds like a jQuery conflict. Maybe it conflicts with your theme. Could you try it with the MediaWiki Vector Skin and give a feedback?. Thanks --Filburt 07:32, 14 February 2011 (UTC)


 * I normally use the vector skin and also, to avoid conflict with other extensions, I disabled all of them, but nothing changed. So, I tried to delete the FancyBox extension (I made a lot of tries so I could misconfigured something) and reinstalled it as new. Now got the error "img_split1[1] is undefined" to the following line:


 * Also just to be shure I'm using the right version, I downloaded it from the http://www.gilluminate.com/extensions/ site. Again, thanks a lot in advance for the support.
 * --FrancoR 09:49, 14 February 2011 (UTC)


 * I made another test installation with a blank MW 1.16.2 and the blank extension and for me it works. I know that the split function is handled in different ways by different browsers - but I tested it with IE7+, Opera, Firefox and Chrome.
 * Anywhere there seems to be a jQuery conflict in your installation. --Filburt 16:29, 15 February 2011 (UTC)


 * Today I tried to put in the FancyBoxThumb.php the following line:




 * just between .' and var_img... of




 * this just to see if attr("src") had something wrong in it, due the fact the error I usually got was in splitting this attribute. After restarted httpd, the code messaged box me the attribute (the correct path of the image), but I don't know how, the FancyBox start running correctly. So I removed the debug code from the FancyBoxThumbs.php and restarted httpd again and with my great happyness everything was ok. I tried with IE8 and Firefox and was OK with both. I really think I didn't nothing special and everything start running by itself (??). Now also my wiki have that great extension. Really thanka a lot for all the support you gave me. --FrancoR 21:31, 15 February 2011 (UTC)

Clashes with MW 1.16 jquery
Hi.

Great extension, but the problem is that when I enable it all my other jquery extensions die and the MW jquery based Usability Initiative functions stop working (e.g. WikiEditor). I suspect this is because this extension is not using jquery in noConflict mode? Is this possible? Thanks Mitchelln 16:45, 18 February 2011 (UTC)


 * Thanks for the suggestion, Mitchelln. I've updated version 0.4 with noConflict mode. Hopefully I've implemented it correctly.
 * Gilluminate 21:19, 12 May 2011 (UTC)

FancyBox stopped working after short urls enabled
Hi,

I had fancybox working perfectly, then I set up short urls and the image box stopped working :

I get the following error reported in Explorer :

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; .NET CLR 1.1.4322; Media Center PC 6.0; InfoPath.3; AskTbUT2V5/5.9.1.14019) Timestamp: Mon, 7 Mar 2011 00:28:13 UTC

Message: Object doesn't support this property or method Line: 25 Char: 185 Code: 0 URI: http://www.stampsoftheworld.co.uk/w/extensions/FancyBoxThumbs/fancybox/jquery.fancybox-1.3.4.pack.js?270

The enlarged images appears below the main page.

Regards

Drew

ToDo
Hi all, Thanks for the interest and feedback. I do have plans to address all of these issues as well as implement gallery support. I created this plugin out of necessity at work and thought I'd share what I'd done knowing that it wasn't perfect and that I could continue to improve upon it. I have been slammed at work and with other things going on in my life right now, so I haven't been able to dedicate as much time as I had hoped. But I haven't forgotten about it, and I promise I'll work more on it.

The joy of open source is that you don't have to wait for me to do it. Please feel free to build upon this code and add it to the project.

Thanks Gilluminate 17:06, 3 May 2011 (UTC)