forum.coppermine-gallery.net

Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: ron4mac on April 30, 2021, 01:36:40 am

Title: Fancybox media viewer
Post by: ron4mac on April 30, 2021, 01:36:40 am
This plugin leverages the fancybox javascript library (https://fancyapps.com/fancybox/3/) 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.1 resolves failure condition when smilies are enabled in comments
Update: v1.2 correct thumbnail actions for user profiled images
Update: v1.3 added ability to configure differently for each user group
 
Title: Re: Fancybox media viewer
Post by: kodif 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
Title: Re: Fancybox media viewer
Post by: ron4mac on August 11, 2021, 01:44:44 pm
Thank you for your feedback.
See the updated version (1.1) above.
Title: Re: Fancybox media viewer
Post by: kodif 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.
Title: Re: Fancybox media viewer
Post by: ron4mac on August 11, 2021, 08:25:48 pm
Wow! You should be a professional software tester.  ;)

See v1.2 above.
Title: Re: Fancybox media viewer
Post by: kodif on August 13, 2021, 01:41:11 pm
Actually, I am :)

I am glad I can help :)