By Mist on Thursday, 07 August 2014
Posted in General Issues
Likes 0
Views 1K
Votes 0
Hi guys,
I am struggling to locate a bug and trying to fix it but without any luck so far

I noticed that other users have the same problem (shown in topic below)
http://stackideas.com/forums/gallery-with-horizontal-and-vertical-photos

When i access an easyblog article, on first load masonry does not display the gallery properly.
If i refresh the page, everything comes back into place (see the attachments for the error encountered on first load and how the actually gallery display is corrected after page refresh)

How can i fix this ? Thx !
Hello Mist,

Sorry for late reply to this,
I have applied some fix in your template override file JoomlaFolder/templates/ja_sugite/html/com_easyblog/blog.gallery.php, it should work fine now.
·
Monday, 18 August 2014 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Sorry for late reply to this,
May i know are you using the latest version of Easyblog? If no, can you update to latest version of Easyblog and see how it goes?
If this issues still persists, can you provide us with your Joomla backend and FTP access so we can help you check on this? Please advise.
·
Friday, 08 August 2014 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
I updated to the latest version 3.9.17809 ... but the problem still persists.
Here is my blog.gallery.php file, currently the site is on localhost but i will put it online soon.

Why this error occurs ? It's strange that only after i refresh the same page gallery is displaying properly and images fill out the grid perfect.
·
Friday, 08 August 2014 03:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Okay, keep us updated then. So we can directly check on your site.
·
Friday, 08 August 2014 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
You can check the issue live at the credentials attached to this post.

Thanks !
·
Tuesday, 12 August 2014 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Sorry for late reply to this,
I have applied some code in this file -> JoomlaFolder\components\com_easyblog\themes\default\blog.gallery.php

//LINE 19
.library( 'masonry' , 'imagesloaded' , 'fancybox' , 'fancybox/thumbs' )

//Replace with
.library( 'imagesloaded' , 'fancybox' , 'fancybox/thumbs' )

It should work fine now, please have a check.
·
Tuesday, 12 August 2014 23:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for looking into it Arlex.

I added also your changes in template override at: /templates/ja_sugite/html/com_easyblog/blog.gallery.php

But, here is my findings

If i use
.library( 'imagesloaded' , 'fancybox' , 'fancybox/thumbs' )

The entire gallery is not displayed right, even after multiple page refresh

If i use
.library( 'masonry' , 'imagesloaded' , 'fancybox' , 'fancybox/thumbs' )

The gallery display messed up at first ... and after that, on page refresh, the gallery start to align itself just right, filling up the entire grid spaces.

I tried to clean the browser cache, i also tried to test it using Mozilla Firefox and Google Chrome .... same issue on both.
·
Wednesday, 13 August 2014 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

I'm really sorry that delayed of this reply,
You're welcome, I have modified the code again in this post.gallery.php from your template overridden file again, can you clear the cache and see how it goes?
·
Wednesday, 13 August 2014 14:13
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue is still there, but now, even after multiple page refresh the gallery does not fill the masonry grid properly.
·
Wednesday, 13 August 2014 17:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

I'm really sorry that delayed of this reply and I have temporary revert back all the changes in your file, because I'm still investigate on this issues, I will get back to us as soon as possible.
·
Friday, 15 August 2014 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex.

Currently the masonry grid is working fine only after page refresh.
At first it loads all the images with some gaps inside the grid ... when i hit page refresh, the grid start to work properly with all images filling the grid perfect.
·
Saturday, 16 August 2014 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Confirmed. All good now. Thanks so much Arlex;
·
Monday, 18 August 2014 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

You'er welcome, glad to heard your issues resolved.
·
Monday, 18 August 2014 22:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post