Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fancybox media viewer  (Read 2978 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Fancybox media viewer
« on: April 30, 2021, 01:36:40 am »

This plugin leverages the fancybox javascript library to provide an alternative viewing method for media when going directly from thumbnails to the larger image.

It features zoom/pan, fullscreen, download, slideshow (albums) and right-click protect. It is touch-enabled, as well. Configure differently for each user group.

To be fully functional, it requires the newer version of jQuery (a javascript library) that comes with version 1.6.12 and later of CPG.

Update: v1.3 added ability to configure differently for each user group
Update: v1.3.2 made compatible with Lazy Load plugin
Update: v1.3.3 corrected unwanted auto-advance from video
Update: v1.3.4 use default display method for files not handed by FancyBox
« Last Edit: February 25, 2022, 07:41:28 pm by ron4mac »
Logged

kodif

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fancybox media viewer
« Reply #1 on: August 11, 2021, 01:52:48 am »

Throws error when clicked "Album list">"Last comments" when comments has smileys

Quote
Fatal error: Uncaught Error: Call to undefined function process_smilies() in D:\Apache\htdocs\sites\galeria7\include\functions.inc.php:1183 Stack trace: #0 D:\Apache\htdocs\sites\galeria7\include\functions.inc.php(1525): build_caption(Array, Array) #1 D:\Apache\htdocs\sites\galeria7\plugins\fancybox\codebase.php(52): get_pic_data('lastcom', '2713', '<img src="image...') #2 D:\Apache\htdocs\sites\galeria7\include\plugin_api.inc.php(215): plg_fancybox_deploy('<!DOCTYPE html ...') #3 D:\Apache\htdocs\sites\galeria7\include\functions.inc.php(949): CPGPluginAPI::filter('gallery_header', '<!DOCTYPE html ...') #4 D:\Apache\htdocs\sites\galeria7\include\init.inc.php(442): load_template() #5 D:\Apache\htdocs\sites\galeria7\thumbnails.php(28): require_once('D:\\Apache\\htdoc...') #6 {main} thrown in D:\Apache\htdocs\sites\galeria7\include\functions.inc.php on line 1183
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Re: Fancybox media viewer
« Reply #2 on: August 11, 2021, 01:44:44 pm »

Thank you for your feedback.
See the updated version (1.1) above.
Logged

kodif

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fancybox media viewer
« Reply #3 on: August 11, 2021, 05:40:56 pm »

Yes, this is solved.

But..

Lets say that we have some users in our gallery.

On index page, we have "Last updated albums",  with thumbs and names of author.
After click on user name, we are redirected to his profile, where we can see
thumb "Last uploaded file. Click to see all uploads by ..."

After clicking, we are redirected to page with adress 
http://galery/thumbnails.php?album=lastupby&uid=...

and here, clicking on thumbs does nothing, but after reloading page in browser,
images are displayed correctly.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Re: Fancybox media viewer
« Reply #4 on: August 11, 2021, 08:25:48 pm »

Wow! You should be a professional software tester.  ;)

See v1.2 above.
Logged

kodif

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fancybox media viewer
« Reply #5 on: August 13, 2021, 01:41:11 pm »

Actually, I am :)

I am glad I can help :)
Logged

merly

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fancybox media viewer
« Reply #6 on: February 18, 2022, 04:31:23 pm »

The plugin works perfectly for images but I have a couple questions regarding .mp4 videos ?

Videos only play once then stop, is there any way to make a video loop by default ?  I know it's possible to right click on a playing video and select 'loop' but that seems to be browser dependant and requires user interaction on every video, so I was wondering if there were any way to configure fancybox (or coppermine) to always loop ?

I've also found when an mp4 finishes it automatically switches to the next video, as though slideshow were permanently on ? I can't find any way to disable. It doesn't have this behaviour with images, only videos (or mp4 specifically, not tried other formats)

Am happy to edit code just for my own use, am just really stuck on this one, thanks !
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Re: Fancybox media viewer
« Reply #7 on: February 18, 2022, 06:24:11 pm »

I've also found when an mp4 finishes it automatically switches to the next video, as though slideshow were permanently on ? I can't find any way to disable. It doesn't have this behaviour with images, only videos (or mp4 specifically, not tried other formats)

I'll look into to that ... would seem to be a bug.
I'll also see what I can come up with about looping.
Logged

merly

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fancybox media viewer
« Reply #8 on: February 18, 2022, 07:25:20 pm »

thank you, much appreciated  8)
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Re: Fancybox media viewer
« Reply #9 on: February 19, 2022, 12:53:11 am »

See new version (1.3.3) above that corrects the unwanted advance of videos when not in slideshow.

I won't be looking at the possibility of a looping option until I have time to upgrade the plugin to use the 4th generation version of FancyBox.
Logged

merly

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fancybox media viewer
« Reply #10 on: February 19, 2022, 04:11:33 pm »

that's brilliant man, thanks for all your hard work, you're a legend  8)
Logged

merly

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fancybox media viewer
« Reply #11 on: February 19, 2022, 06:13:02 pm »

I managed to find a temporary solution.

In file : \fancybox\fb\jquery.fancybox.min.js

Find : video class="fancybox-video"

Replace with : video class="fancybox-video" loop=""
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1818
Re: Fancybox media viewer
« Reply #12 on: February 19, 2022, 06:57:04 pm »

I managed to find a temporary solution.

In file : \fancybox\fb\jquery.fancybox.min.js

Find : video class="fancybox-video"

Replace with : video class="fancybox-video" loop=""
;)
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.