Fancybox Download 2.4

This component/theme works with latest OSSN version.
5.0
Indonesian Arsalan Shah 10 years ago

This component will open a images in newsfeed into fancybox image viewer:

Discussed here: http://community.opensource-socialnetwork.org/discussion/view/344

Fancybox 2.1

  • Refactoring the JS code.
  • Moved to js/ossn.site instead of head.
  • Fixed issued with already existing photos not showing fancybox unless some ajaxComplete is performed. (as mentioned by Michael).

Fancybox 2.0 by Rafael Amorim https://www.opensource-socialnetwork.org/u/rafaelAmorim

  • Fancybox open after pagination load
  • Using fancybox v.4, instead v.2
  • Added language support
  • Add option to show or not fancybox in photo albums

Fancybox 1.5

Users graphic disappear in admin dashboard #2

Comments
German Michael Zülsdorff Replied 3 years ago

Thank you.

But it's only working if any $(document).ajaxComplete event had happened before - like adding a NEW photo post or triggering Autopagination for example.
Simply reloading the newsfeed page and clicking that same photo fails.
So most likely it needs some $(document).ready code, too.

us Allon Prooit Replied 3 years ago

@J Miller The code goes in fancybox.init.php in fancybox/plugins/default/js/

us J Miller Replied 3 years ago

@Allon Prooit Where does this code go?

German Michael Zülsdorff Replied 4 years ago

marked to not work with latest Ossn

because it stops the gallery on album page from working

us Allon Prooit Replied 5 years ago

Finally got it to work right for OSSN 5.0
Now the images continue to open in fancybox after auto pagination loads.
The new fancybox.init.php code...
$(document).ready(function(){
$(".ossn-wall-item .post-contents img").fancybox({
selector : '.ossn-wall-item .post-contents img',
top: '75px',
afterClose: function(){
$(".ossn-wall-item .post-contents img").show();
},
});
});

Indonesian Arsalan Shah Replied 5 years ago

Works fine with AutoPagination and Ossn v5.2 (i only tested on v5.2)

us Allon Prooit Replied 5 years ago

I use this and have made some changes to it use fancybox version 3.3.3 that works quite well. The only drawback I noticed is that it doesn't seem to work with AutoPagination after the first load. Works fine with manual pagination. This may just be my theme (GoBlack) or the fancybox version I'm using. Any thoughts?

Italian Cristian Mameli Replied 5 years ago

I found this composing as useless ... something that is missing now in the gallery and the ability to scroll back and forth between the photos

ua Estee Andr Replied 5 years ago

Thank you very much!

Breton Jonathan Goncalves Replied 7 years ago

I'm using the OSSN 4.4 (Premium), on Goblue theme and this plugins is not working.
When I click in the picture, is the same as nothing.

Component

Developer: Arsalan
License GPL v2
Type: Photos and Images
Requires Ossn Version : 6.1
Latest Version: 2.4
Last Updated 2 years ago
Repository Url View Repository

Versions