Topic Closed
ark19
8 Posts

Hi,

I have this weird problem, the Masonry Gallery plugin works properly only when I'm logged in. After I log out when I clik on an image it shows as a single image in browser window, Help me please.

Thank You

Edited: 2 years ago#8021

juergen
1.1K Posts
41.8K Downloads
17 Plugins
design, web development & visual effects

In the plugin's directory* open "Masonry_gallery.php" and add  the green line  after line 11:

 8  class Masonry_gallery {
 9  
10  function GetHead() {
11    global $page, $addonRelativeCode;
12    common::LoadComponents('colorbox');
13    $page->head_js[] =   $addonRelativeCode . '/masonry.pkgd.min.js';
14    $page->head_js[] =   $addonRelativeCode . '/imagesloaded.pkgd.min.js';
15    $page->css_user[] =  $addonRelativeCode . '/mg.css';
16    }

 

* the plugin direcory's location depends on how the plugin was installed.
- Plugins installed via remote connection directly from within gpEasy's "Find Plugins" will be in
/data/_addoncode/abc1234 where abc1234 is some random string.
If you downloaded the plugin as a ZIP archive it will remain in the /addons/Mansonry_Gallery directory where it was extracted to.

 

(PS: I also recommend to fix line 105 (now 106 ) by adding the green marked part:
echo '<img src="'.$dirPrefix.'/data/_uploaded/image/'.$mgfolder."/".$imgpath.'" />';
This fix will only be needed if gpEasy is not installed in the server root but in a subdirecory.)

Edited: 2 years ago#8022

ark19
8 Posts
Jurgen, thank you so much for your answer, I really appreciate your quick and working advice, I'd like to add that the 106 line is already fixed, maybe it's the new wersion of this plugin. Thanks again. Greetings to you.
2 years ago#8025

juergen
1.1K Posts
41.8K Downloads
17 Plugins
design, web development & visual effects

You're welcome!

I'd like to add that the 106 line is already fixed, maybe it's the new wersion of this plugin.

I remember that it was already fixed, but now it seems to be broken again in current version 1.2 (just downloaded and checked twice).
However, great that  it works now on your side.

I posted the issues + fixes to the plugin's Support Forum

2 years ago#8027

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): Konzeption, Planung und Erstellung Ihres Internet-Auftritts, Betreuung und Aktualisierung Ihrer Website, Programmierun...

Find out more about our Provider Spotlight

Log In

  Register