Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on January 12, 2012, 04:28:36 PM

Title: FancyBox 4 SMF
Post by: Bugo on January 12, 2012, 04:28:36 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3303)

FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images on your forum. It is built at the top of the popular JavaScript framework jQuery and is both easy to implement and a snap to customize.

Features:

This modification is licensed under the GNU GPLv3 (https://opensource.org/licenses/gpl-3.0.html)

Русскоязычная поддержка (https://dragomano.ru/mods/fancybox-4-smf)
Title: Re: FancyBox 4 SMF
Post by: mforum on January 13, 2012, 05:48:17 AM
a fantastic mod!!!

is there a way to exclude signature pictures from viewing?
Title: Re: FancyBox 4 SMF
Post by: Fussilet on January 13, 2012, 08:00:28 AM
very nice mod... thank for the mod...
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 13, 2012, 11:50:27 AM
a fantastic mod!!!

is there a way to exclude signature pictures from viewing?
What do you mean?
Title: Re: FancyBox 4 SMF
Post by: mforum on January 13, 2012, 12:04:48 PM
i mean that grabs all the picturers in page plus the members signature pictures
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 13, 2012, 12:39:22 PM
This mod works with img tag. I don't know yet how to exclude signatures.
Title: Re: FancyBox 4 SMF
Post by: carlosdelarco on January 13, 2012, 06:57:22 PM
I just finished the spanish_es-utf8 translation of this mod. I just attached it to this message.

Regards!!
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 13, 2012, 07:50:26 PM
Thanks, package is updated.
Title: Re: FancyBox 4 SMF
Post by: OCJ on January 14, 2012, 02:06:09 AM
Its great - much improved display of attached images... others (older ones) I tried didnt work so this is a step forward.
Title: Re: FancyBox 4 SMF
Post by: laetabi on January 14, 2012, 05:00:46 PM
Nice mod, seems to work very well... Thanks
Title: Re: FancyBox 4 SMF
Post by: Adrek on January 15, 2012, 08:00:03 AM
Where is displayed title (option "Title position")? Because I don't see this anywhere
/edit:
one more thing... If you enable thumbnails below slides then you can't use control panel, because thumbnails are on this panel:
http://img62.imageshack.us/img62/8403/obraz2op.png
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 17, 2012, 08:05:47 AM
And? You can change position to "Top".
Title: Re: FancyBox 4 SMF
Post by: Mick. on January 17, 2012, 08:12:27 AM
Very cool mod bro. Congrats! ;)
Title: Re: FancyBox 4 SMF
Post by: woolly bugger on January 18, 2012, 01:09:25 PM
Nicely done, but it's not working with ILA (InLine Attachments 1.11) where the code is..

Code: [Select]
[attachimg=1]
Dawn Patrol Every Day On the Hunt
[attachimg=2]
[attachimg=3]

Title: Re: FancyBox 4 SMF
Post by: Bugo on January 18, 2012, 08:44:43 PM
attachimg - Inline full-size image, without link. If you want use FancyBox with such images, replace all attachimg with attach. Then open Subs-FancyBox.php, find code
Code: [Select]
$(".attachments a[id^=link_]")and replace with
Code: [Select]
$("a[id^=link_]")
Title: Re: FancyBox 4 SMF
Post by: InfoStrides on January 21, 2012, 01:35:07 PM
This mod should be examined again. It is affecting jQuery functions on my website.

I previously installed "Statistics in jQuery" mod and custom scripts which worked perfectly until I installed "FancyBox 4 SMF" Mod. When I uninstalled "FancyBox 4 SMF" Mod, honestly every other mods with jQuery fails to work well.

Today, I discovered it when I was working on "Featured Content Slider with jQuery" on my website. It worked well on local but failed to work on my forum. I thought it to be server issue but started to look for a fix for more than 8 hrs before stumbling across this post (http://www.simplemachines.org/community/index.php?topic=465651.msg3252667#msg3252667) on SMF. I now look into my case and re-installed "FancyBox 4 SMF" Mod, every worked fine. After, I uninstalled it again, the issues re-occured.

Please help, I need to uninstall "FancyBox 4 SMF" Mod without causing problems for my forum.

TheInfoStrides.com
Title: Re: FancyBox 4 SMF
Post by: Tomcraft on January 27, 2012, 12:16:13 PM
attachimg - Inline full-size image, without link. If you want use FancyBox with such images, replace all attachimg with attach. Then open Subs-FancyBox.php, find code
Code: [Select]
$(".attachments a[id^=link_]")and replace with
Code: [Select]
$("a[id^=link_]")

This works great, thanks!

Is there a way to deactivate Fancybox for images in the index news section <div id="smfNews"> ? ???

Regards, Torsten
Title: Re: FancyBox 4 SMF
Post by: AllMassive on January 27, 2012, 03:15:29 PM
This Mod displays the Images very fast - nice !

This mod works with img tag. I don't know yet how to exclude signatures.

Yes - pls find a solution.

It would also be nice to have a on/off-swtich inside the Admin-Page to enable/disable the Mod completly.
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 27, 2012, 04:02:43 PM
You can remove fancybox_bbc_codes function from Subs-FancyBox.php, in this case the mod will be work only with attachments.
Title: Re: FancyBox 4 SMF
Post by: Tomcraft on January 28, 2012, 07:11:50 AM
Great, thanks a lot!

Regards, Torsten
Title: Re: FancyBox 4 SMF
Post by: Fnix on February 10, 2012, 11:21:45 AM
Thanks for this great mod!  ;D

But is there a way to exclude [url=http://link.com][img]someimg.jpg[/img][/url] ?

Images that are URL's don't work anymore. :(

And is it possible to exclude small images too? Or define a size limit for images to be excluded?

I will experiment with some new bbcodes, to make links work.
Title: Re: FancyBox 4 SMF
Post by: Bugo on February 11, 2012, 01:29:42 AM
This mod is provided "as is", I don't make any edits for someone.
Title: Re: FancyBox 4 SMF
Post by: Fnix on February 14, 2012, 05:35:19 AM
Sorry for my poor english.
Was only trying to suggest general improvements, to make this great mod even better :D
Title: Re: FancyBox 4 SMF
Post by: FrizzleFried on April 24, 2012, 08:38:43 AM
What is up with the updates with ZERO documentation as to what was updated?   While I appreciate the updates/mods,  it really makes determining whether an update is right for your site DIFFICULT when there is no documentation addressing said updates.

Title: Re: FancyBox 4 SMF
Post by: Abhay Trivedi on May 09, 2012, 05:56:28 AM
Nice mod. Loving it on my Forum. :D
but if you could include a automatic image resize according to users browser window then this will complete the mod. :D
and a suggestion. You can add a download image option too. :D
so the forums hosting wallpapers will have this complete mod :D
Title: Re: FancyBox 4 SMF
Post by: sachinvermarip on June 03, 2012, 08:07:42 AM
Great plugin :D
Title: Re: FancyBox 4 SMF
Post by: beanflying on August 12, 2012, 07:25:38 PM
Love the mod but it causes conflicts with SA Chat and won't allow the IM system to work  :o

Currently uninstalled this one and hope you may have a solution for it?
Title: Re: FancyBox 4 SMF
Post by: Bugo on August 13, 2012, 01:33:02 AM
I have not found this problem. Sorry. These mods work very well on my test forum.
Title: Re: FancyBox 4 SMF
Post by: beanflying on August 13, 2012, 04:42:10 AM
It was only the Instant message part of SA Chat that wouldn't work? The rest of the bar worked fine but as soon as you tried to IM someone you got a blank popup and no messages get sent.

My only thoughts are that both use a pop up to display content so maybe that is where a problem may be?

While it is not one or the others fault maybe a joint solution can be found :)
Title: Re: FancyBox 4 SMF
Post by: Bugo on August 13, 2012, 01:21:02 PM
Used jQuery's version is old.
Title: Re: FancyBox 4 SMF
Post by: beanflying on August 13, 2012, 07:16:15 PM
Retried it again with the same results no chat :( Sorry but my jquery knowledge is poor too.

Running 2.0.2
SA Chat    Beta 4-1 Rev43
FancyBox 4 SMF    0.4
Title: Re: FancyBox 4 SMF
Post by: FrizzleFried on August 13, 2012, 07:57:00 PM
I do believe this mod also causes SMFQuiz to not work...
Title: Re: FancyBox 4 SMF
Post by: pixeleyes on August 19, 2012, 04:04:48 AM
Installed without error but doesn't work.
Title: Re: FancyBox 4 SMF
Post by: Bugo on August 19, 2012, 02:39:26 PM
Example link?
Title: Re: FancyBox 4 SMF
Post by: pixeleyes on August 26, 2012, 03:48:12 AM
Example link?

Site Link (http://www.one2onefun.com/iforumz/index.php/topic,8598.0.html)
Title: Re: FancyBox 4 SMF
Post by: Bugo on August 26, 2012, 03:57:05 AM
Unfortunately, I can't see your forum.
Title: Re: FancyBox 4 SMF
Post by: mrintech on August 26, 2012, 05:09:24 AM
Unfortunately, I can't see your forum.

He's using Cloudflare and to access the forum you need to enter CAPTCHA Code.

Your IP address is blacklisted in Project Honey Pot database :-X

Don't worry, you are not alone. This happens to me most of the time :(
Title: Re: FancyBox 4 SMF
Post by: Bugo on August 26, 2012, 06:35:13 AM
Have you enabled "Processing of images that inserted with img tag" option in Mod Settings?
Title: Re: FancyBox 4 SMF
Post by: pixeleyes on August 26, 2012, 09:59:14 AM
Have you enabled "Processing of images that inserted with img tag" option in Mod Settings?

Now "Processing of images" is enabled but got an error when click on image.

The requested content cannot be loaded.
Please try again later
Title: Re: FancyBox 4 SMF
Post by: OCJ on September 28, 2012, 12:03:48 PM
Improved!

It shows on the forum now and Simple Portal pages - better!

Though someone asked before .. why you do not list the changes with each update/version on the mod page!!??
Title: Re: FancyBox 4 SMF
Post by: novill on September 29, 2012, 09:35:24 AM
Nice mod. :)
Hungarian translation attached.

I have a idea, is there a way to display ads to the right and (or) left side to the pictures. Google adsense ads or other ads with html code.
Title: Re: FancyBox 4 SMF
Post by: xrunner on October 11, 2012, 07:42:38 PM
I like it - very slick little mod.  :)
Title: Re: FancyBox 4 SMF
Post by: novill on November 03, 2012, 02:59:05 PM
I have found a little bug. When a member attach a image with 1600x1200 pixel size. The fancy box dosen't showing it, just the big picture. I have tried this in my test place, just the forum and this mod was installed. Same mistake. Thanks for your help.
Title: Re: FancyBox 4 SMF
Post by: Bugo on November 03, 2012, 06:03:24 PM
Screen shot? Any example link?
Title: Re: FancyBox 4 SMF
Post by: novill on November 04, 2012, 03:10:44 AM
My test site is localhost based. Only logged in users can see the pictures in my live forum.
I have attached a picture from my test site. You can see a red arrow, that is a smaller attached picture. With the smaller picture works perfect the fancy box.
I have attached the original bigger picture to you can try this picture in your test site.
Title: Re: FancyBox 4 SMF
Post by: Bugo on November 04, 2012, 04:28:40 AM
I could not repeat the problem.
Title: Re: FancyBox 4 SMF
Post by: novill on November 04, 2012, 04:48:30 AM
Have you tried with the attached image size? If i make a user to my live site you can view the problem, but it is the same compared to the attached image.

Test site is new installed smf 2.0.2 and the fancybox mod, no other mods are installed.

update:
Same problem with 1280x960 pixel pictures, when i modify the pictures result to 1024x768 then work fancybox fine.
Title: Re: FancyBox 4 SMF
Post by: Bugo on November 04, 2012, 10:24:38 PM
Well, just look at my screen shot. As you see, it works with big images, without any problems.
Title: Re: FancyBox 4 SMF
Post by: novill on November 05, 2012, 04:00:55 AM
I don't know what could be the problem, anyway thanks for your reply and help.
Title: Re: FancyBox 4 SMF
Post by: Mr E S Stranger on December 11, 2012, 02:40:18 PM
Just out of curiosity, would anyone know why and/or how to fix an issue with the SMF Quiz mod and this mod?

The quiz mod will not work properly when this mod is installed. It has a pop up window that's constantly in a loading state when this mod is installed.

Any help would be greatly appreciated.
Title: Re: FancyBox 4 SMF
Post by: teos55 on January 13, 2013, 11:21:38 AM
smf 2.0.3  default theme curve  simple portal 3.2.5

Using fancybox in my forum, no problems so far.

Is there a possibly to call fancybox from a simple portal block for all attachments in the attachment dir ?
Title: Re: FancyBox 4 SMF
Post by: LadyAngel on April 25, 2013, 11:16:56 AM
Nice mod. Loving it on my Forum. :D
but if you could include a automatic image resize according to users browser window then this will complete the mod. :D
and a suggestion. You can add a download image option too. :D
so the forums hosting wallpapers will have this complete mod :D
I agree...an image resize option would be invaluable :)
Title: Re: FancyBox 4 SMF
Post by: mattnos23 on June 18, 2013, 11:46:26 PM
Hi,

Thanks for the mod. We like it a lot.

We notice that fancy box image display seems to go under the quick reply box. (see attached image)  I assume I could change the z-index. Just wondered if you might give me a tip?

Kind thanks

Matt
Title: Re: FancyBox 4 SMF
Post by: SoLoGHoST on June 19, 2013, 01:02:12 AM
Wow, just seeing this!  I love FancyBox, used it on this page here:  http://opportunityfinance.net/policy/default.aspx?id=6742 and created my own Download Button in the same style as the other buttons are.  But yeah, this is, by far, one of the best image viewing plugins out there!  And the fact that you can convert alt tags into descriptions, instead of using image title attributes makes this a HUGE PLUS!
Title: Re: FancyBox 4 SMF
Post by: gfsymon on November 05, 2013, 08:20:05 AM
I've installed this mod on a test site and it works well, apart from one thing.

Inline images have a size limit of 500x500.  When I open an image with Fancybox, it is zoomed out to its full size in the viewer.  Great.  However, it is also zooming the original inline image to its full size as well!!

If I close Fancybox, then re-open the same image once again in Fancybox ... this time it reverses the process and it is now reduced to the size limit as imposed in SMF settings!  So when I close Fancybox, the image in the message has gone back to the original size as per the SMF settings limit.

So, Fancybox is effectively 'toggling' the inline image size, between it's real size and the forum limited size imposed by the forum settings.

I would say this is a bug?  Any chance of fixing it, or of suggesting how I can fix it myself?

(BTW ... This is a really nice mod :) )

Title: Re: FancyBox 4 SMF
Post by: Oldiesmann on November 05, 2013, 11:20:58 AM
The reason you're experiencing that is that in a normal SMF installation, you can click on the image in the post to toggle between the resized version and the full-sized one.

If you don't want it to do that, you can remove this code from Themes/default/scripts/theme.js

Code: [Select]
// Add a load event for the function above.
addLoadEvent(smc_toggleImageDimensions);
Title: Re: FancyBox 4 SMF
Post by: gfsymon on November 05, 2013, 02:13:35 PM
Thanks super-hero!
Title: Re: FancyBox 4 SMF
Post by: FemR on May 08, 2014, 06:56:21 PM
Hi, longtime user of this cool mod. I was wondering, how do I turn on the traffic saving option? It is greyed out. Do I need to install some plugin or something for it to work? Thanks for your reply!
Title: Re: FancyBox 4 SMF
Post by: Bugo on May 11, 2014, 12:06:00 PM
At first you should enable "Processing of images that inserted with img tag" option.
Title: Re: FancyBox 4 SMF
Post by: FemR on May 11, 2014, 01:00:27 PM
Oh I get it now.
It's a no-go for my use then, as we have a lot of imagebam/imagevenue/... clickable thumbnails that won't work then.
I actually thought that traffic saving was for post attached images, where it would have been of great use.. as one could allow guests to view attachments but still save server bandwidth.
Thanks anyway!
Title: Re: FancyBox 4 SMF
Post by: deroliver on December 22, 2014, 04:40:57 PM
Hi,
is it possible to display the file-name of attachments as description like the title-tag in the fancybox-gallery?
I know, that the alt-tag (title=xxx) works, but if pictures were uploaded by members they appear as attachments and here I've no possibility to add tags or title-descriptions.
I want to get the filename of the attachment and display it on the showed picture in fancybox.
Tnx
oliver
Title: Re: FancyBox 4 SMF
Post by: Antechinus on January 10, 2015, 06:37:06 PM
Ay up! Bug report! This mod doesn't check to see if jQuery is loaded elsewhere. :)

(Also, 1.8.1 is out of date)
Title: Re: FancyBox 4 SMF
Post by: Antechinus on January 12, 2015, 08:39:31 PM
Oh hey, nice update Bugo. You're a lifesaver. I needed that one. Thanks. :D
Title: Re: FancyBox 4 SMF
Post by: ForumMix on January 13, 2015, 01:29:44 AM
Have read through the thread but a lot has happened since the last update.

How do I change the image resolution in the appendix? I have set Maximum size of attachment directory (in KB) 2500 Maximum size of attachments for each post (in KB) 2500

Have also tried with other figures, but the picture is not enlarged. I use a picture cough and paste BB Code. Bildhosten has 250px high.

Attaching image on an image which is not displayed in a large size. I want to increase the resolution of the image.

Picture of how it looks in the admin panel and Fancybox.


I would like if possible to increase the image resolution when you put a wire image using an image host as eg imgbox.

Now, the image is too small. I have searched in vain among the files but can not find anything. Is this possible? If so, how?
Title: Re: FancyBox 4 SMF
Post by: ForumMix on January 19, 2015, 02:40:14 PM
No one can help me by telling you how to make the image larger if you use an image host?
Title: Re: FancyBox 4 SMF
Post by: SoLoGHoST on September 06, 2016, 08:18:19 PM
Yet another Site I created.  This 1 uses Fancybox also, but made even better use of it in the Photo Gallery here:  http://www.odebrechtaward.com/winners-2015/

In conjunction with jQueryUI, it's even beautiful on Mobile Devices :)
Title: Re: FancyBox 4 SMF
Post by: KENT10000 on January 16, 2017, 03:00:18 PM
Hi,

When I select  "Display thumbnails below slides"  automatically takes the top value.

I want to be able to use the bottom value.

How can I solve this problem?

(http://www.subirimagenes.com/imagedata.php?url=http://s2.subirimagenes.com/privadas/2391090fancybox.jpg)


Thanks.
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 28, 2017, 08:13:44 PM
Try new version => 0.5.5.1
Title: Re: FancyBox 4 SMF
Post by: KENT10000 on January 29, 2017, 04:17:11 PM
Thanks Bugo.

I really like this mod, The presentation is excellent.

BUT It has its faults:

1. Control panel position:  TOP only works. BOTTOM NO work.

2. Control panel position + Display thumbnails below slides  in BOTTOM

   The control panel is below the thumbnails, And the control panel can not be used.


(http://www.subirimagenes.com/imagedata.php?url=http://s2.subirimagenes.com/otros/9679746i1.jpg)


3. Title position (float, inside slide, outside slide, over slide.)  He is not observed to do anything.

Thanks Again..
Title: Re: FancyBox 4 SMF
Post by: landyvlad on January 30, 2017, 09:09:38 PM
Yet another Site I created.  This 1 uses Fancybox also, but made even better use of it in the Photo Gallery here:  http://www.odebrechtaward.com/winners-2015/

In conjunction with jQueryUI, it's even beautiful on Mobile Devices :)

Hi - mobile device friendliness is a bugbear of mine at the moment so I am hoping that FB might be a solution.

What's  jQueryUI  ?

Title: Re: FancyBox 4 SMF
Post by: SoLoGHoST on March 09, 2017, 03:59:16 AM
jQueryUI here:  https://jqueryui.com/

Fancybox is one of my fav lightbox plugins.  As far as carousels/sliders, the easiest and most mobile friendly 1 I know of is Slick:  http://kenwheeler.github.io/slick/ which has a ton of powerful settings.
Title: Re: FancyBox 4 SMF
Post by: SaltedWeb on February 04, 2018, 03:37:00 PM
Anyone wondering I installed this on 2.0.15, with a modified theme no issues very nice mod. I installed this along side the watermark mod no issues.
Title: Re: FancyBox 4 SMF on mobile devices
Post by: Leszko on September 29, 2018, 06:22:30 AM
Hi!
Your mod is very nice, thank you!  :)
It works also under android devices, but... there is one little thing to make it "mobile perfect".
In "full screen" mode it shows white belt on the right. It happens only when you have "Show thumbnails below slides" enabled and only with anroid devices.

First picture "normal review", second - review in "full screen mode". Is it possible to make thumbnails appear like in normal review under android?
(http://swietageometria.info/ao/di-BBQX.jpg) (http://swietageometria.info/ao/di-XF9K.jpg)

Greetings !  :)

P.S
By the way. Information below is only for you to know.
When the picture is transparent it looks like this

May be there is possibility to change background colour with option?
(http://swietageometria.info/ao/di-ZF91.jpg)
Title: Re: FancyBox 4 SMF
Post by: jamesandersonicb on October 09, 2018, 05:17:41 PM
The nice mod seems to work very well.
Title: Re: FancyBox 4 SMF
Post by: woolly bugger on November 18, 2018, 10:52:14 AM
this mod used to work for me but now all I get when viewing the forum in a browser (Edge, IE, Chrome) is a download the image message.

Installed Mods

1. FancyBox 4 SMF 0.6.1
2. Automatic Attachment Rotation (and Resize) 5.7
3. GDPR Pro 2.0.2
4. PartyMembers 1.1
5. Post and PM Inline Attachments 6.1
6. WYSIWYG Quick Reply 2.3
7. dQuoteSelection 2.6.4
8. SMF 2.0.15 Update 1.0
9. SMF Gallery Lite 6.0
10. SMFPacks Shoutbox 1.1
11. Report BBCode 1.0
12. Google Analytics Code 1.5.1
13. Enhancements to recent posts 2.0.6
14. Hide Images from Guests 2.0
15. Responsive Curve 1.0.0
16. Simple Audio Video Embedder 4.1.4
17. Ad Seller Pro 2.5.4
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 07:31:20 AM
Always when I am on settings screen of the mod, I have +1 error in log after each refreshing of the page.

Title: Re: FancyBox 4 SMF
Post by: d3vcho on December 25, 2018, 07:39:02 AM
I've just installed the mod and can't replicate the issue.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 07:45:51 AM
I've just installed the mod and can't replicate the issue.
You need to enter on this page and refresh it (mod settings > FancyBox). Did you do it?
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 07:48:49 AM
I have just installed clean SMF 2.0.15 version and installed this mod. I still see that error.
Title: Re: FancyBox 4 SMF
Post by: d3vcho on December 25, 2018, 07:49:46 AM
Yes I did it.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 07:50:59 AM
Yes I did it.
It's strange because I have this bug even on clean version of SMF.
Title: Re: FancyBox 4 SMF
Post by: d3vcho on December 25, 2018, 07:52:42 AM
I have also just set up a clean 2.0.15 install and still don't get the error.

edit: Sorry it just appeared.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 07:53:24 AM
I have also just set up a clean 2.0.15 install and still don't get the error.
I've tried to back my PHP version to 5.6 and now I don't have the error. What version of PHP do you use?
Title: Re: FancyBox 4 SMF
Post by: d3vcho on December 25, 2018, 07:54:56 AM
I'm using PHP 7.1.25. Go to Class-FancyBox.php and change:

This line:
Code: [Select]
public function settings()
to

Code: [Select]
public static function settings()
It should solve the error.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 08:02:50 AM
Go to Class-FancyBox.php and change:

This line:
Code: [Select]
public function settings()
to

Code: [Select]
public static function settings()
It should solve the error.

It works, thanks.

Quote
I'm using PHP 7.1.25.
On clean SMF on PHP 7.1 I still have that error. But your change in the code is solving it.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 09:15:05 AM
This mod breaks Quick Spoiler mod  :( http://custom.simplemachines.org/mods/index.php?mod=2940

With this mod I can't open any spoilers.

UPD:
I've updated Quick Spoiler, now it works correctly.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 25, 2018, 11:06:29 AM
Is there any way to set max width for non-opened images in this mod? Images get out of the screen in small screens (smartphone, for example). In my forum I have a CSS style special for that:

Code: [Select]
/* Auto resizing of images in posts and personal messages. */
/* Change sizing to suit your own preferences. */
.bbc_img {
height: auto;
width: auto;
/* This is just to keep images to a handy size, even on large screens. */
max-height: 640px;
/* This prevents images breaking out of the post on small screens. */
max-width: 95%;
}

But FancyBox 4 neutralizes this code. Can I by some way to set max-width in percents for FancyBox 4 like I've showed in the example above?
Title: Re: FancyBox 4 SMF
Post by: Bugo on December 25, 2018, 10:41:40 PM
Update the mod and use /Themes/default/css/jquery.fancybox.custom.css for own CSS.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 26, 2018, 12:05:27 AM
Update the mod and use /Themes/default/css/jquery.fancybox.custom.css for own CSS.
Thanks for operative support!

And now, I've discovered one thing. Always when I install FancyBox, QuickSpoiler mod (http://This mod breaks Quick Spoiler mod  :( http://custom.simplemachines.org/mods/index.php?mod=2940) breaks (is impossible to open spoilers). But if I deactivate and re-activate QuickSpoiler, it begins to work correctly. Maybe this info will be useful for you.
Title: Re: FancyBox 4 SMF
Post by: Arskrigitsioniets on December 26, 2018, 12:14:55 AM
But unfortunately, I can't adapt my code about that I said above

Code: [Select]
/* Auto resizing of images in posts and personal messages. */
/* Change sizing to suit your own preferences. */
.bbc_img {
height: auto;
width: auto;
/* This is just to keep images to a handy size, even on large screens. */
max-height: 640px;
/* This prevents images breaking out of the post on small screens. */
max-width: 95%;
}

to custom CSS in FancyBox. If I just paste it in /Themes/default/css/jquery.fancybox.custom.css, it doesn't work – images are still cut on small screens (screen 1). How it should look see on the screen 2.
Title: Re: FancyBox 4 SMF
Post by: Au{R}oN on January 20, 2019, 11:55:06 AM
Hi Bugo, i have a 'bug' with that mod.

It works fine with registered users, but, when topic is viewed by guests user, it's like if the img width set in the post is ignored, and users see full-size images. Disable Processing of images that inserted with img tag fix the issue, but of course the mod no longer works.

Any suggestion? Thanks :)
Title: Re: FancyBox 4 SMF
Post by: Bugo on January 21, 2019, 12:01:30 AM
Hi Bugo, i have a 'bug' with that mod.

It works fine with registered users, but, when topic is viewed by guests user, it's like if the img width set in the post is ignored, and users see full-size images. Disable Processing of images that inserted with img tag fix the issue, but of course the mod no longer works.

Any suggestion? Thanks :)
Try to replace /Sources/Class-FancyBox.php
Title: Re: FancyBox 4 SMF
Post by: Au{R}oN on January 22, 2019, 03:36:47 PM
Hi Bugo,

thanks for your help, with this version the problem is present with both registered and guest users :(

edit:

I fixed it by myself... what i did is actually a part of what you suggested.

I just commented these 3 lines.
Code: [Select]
if ($user_info['is_guest'])
       $hiwi = '';
else

and now both guest and registered users see the images correctly resized.

There is still one problem related to the thumbnails bar, that for some reason is placed on the right of the screen.. but beside that your mod is really awesome!
Thanks
Title: Re: FancyBox 4 SMF
Post by: woolly bugger on February 06, 2020, 11:59:38 AM
can't get this mod to work on SMF2.1/compare/967b680...release-2.1


installed mods attached...
Title: Re: FancyBox 4 SMF
Post by: kokkieblanda on April 21, 2020, 03:47:16 AM
Using 2.1RC2

it works perfectly with attached images but not with external urls within the [img] tags. Processing of images that inserted with img tag box is ticked. Hovering with the mouse on the photo the hand shows but no click and no box.

How can i fix this?
Title: Re: FancyBox 4 SMF
Post by: Bugo on April 21, 2020, 08:24:06 AM
I recommend updating to v0.7.1
Title: Re: FancyBox 4 SMF
Post by: kokkieblanda on April 21, 2020, 09:13:21 AM
thank you, the updated file did the trick
Title: Re: FancyBox 4 SMF
Post by: gevv on February 19, 2021, 12:00:26 PM
Hello,

FancyBox does not work when activated minimize the css and javascript files
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 19, 2021, 01:45:20 PM
Fancybox does not work on smartphone
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 19, 2021, 01:47:42 PM
URL https://g-news.com.ua/forum_smf/kievstar-veon/novosti-kievstar/12405/
Title: Re: FancyBox 4 SMF
Post by: Bugo on February 20, 2021, 05:24:15 AM
FancyBox does not work when activated minimize the css and javascript files
I need details.

Fancybox does not work on smartphone
Try to install Responsive Curve (https://custom.simplemachines.org/mods/index.php?mod=4040)
(https://i.ibb.co/5YPTvNb/2021-02-20-15-15-33.png) (https://ibb.co/YDx28zH)
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 20, 2021, 05:33:33 AM
Fancybox does not work on smartphone
Try to install Responsive Curve (https://custom.simplemachines.org/mods/index.php?mod=4040)
(https://i.ibb.co/5YPTvNb/2021-02-20-15-15-33.png) (https://ibb.co/YDx28zH)
Курва и стоит - https://g-news.com.ua/forum_smf/kievstar-veon/novosti-kievstar/msg177281/#msg177281
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 22, 2021, 11:45:44 AM
any idea?
Title: Re: FancyBox 4 SMF
Post by: Bugo on February 23, 2021, 12:46:24 AM
What ideas do you need? I'm not guessing from screenshots. I have the mod works.
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 23, 2021, 06:12:22 AM
It works perfectly for me on the desktop version of the forum, but sometimes it does not work correctly on the mobile version. The size of the displayed picture is larger than the smartphone screen.
Title: Re: FancyBox 4 SMF
Post by: shadav on February 23, 2021, 08:50:01 AM
It works perfectly for me on the desktop version of the forum, but sometimes it does not work correctly on the mobile version. The size of the displayed picture is larger than the smartphone screen.

Try to install Responsive Curve (https://custom.simplemachines.org/mods/index.php?mod=4040)

did you try to install the responsive curve?
Which theme are you using? Is the theme responsive?
does this do the same thing on any other themes?
Title: Re: FancyBox 4 SMF
Post by: gevv on February 23, 2021, 10:34:00 AM
It works perfectly for me on the desktop version of the forum, but sometimes it does not work correctly on the mobile version. The size of the displayed picture is larger than the smartphone screen.

+1   yes i am using a mobile compatible theme, there is this problem. There is a problem with external  images  (many)

+ pictures with external image  have incorrect alt tag  (alt="" {width}{height}="") 

fancybox (2.1 rc3)

Code: [Select]
<a href="https://ibb.co/HrrWjZv" class="bbc_link" title="" target="_blank"><img src="https://i.ibb.co/vJJ7S95/on-off-buton4eec311019eeada4.jpg" alt="" {width}{height}=""></a>

without fancybox

Code: [Select]
<a href="https://ibb.co/HrrWjZv" class="bbc_link" target="_blank" rel="noopener" style="border: 0px none;"><img src="https://i.ibb.co/vJJ7S95/on-off-buton4eec311019eeada4.jpg" alt="" title="" class="bbc_img" loading="lazy"></a>
(https://i.ibb.co/9rcWG0V/Untitled-1.jpg) (https://ibb.co/9rcWG0V) (https://i.ibb.co/jg8Zsx0/Untitled-2.jpg) (https://ibb.co/jg8Zsx0)


                        
Title: Re: FancyBox 4 SMF
Post by: Bugo on February 23, 2021, 01:10:23 PM
Paste the BBCode you are using.
Title: Re: FancyBox 4 SMF
Post by: gorbi on February 23, 2021, 01:23:57 PM
BBcode for attached image?