<![CDATA[ Support/Comments for Easy 2 Gallery 1.3.5-release - My Forums]]> https://forums.modx.com/thread/?thread=38644 <![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221043
actually that’s very easy.
I should remind you how e2g [including the Revo’s Gallery or other gallery management] works.
Its purpose is only to manage the gallery.

Now the best of e2g, you can decide how the output should be.
It provides you 2 ways of image outputs:
1. by grid as the default (which is the original output since the 1.3 version)
2. by raw image list to be processed as slideshow (or others, since 1.4.0 where the flexibility begins).

From the 1.4.0 rc-4 (or below rc, I forget tongue), e2g provides you with 2 methods (let’s say the private methods, which in RC5/PL will have these as the public accessible methods to deal with AJAX) that can be used to retrieve the result:
<?php // highlighting

$ssParams = $this->_getSlideShowParams();
$ssFiles = $this->_getSlideShowFiles();

That puzzle demo as an example.
As I can read the raw HTML, I know that it actually deals with some sliced images, and play them with a jQuery’s script.
Now understand this: the magic relies on the Javascript.

So it doesn’t matter how you want the output will be, as long as you can make/borrow some JS scripts, you can have that magic on your hands. grin
To answer your question according to that specific example, here is the e2g’s demo.
If you want to see the code, would you ask on the RC-4 thread? tongue]]>
goldsky Jan 26, 2011, 10:41 PM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221043
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221042
It would seem some sort of jQuery-puzzle approach could work (e.g. http://tom.leapwing.co.uk/tech/jquery-puzzle-demo/) but I’m not really sure where to begin. Does anyone have any thoughts whether or not Easy 2 Gallery could be adapted to this task, or do I need to look at something else? Do any of the existing galleries have a drag-and-drop capability that would get things started?

Thanks in advance,
Matt]]>
mconsidine Jan 26, 2011, 08:14 PM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221042
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221041 Quote from: goldsky at Sep 22, 2010, 10:51 AM

you forgot to mention whether this is in module side or web.
remember, E2G works both sides, and the Evo also has different permissions.
Sorry, this is module-side.]]>
moniarde Sep 23, 2010, 12:16 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221041
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221040 remember, E2G works both sides, and the Evo also has different permissions.]]> goldsky Sep 22, 2010, 05:51 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=21#dis-post-221040 <![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221039 moniarde Sep 22, 2010, 04:29 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221039 <![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221038
We want to be able to restrict certain folders specifically in the gallery module to already created Document Groups, so that users who are currently locked down to those document groups are unable to see or edit other folders. For instance:

Doc groups: DG-A, DG-B and DG-C
User Groups: UG-A, UG-B UG-C and Admin
Gallery folders: FOL-A, FOL-B, FOL-C and Root

So for those users in UG-A, who are assigned to document group A, are then only permitted to view FOL-A in the Gallery. However, site managers (not admins) are assigned to UG-B and UG-C, and DG-B and DG-C. Therefore, they’re also allowed to view FOL-B and FOL-C. Admins can view all folders, including Root.

I have already started looking at module.easy2gallery.php (start at around line 800) to find a solution. However I currently can’t get past the fact the current input for entering new folder names is a prompt, which IE7+ hates, so I’m looking for an AJAX way around it. I would imagine however, that along with entering the folder name, there would be some sort of selection of which document groups the folder should be applied to, which is stored in the database in e2g_dirs.

Once the folder list is parsed (again around line 800), I would imagine that the ’for’ loop would also include a function that compares the document group in e2g_dir table against the user’s allowed doc groups, and only show folders that match. That’s about it. I’m sure there’s further uses for managing the folders using the standard MODx security.

On another topic, I’ve made some adjustments to the uploading of a zip file, whereby there’s an option for a default name and description, and if there’s neither, then the zip’s file name is used as the default. That’s only for my application, but maybe someone else might like to use it as well. I’ve attached a zip of module.easy2gallery.php and english.inc.php.]]>
moniarde Sep 22, 2010, 04:25 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221038
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221037 actually I’m about to add user permission to the RC-2, but I’m little bit confuse about the basic concept of this feature.
why should we need this, if the doc itself has been restricted?

enlighten me with a scenario, your own case may be.]]>
goldsky Sep 22, 2010, 03:42 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221037
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221036
Is there any way of being able to integrate the folders into doc groups, so that only those who are able to work within a certain doc group can then also only be allowed to view the images in certain e2g folders?

I know that v1.4.0-beta4 is available, but I won’t be able to use that until the beta testing is complete and the version signed off. In the meantime, I’m happy to do my own coding on 1.3.5, but I’ll need a hand.]]>
moniarde Sep 22, 2010, 12:59 AM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221036
<![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221035 get from the extra page.]]> goldsky Jun 28, 2010, 09:00 PM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221035 <![CDATA[Re: Support/Comments for Easy 2 Gallery 1.3.5-release]]> https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221034
How do i remove all the Russian text.
I see russian when the image is loading and more russian text as alt text.

how do i remove all of that?]]>
jazzmatazz2005 Jun 28, 2010, 05:19 PM https://forums.modx.com/thread/38644/support-comments-for-easy-2-gallery-1-3-5-release?page=20#dis-post-221034