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
Fancybox 2.0 by Rafael Amorim https://www.opensource-socialnetwork.org/u/rafaelAmorim
Fancybox 1.5
Users graphic disappear in admin dashboard #2
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.
@J Miller The code goes in fancybox.init.php in fancybox/plugins/default/js/
@Allon Prooit Where does this code go?
marked to not work with latest Ossn
because it stops the gallery on album page from working
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();
},
});
});
Works fine with AutoPagination and Ossn v5.2 (i only tested on v5.2)
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?
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
Thank you very much!
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.