Is there already a Extension planned for FancyBox3? The FancyBox3 Functions are very usefull und could easily replace MultimediaViewer. I hope someone can write an extension for FancyBox3.
Extension talk:FancyBoxThumbs
Can the FancyBoxThumbs extension displays thumbnailed videos "lightbox" that floats overtop of web page.? Or is there a extension which can do that?
(V2.1 on MW1.23)
Upon first loading of the page, the thumbs in the gallery do not get opened with FancyBox but instead link to the respective file page. Only after re-loading the page with the gallery does it work.
This is what I see at first in the Java-Console of Firefox:
<code>ReferenceError: fbtFancyBoxOptions is not defined ReferenceError: fbtFancyBoxOptions is not defined</code> <code>Stack-Trace:</code> <code>@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=ext.FancyBoxThumbs%7Cext.gadget.HotCat%7Cjquery.checkboxShiftClick%2Chidpi%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%7Cmediawiki.action.view.postEdit%7Cmediawiki.api%2Ccldr%2Chidpi%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser%7Cmediawiki.api.watch%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cskins.vector.collapsibleNav&skin=vector&version=20151019T075613Z&*:33:843</code> <code>@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=ext.FancyBoxThumbs%7Cext.gadget.HotCat%7Cjquery.checkboxShiftClick%2Chidpi%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%7Cmediawiki.action.view.postEdit%7Cmediawiki.api%2Ccldr%2Chidpi%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser%7Cmediawiki.api.watch%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cskins.vector.collapsibleNav&skin=vector&version=20151019T075613Z&*:32:1</code> <code>runScript@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:156:934</code> <code>execute/</checkCssHandles@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:157:353</code> <code>execute/</cssHandle/<@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:157:483</code> <code>jQuery.Callbacks/fire@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:13:1</code> <code>jQuery.Callbacks/self.fireWith@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:15:253</code> <code>jQuery.Callbacks/self.fire@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:15:296</code> <code>addEmbeddedCSS@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:152:1</code> <code>addEmbeddedCSS/<@http://my.wiki.net/load.php?debug=false&lang=de-ch&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20151019T072552Z:151:453</code>
After re-loading the page there is no Java-error at all.
Does this mean that one '''has''' to define fbtFancyBoxOptions
? This would make options non-optional. :) I cannot check right now but will get back with my findings.
Found out that I do have fbtFancyBoxOptions defined; here it is:
$fbtFancyBoxOptions = '{"arrows":"false","closeBtn":"false","helpers":{"title":{"type":"inside"}}}';
Now the error message does not make sense to me anymore. Could it be an early time-out? There does not seem to be noticeable lag while loading the page. Any ideas anybody?
I am still being bitten by this strange behaviour. Each time I am presenting a gallery from my Wiki, I have to basically reload each page before FancyBoxThumbs works.
There does not seem any good explanation but I remarked that it usually happens when loading multiple pages (from the same wiki) in new tabs. Somehow the necessary information does not get loaded.
I just tested this: Upon launching ten new tabs with galleries, six of them did not load FancyBoxThumbs properly. There was no particular order (nrs. 1, 2, 4-7 affected). This is on Firefox 48 running on a i5 processor and connecting over the local gigabit net to the server which is reasonably fast, too.
Could that be a hint about how to fix the problem? Any input appreciated!
I see the same symptoms at www.irhb.org. They occur also in Chrome.
Are there any $fbtFancyBoxOptions that would do this in a way that the actual full image size is displayed (not an image version adapted to maximum screen height for example).
This extensions still works fine with current (1.28) mediawiki. Unfortunately it seems not to support Scalable Vector Graphics .SVG files. Any chance to add this as a feature?
The Extension:MultimediaViewer have a really nice funciton where it can read the browser window size and provide proper size thumb image, instead of simply give user the huge original image.
This function could save tons of bandwidth cost and let user get the image much faster. It would be AWESOME if FancyBoxThumbs have such thumb support!
Will hug the guy/girl who wrote this function for FancyBoxThumbs 100 times!
Hello all, thanks for the great extension it is even better then Mediaviwer extension So I have two small problems, so the extension doesn't work on my wiki (1.22.13) like on the example page. First - There aren't arrows to slide images (if there are several on the page) Second - If there is at the bottom of the page and I click it to view, the page goes up (to the beginning of the page and opens the image) How can I fix it? Thank you
Anybody know how to enable this extension for PDFs thumbnails?, for example [[File:MyPDF.pdf|100px]]
My solution on this (based on FBT ver 1.0.1) Topic:S9d9o6f516w9n7n7
Next I'll try to work it on FBT ver 2.
Hi,
thanks for the nice extension, I was very relieved to get rid of the RegEx crap that I was fighting with before.
However, there is one severe bug in FancyBox:
There's a hardcoded URL in FancyBoxThumbs.php, line 71:
.' $(this).attr("title", $(this).attr("title") + "<br />Origen: <a
style=\"color:#888888;\" href=\"http://www.frikipedia.es/friki/
Archivo:"+pieces[pieces.length-1]+"\">" + pieces[pieces.length-1] + "</
a>");'
"http://www.frikipedia.es/friki/Archivo:" should not be hardcoded and must be replaced with the current URL and "/File:"
and "Origen" seems to be some other language than english, so I suppose it should be "Origin:" or "Source:"
Additionally I have two proposals:
1. The loading of jQueryMin from Google is a question of preference, but I prefer to keep it local. So I changed line 54
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"
into
src="'.$wgScriptPath.$FBT_Dir.'/jquery.min.js"
(of course after putting jquery.min.js in the extension directory.
2. I added this to my css to make it clearer where the extension will
load; it'll add a magnifier cursor:
a[rel^="group"] img {
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
}
#fancybox-overlay {
cursor: -webkit-zoom-out !important;
cursor: -moz-zoom-out !important;
}
Hope this feedback is useful, Cheers,
I think it's important notes.
Also I observed this extension conflict with vector extension (version 0.2): vector extension load /skins/common/jquery.min.js.
Hi. Just tested FancyBoxThumbs 1.0 with MediaWiki 1.18.0rc1 and it works fine :)
Maybe be carreful with your jQuery version because MediaWiki now load
and use "jQuery JavaScript Library v1.6.4".
Thanks Alaflix! I have updated the JQuery version in this new version 1.0.1, but keep in mind that the JQuery in the extension will only load if JQuery is not already present. Meaning, if MediaWiki has loaded it's own latest supported version, the extension will automatically use that version; if for whatever reason that version does not load, the extension loads a version as a backup option. It is unlikely that the version in this extension will ever be loaded.