Easy2Gallery - MODX Community Forums https://forums.modx.com/board/?board=102 <![CDATA[easy2gallery evo with php 5.6 or php 7.0]]> https://forums.modx.com/thread/101682/easy2gallery-evo-with-php-5-6-or-php-7-0#dis-post-548401 https://forums.modx.com/thread/101682/easy2gallery-evo-with-php-5-6-or-php-7-0#dis-post-548401 Mon, 30 Jan 2017 10:47:08 +0000 https://forums.modx.com/thread/101682/easy2gallery-evo-with-php-5-6-or-php-7-0#dis-post-548401 <![CDATA[Can't install with Evo 1.1]]> https://forums.modx.com/thread/100379/can-t-install-with-evo-1-1#dis-post-542521
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\webs\heimatverein\modx\assets\modules\easy2\install\index.php* on line 34

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\webs\heimatverein\modx\assets\modules\easy2\install\index.php* on line 36

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\webs\heimatverein\modx\assets\modules\easy2\install\index.php* on line 44

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in *C:\xampp\htdocs\webs\heimatverein\modx\assets\modules\easy2\install\index.php* on line 46

What can I do?]]>
https://forums.modx.com/thread/100379/can-t-install-with-evo-1-1#dis-post-542521 Thu, 16 Jun 2016 10:02:16 +0000 https://forums.modx.com/thread/100379/can-t-install-with-evo-1-1#dis-post-542521
<![CDATA[Easy2Gallery - Add hyperlink to slide in smoothgallery]]> https://forums.modx.com/thread/75064/easy2gallery---add-hyperlink-to-slide-in-smoothgallery#dis-post-537999
I am using version 1.4.10-rc4 on Evo 1.0.5]]>
https://forums.modx.com/thread/75064/easy2gallery---add-hyperlink-to-slide-in-smoothgallery#dis-post-537999 Sat, 06 Feb 2016 04:05:37 +0000 https://forums.modx.com/thread/75064/easy2gallery---add-hyperlink-to-slide-in-smoothgallery#dis-post-537999
<![CDATA[Support/Comments for Easy 2 Gallery 1.4.7-pl]]> https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-536936 manual topic for Easy 2 Gallery 1.4.7-pl by goldsky.

***************** 1.4.7 ******************
+ Bugfixed the sibling infos for prev up next navigation
+ Updated the slideshow’s limit to be able to use the Template Variable
+ Bugfixed the config file checker
+ Bugfixed the language’s multibyte string

Brief Description:

See the HELP tab inside the module for the complete instruction.

Module Features:
* Creation and editing of folders with unlimited nesting capabilities
* Image or zip package uploading via POST method.
* Synchronization of gallery with files and folders uploaded via FTP.
* Editing of image info
* Comments moderation.

Snippet features:

* Image viewing.
* Comments viewing and adding
* High customisation capabilities with templates and placeholders.
* Breadcrumbs
* Pagination
* Integrated javascript display modes:
o - colorbox
o - highslide
o - fancybox
o - shadowbox
o - slimbox
o - lightwindow
READ their licenses for a commercial usage.
* Possible to display random image or single image
* Possible to sort pictures and folders
* Slideshows:
o - Simple
o - Galleriffic
o - SmoothGallery
o - GalleryView
o - ContentFlow
READ their licenses for a commercial usage.

Wiki: http://wiki.modxcms.com/index.php/Easy2gallery

Installation Instructions

1. Unpack archive in root folder of you modx installation
2. If this is your fresh installation: create a new folder ’gallery’, the default path is assets/images/gallery.
You can change this from the default.config.easy2gallery.php (fresh installation) from this value:

’dir’ => ’assets/images/gallery/’,
If this is an upgrade, this module will use the existing config.easy2gallery.php values, if any.
3. Create new module, name it anything (Eg: Easy 2 Gallery), type:
$o = include_once(MODX_BASE_PATH.'assets/modules/easy2/index.php');
return $o;

, click save.
4. Refresh modx manager, then open the module tab.
5. Install following instructions.
6. If install is successful, remove install folder, manually or by clicking delete button. module won’t work if this folder exists.


1. Unpack archive in root folder of you modx installation
2. If there is one (upgrade from below of E2G 1.4.0-rc4), COPY your existing

file to

