Fancybox Download 2.1

This component/theme works with latest OSSN version.
5.0
Indonesian Arsalan Shah 7 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 2 months ago

Sorry, I'd better had addressed my post as @Arsalan. This is no solution to enlarging, just a superflous log output.

Hungarian Tamás Varga Replied 2 months ago

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.

German Michael Zülsdorff Replied 2 months ago

2.1:
please disable console.log($(this).attr('data-fancybox'));

Hungarian Tamás Varga Replied 4 months ago

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.

Indonesian Arsalan Shah Replied 5 months ago

Glad to hear it worked :)

German Michael Zülsdorff Replied 5 months ago

👍 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 :)

Indonesian Arsalan Shah Replied 5 months ago

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.

Breton Rafael Amorim Replied 5 months ago

@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

German Michael Zülsdorff Replied 5 months 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 10 months ago

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

Component

Developer: Arsalan
License GPL v2
Type: Photos and Images
Requires Ossn Version : 6.1
Latest Version: 2.1
Last Updated 5 months ago
Repository Url View Repository

Versions