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
I found a bug in fancybox version 2.4. fancybox.init.php line 31 TOGGLEZOOM: Ossn.Print('fancybox:toggle:zoom') correct line: TOGGLEZOOM: Ossn.Print('fancybox:toggle_zoom')
Sorry, I'd better had addressed my post as @Arsalan. This is no solution to enlarging, just a superflous log output.
Michael: Please write the solution here so that I can understand it. :)
I don't understand programming. I don't know where the line is to be banned.
2.1:
please disable console.log($(this).attr('data-fancybox'));
I think it would be helpful if the images in the post and comment could all be enlarged. Now only the images in the post can be enlarged.
Glad to hear it worked :)
👍 can confirm 2.1 is fixing my reported issue.
2.0 is indeed working with Chat enabled, but most of the time I have disabled it, that's how I stumbled upon the issue :)
Uploaded new version sorry I hadn't got chance to look it properly last night I spent 5 hours migrating customer site and then in end some issues appeared with receiving emails appeared to be issue with bug with some VPS panel :) My mind was closed during upload.
@Michael
I tested it on two different instances of OSSN and it worked equally and as I wanted. Perhaps another $(document).ready is needed to cater for all the different page loading modes. This I don't know, as I've only been in contact with the OSSN for a little over 2 months.
What I couldn't do, due to lack of time, is the display of photos from an album as a group, in the timeline. As it is now, all the photos in the albums are displayed together. This behavior is not what I want, but the intention was to update the component and ask for help to resolve this issue :-)
Regards
[UPDATE] To better understanding of the instances, one of them uses with GoBlue 6.0 theme and another use with White Theme 6.1
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.