Extension talk:FancyBoxThumbs

About this board

Mark1973x (talkcontribs)

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.

Reply to "FancyBox3?"
2001:16B8:3049:F600:7C3E:673D:D5F8:3E96 (talkcontribs)

Can the FancyBoxThumbs extension displays thumbnailed videos "lightbox" that floats overtop of web page.? Or is there a extension which can do that?

Reply to "thumbnailed videos?"

How can I remove the link "more info" above the picture ?

Nicolas NALLET (talkcontribs)


Reply to "How can I remove the link "more info" above the picture ?"

Only works after re-loading page

Sm8ps (talkcontribs)

(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>












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.

Sm8ps (talkcontribs)

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?

Sm8ps (talkcontribs)

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!

Henryfunk (talkcontribs)

I see the same symptoms at www.irhb.org. They occur also in Chrome.

Reply to "Only works after re-loading page"

Thumbnail linking to full size image with one click?

Spiros71 (talkcontribs)

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).

Reply to "Thumbnail linking to full size image with one click?"
Tonk (talkcontribs)

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?

Reply to "SVG support?"

Any plan on adding the thumb image adjudicative function?

Deletedaccount4567435 (talkcontribs)

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!

Reply to "Any plan on adding the thumb image adjudicative function?"

Some bugs of the extension on my wiki

Fokebox (talkcontribs)

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

Reply to "Some bugs of the extension on my wiki"
Bennylin (talkcontribs)

Anybody know how to enable this extension for PDFs thumbnails?, for example [[File:MyPDF.pdf|100px]]

Bennylin (talkcontribs)
Reply to "PDF support"
Auco (talkcontribs)


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] + "</ 

"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




(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,

Unikum111 (talkcontribs)

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.

This post was posted by Unikum111, but signed as Unikum. (talkcontribs)

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".

Gilluminate (talkcontribs)

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.

Reply to "[Bug] Hardcoded URL"