I've finally got my hands on the FancyBox solution described above, and I must say, it's a bit expired. Now there's a 3rd version of FancyBox
available, they say the 2nd version is deprecated and it could not be downloaded. But still, FancyBox could be easily plugged in with miniBB's File Uploads add-on.
Here's what I did:
- downloaded the latest version of Fancybox (currently 3.0), extracted the packaged and copied it under [forums folder]/[fancybox] folder
- in bb_plugins.php, before the /* File upload addon */ code, pasted this:
/* FancyBox */
/* --FancyBox */
i.e. this code enables extra JS and CSS only on vthread pages i.e. where the pictures actually appear.
- in templates/main_header.html
, before the closing tag pasted this:
- Modified the further code for /* File upload addon */
, the place to locate is to search by `if($spec==4`, this is the code inside of the parseMessage function and the code which is responsible for displaying images; actually it's the same code described by Bluesplayer above, and the first and only appearance of $a1
var should be changed to this:
That's all to work on. About 10 minutes of implementation and it appears to work.