2. Open the module tab, upgrade following instructions
3. If upgrade is successful, remove install folder, manually or by clicking delete button. module won’t work if this folder exists.
4. Edit ALL of your viewers, change the folder directives.
eg: assets/libs/highslide => assets/libs/viewers/highslide
https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-536936 Wed, 13 Jan 2016 03:41:43 +0000 https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-536936
<![CDATA[File upload problem]]> https://forums.modx.com/thread/75487/file-upload-problem?page=2#dis-post-533426
1836 : Upload error : ../assets/images/gallery/test/pats2010_4.jpg
937 : Unable to change the permission fullPath = ../assets/images/gallery/test/pats2010_4.jpg
1850 : 1 files have been uploaded.

however, it has not been uploaded. I think that it's a permissions problem, but I can't seem to locate it. Any thoughts?]]>
https://forums.modx.com/thread/75487/file-upload-problem?page=2#dis-post-533426 Tue, 20 Oct 2015 01:27:57 +0000 https://forums.modx.com/thread/75487/file-upload-problem?page=2#dis-post-533426
<![CDATA[Easy2Gallery pagination: any way to remove the permalink (....#....) in URLs?]]> https://forums.modx.com/thread/98471/easy2gallery-pagination-any-way-to-remove-the-permalink-in-urls#dis-post-532568

I want to remove the last part of the URL, i.e. the anchor (e.g. "#1_13") for some website.

This parameter seem being named the permalink.
The only place where I could found the URL being composed was in includes/models/e2g.snippet.class.php.

So, I tried to remove
. '#' . $permalink
at every location that I could find in e2g.snippet.class.php, uploaded it, cleared server and browser cache and refreshed the page. But the "#1_13" was not removed.
How can I remmove this permalink?

N.B.: I removed the [+easy2:permalink+] placeholder in the template gallery.htm, so that the target anchor is no more in the page. However, the parameter in the URL remains and is useless in my case.]]>
https://forums.modx.com/thread/98471/easy2gallery-pagination-any-way-to-remove-the-permalink-in-urls#dis-post-532568 Thu, 01 Oct 2015 08:40:03 +0000 https://forums.modx.com/thread/98471/easy2gallery-pagination-any-way-to-remove-the-permalink-in-urls#dis-post-532568
<![CDATA[Easiest way to randomly select one image from each gallery?]]> https://forums.modx.com/thread/98049/easiest-way-to-randomly-select-one-image-from-each-gallery#dis-post-530688
The 3 pictures could be randomly selected either when the page is loaded --with the paths to the pictures stored in hidden fields-- or dynamically when one of the link is clicked.

Should I write a snippet or is there a "built-in" easier solution?

Furthermore, it would be nice if the user could then browse the gallery that he selected.
I assume that I should use one of the plugins for this.

Thanks for your advice.]]>
https://forums.modx.com/thread/98049/easiest-way-to-randomly-select-one-image-from-each-gallery#dis-post-530688 Fri, 28 Aug 2015 10:18:12 +0000 https://forums.modx.com/thread/98049/easiest-way-to-randomly-select-one-image-from-each-gallery#dis-post-530688
<![CDATA[Issues accessing galleries after editing easy2_dirs table]]> https://forums.modx.com/thread/98097/issues-accessing-galleries-after-editing-easy2-dirs-table#dis-post-530441
After manual edition of the easy2_dir table, I encounter a problem with the path to the root folder.

The web site use three folders (which are towns).
Easy2Gallery does not list the folders anymore. As the path, it chains the names of the miscellaneous galleries, like if they were subolders of each other, whichever the selected gallery.

I compared the content of the table "easy2_dirs" with thus of another site running well and I cannot understand what I'm doing wrong since the "parent_id", "cat_id" and "cat_level" fields seem being correctly set.

I assume that I'm missing something about the role of the "cat_left" and "cat_right" columns and how they should be set. Please see the two attached screenshots.

Who can help?
Thanks a lot.]]>
https://forums.modx.com/thread/98097/issues-accessing-galleries-after-editing-easy2-dirs-table#dis-post-530441 Mon, 24 Aug 2015 10:41:12 +0000 https://forums.modx.com/thread/98097/issues-accessing-galleries-after-editing-easy2-dirs-table#dis-post-530441
<![CDATA[ [Solved] Easy2Gallery not listing folders in the manager]]> https://forums.modx.com/thread/97541/solved-easy2gallery-not-listing-folders-in-the-manager#dis-post-530235
I'm new to Easy2Gallery but could see it working on some website.

I installed the version 1.4.14-pl in MODx 1.0.3.
The module is able to create subfolders in its root folder (assets/images/gallery/), but those folders are not listed by the drop lists to select a folder.

Hence, I can import images in "assets/images/gallery", but not in the gallery folders.

Any idea ?

Solved :
I copied the working configuration from an older version of Easy2Gallery and it solved the issue.]]>
https://forums.modx.com/thread/97541/solved-easy2gallery-not-listing-folders-in-the-manager#dis-post-530235 Wed, 19 Aug 2015 12:09:44 +0000 https://forums.modx.com/thread/97541/solved-easy2gallery-not-listing-folders-in-the-manager#dis-post-530235
<![CDATA[Easy2Gallery multilingual]]> https://forums.modx.com/thread/98047/easy2gallery-multilingual#dis-post-530224
I slightly adapted the code of Easy2Gallery's module to make it multilingual.
Added new table easy2_translations storing the multilingual fields.

The 'summary' field was renamed to 'title' to store the multilingual titles of the picture.
Added fields 'author' and 'source'. The maximum length some fields was shortened.

A multiligual version of the module class can be downloaded here:
More details in the comments at the beginning of the file.

Please note that this is work under progress and the templates must still be adapted.
I'll try to post soon some SQL requests and pictures so that you can easily populate demonstation tables.

The new table structure
CREATE TABLE `modx_easy2_files` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `dir_id` int(10) unsigned NOT NULL default '0',
  `filename` varchar(128) NOT NULL default '',
  `size` varchar(32) NOT NULL default '',
  `name` varchar(128) NOT NULL default '',
  `author` varchar(32) default '',
  `tag` varchar(255) default '',
  `date_added` datetime NOT NULL default '0000-00-00 00:00:00',
  `last_modified` datetime default NULL,
  `comments` int(10) unsigned NOT NULL default '0',
  `status` tinyint(3) unsigned NOT NULL default '1',
  PRIMARY KEY  (`id`)

CREATE TABLE `modx_easy2_translations` (
  `id` int(10) unsigned NOT NULL,
  `file_id` int(10) unsigned NOT NULL,
  `lang` char(2) NOT NULL default '',
  `title` varchar(255) NOT NULL default '',
  `source` varchar(32) default '',
  `description` text,
  PRIMARY KEY  (`id`)
https://forums.modx.com/thread/98047/easy2gallery-multilingual#dis-post-530224 Wed, 19 Aug 2015 08:43:15 +0000 https://forums.modx.com/thread/98047/easy2gallery-multilingual#dis-post-530224
<![CDATA[Is there any way to avoid the "Easy 2" root folder ?]]> https://forums.modx.com/thread/98045/is-there-any-way-to-avoid-the-easy-2-root-folder#dis-post-530216
When I create an new gallery in Easy 2 Gallery, it always become a child of the "Easy 2" root folder. Trying to get rid of this, I edited the easy2_dirs table as follow:
  • deleted the "Easy 2" record
  • set the "parent_id" to 0 for galleries
  • set the "cat_level" to 1 for galleries
  • set the "cat_id" to 1,2,3 for my galleries

This worked for the galleries with cat_id 2 and 3.

However, when I try to access the gallery with cat_id=1, I encounter the following issues:
  • instead of the content of the gallery, the list of gallery folders is diplayed
  • when later clicking on the first gallery name, the path is displayed as "Gallery_1/Gallery_1" (instead of "Gallery_1") and the usual buttons of the "Actions" column are missing

So, the gallery with the smallest id behaves more or less like if it was the root gallery.

Is there a way to modify the source code to get rid of this?]]>
https://forums.modx.com/thread/98045/is-there-any-way-to-avoid-the-easy-2-root-folder#dis-post-530216 Wed, 19 Aug 2015 06:35:33 +0000 https://forums.modx.com/thread/98045/is-there-any-way-to-avoid-the-easy-2-root-folder#dis-post-530216
<![CDATA["Shrink" option thumbnails not saved in Easy2Gallery 1.4.0 - RC 1, French]]> https://forums.modx.com/thread/97706/shrink-option-thumbnails-not-saved-in-easy2gallery-1-4-0---rc-1-french#dis-post-529803 Edit on 10 August 2015:
If configuration settings are not saved in Easy 2 Gallery, check that the file assets/modules/easy2/includes/configs/config.easy2gallery.php is writable.
(End of edit.)


Just wanted to know if this is unimplemented feature or a bug:
the "Shrink" option for generating the thumbnails does not work in Easy2Gallery 1.4.0-RC1 installed in French.

In French, the translation of "shrink" is "rétrécir".
Could this bug be caused by the accented characters "é" of the translation?
Or does this also affect the English version?

https://forums.modx.com/thread/97706/shrink-option-thumbnails-not-saved-in-easy2gallery-1-4-0---rc-1-french#dis-post-529803 Mon, 10 Aug 2015 11:57:49 +0000 https://forums.modx.com/thread/97706/shrink-option-thumbnails-not-saved-in-easy2gallery-1-4-0---rc-1-french#dis-post-529803
<![CDATA[Display a given image with Easy 2 Gallery ?]]> https://forums.modx.com/thread/97876/display-a-given-image-with-easy-2-gallery#dis-post-529236
For some website, I'm interested in Easy 2 Gallery mostly for its backend.
(to import pictures in folders)

On the frontend, I just want the e2g snippet to output a given picture, without any gallery system (no slideshow or so), since the picture is going to be used as the background image.

I tried what follows, but this still calls the default service to display thumbnails:
[!easy2? &fid=`114` &landingpage=`1` !]

I just want to output the picture "src" value, possibly with a simple customized wrapper.

Is is possible with Easy 2 Gallery and if yes how?]]>
https://forums.modx.com/thread/97876/display-a-given-image-with-easy-2-gallery#dis-post-529236 Thu, 30 Jul 2015 12:40:48 +0000 https://forums.modx.com/thread/97876/display-a-given-image-with-easy-2-gallery#dis-post-529236
<![CDATA[Easy2Gallery : "The connection was reset" when uploading in Firefox]]> https://forums.modx.com/thread/97704/easy2gallery-the-connection-was-reset-when-uploading-in-firefox#dis-post-528453 Easy2Gallery 1.4.0-RC1
Mozilla Firefox 38.0.5
Hosting: Infomaniak


I have this very strange issue using Easy 2 Gallery in Mozilla Firefox:
when trying to upload one (or more pictures), I sometimes have the message "The connection was reset" displayed in the right frame of the MODx manager as soon as I click the "Upload" button.

This occurs only for some pictures and always the same ones.
As long as I could see, the problem does not occur in Internet Explorer, but in Mozilla Firefox.

I tried clearing both the cache of MODx and the browser, but this does not solve anything.

All pictures are 1020x720 pixels and about 200 Ko.
Some pictures that load without problem have a size larger than the ones that cannot upload. The names of the problematic pictures are not longer than others, nor do contain any special characters.

If I save the pictures again and give them another name, I can sometimes upload them.

Any idea?

The error:
La connexion a été réinitialisée

La connexion avec le serveur a été réinitialisée pendant le chargement de la page.

Le site est peut-être temporairement indisponible ou surchargé. Réessayez plus tard ;
Si vous n'arrivez à naviguer sur aucun site, vérifiez la connexion au réseau de votre ordinateur ;
Si votre ordinateur ou votre réseau est protégé par un pare-feu ou un proxy, assurez-vous que Firefox est autorisé à accéder au Web.
https://forums.modx.com/thread/97704/easy2gallery-the-connection-was-reset-when-uploading-in-firefox#dis-post-528453 Fri, 17 Jul 2015 09:16:36 +0000 https://forums.modx.com/thread/97704/easy2gallery-the-connection-was-reset-when-uploading-in-firefox#dis-post-528453
<![CDATA[Picture and thumbnails on same page]]> https://forums.modx.com/thread/97679/picture-and-thumbnails-on-same-page#dis-post-528314
Is there an easy way to make Easy2Gallery display picture and thumbnails on the same page?

For Maxigallery, it is possible by placing two calls and using javasript to display the picture of the clicked thumbnail on the same page.

I cannot use MaxiGallery this time because I'm already using it to load backgrounds.

So, I wonder if I should place two calls to Easy2Gallery and add some javascript, exactly like the technique for MaxiGallery, or if there is an easier way to do it.

Currently, I use this very simple snippet call: [!easy2? &gid=11 !]
It outputs the thumbnails from gallery #11, but the clicked picture is displayed on a black layout by this script from the module "show.easy2gallery.php".

https://forums.modx.com/thread/97679/picture-and-thumbnails-on-same-page#dis-post-528314 Wed, 15 Jul 2015 06:57:24 +0000 https://forums.modx.com/thread/97679/picture-and-thumbnails-on-same-page#dis-post-528314
<![CDATA[Is Easy2Gallery 1.41 rc3 compatible with php5.4?]]> https://forums.modx.com/thread/91678/is-easy2gallery-1-41-rc3-compatible-with-php5-4#dis-post-524345
Looks like line 911 of e2g.snippet.class.php doesn't agree with php 5.4
// create cover file
        $thumbDirs = explode('/', dirname($thumbPath));
        $count = count($thumbDirs);
        $xpath = $gdir;
        $lng = parent::languageSwitch(E2G_SNIPPET_PATH . 'includes/');
        for ($c = 0; $c < $count; $c++) {
            $xpath .= $thumbDirs[$c] . '/';
            $this->createIndexHtml($xpath, $lng['indexfile']);

Is this patchable?

https://forums.modx.com/thread/91678/is-easy2gallery-1-41-rc3-compatible-with-php5-4#dis-post-524345 Tue, 14 Apr 2015 10:15:18 +0000 https://forums.modx.com/thread/91678/is-easy2gallery-1-41-rc3-compatible-with-php5-4#dis-post-524345
<![CDATA[Pagination not visible]]> https://forums.modx.com/thread/93092/pagination-not-visible#dis-post-513910 I am using a basic call:

In "menu/settings/thumbnails/pagination", Enable is set to On
I even checked the db:
modx_easy2_configs` VALUES ('pagination','1');

The gallery otherwise displays correctly, breadcrumbs also work, just no pagination.
Any ideas as to what could be going on?]]>
https://forums.modx.com/thread/93092/pagination-not-visible#dis-post-513910 Mon, 03 Nov 2014 03:33:31 +0000 https://forums.modx.com/thread/93092/pagination-not-visible#dis-post-513910
<![CDATA[Cant see gallery on frontend]]> https://forums.modx.com/thread/92119/cant-see-gallery-on-frontend#dis-post-503179
So having looked around the modx site and forums decided to upgrade to 1.4.14

That didnt go too well, so I then decided to go for a new install, deleted the old module and started again.

Although the backend looks fine, and I can see images in the folder I created, I cant get the gallery/slideshow to work on the front end.

on the front end I get an error message:

Template thumb_tpl is not found!
Template tpl is not found!

The code Im using to call it

[!easy2? &gid='14' &slideshow=`galleriffic` &ss_config=`example-2` &w=`70` &h=`70` &ss_limit=`260`!]



https://forums.modx.com/thread/92119/cant-see-gallery-on-frontend#dis-post-503179 Tue, 15 Jul 2014 07:50:16 +0000 https://forums.modx.com/thread/92119/cant-see-gallery-on-frontend#dis-post-503179
<![CDATA[Simple slideshow: 2 instances / boxes]]> https://forums.modx.com/thread/89906/simple-slideshow-2-instances-boxes#dis-post-494119
I would like to display 2 instances of Simple slideshow in one document with 2 different sizes.

I put 2 snippet calls into the resource but it does only use the size parameters given in the 2nd snippet call.

[!easy2? slideshow=`simple` &gid=`20` &ss_w=`400` &ss_h=`250` &ss_allowedratio=`all` !]
[!easy2? slideshow=`simple` &gid=`20` &ss_w=`200` &ss_h=`150` &ss_allowedratio=`all` !]

So, I tried to create a new plugin based on Simple, copying all the resources in libs/slideshows/simpleqjuery and renamed
the new one to simplejquery1 and called it in the snippet to have a separate version available.

[!easy2? slideshow=`simple` &gid=`20` &ss_w=`400` &ss_h=`250` &ss_allowedratio=`all` !]
[!easy2? slideshow=`simple1` &gid=`20` &ss_w=`200` &ss_h=`150` &ss_allowedratio=`all` !]

Unfortunately I get
1230: empty index file in database

Is there a way to get it to work, or probably another way to use Simple 2 times in one resource?

Any hint is highly appreciated.
Thanks in advance and greetings!]]>
https://forums.modx.com/thread/89906/simple-slideshow-2-instances-boxes#dis-post-494119 Tue, 01 Apr 2014 04:25:19 +0000 https://forums.modx.com/thread/89906/simple-slideshow-2-instances-boxes#dis-post-494119
<![CDATA[easy2gallery: Synchonisation of files uploaded by FTP]]> https://forums.modx.com/thread/88532/easy2gallery-synchonisation-of-files-uploaded-by-ftp#dis-post-493858
The documentation is a little bit thin.

Any tips on how to use the synchronisation function, for example recommended ways of setting it to automatically sync periodically so we can allow users to upload files themselves without any intervention in Manager?

Or what about ability to sync metadata (EXIF, etc.)? Is this supported?

https://forums.modx.com/thread/88532/easy2gallery-synchonisation-of-files-uploaded-by-ftp#dis-post-493858 Fri, 28 Mar 2014 02:54:37 +0000 https://forums.modx.com/thread/88532/easy2gallery-synchonisation-of-files-uploaded-by-ftp#dis-post-493858