<![CDATA[ Support/Comments for Easy 2 Gallery 1.4.7-pl - My Forums]]> https://forums.modx.com/thread/?thread=50737 <![CDATA[Re: 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?page=2#dis-post-536936 Long loading is caused by the process of the script to process big image(s).
Try to upload image < 1000 px width or < 1000 px height.]]>
goldsky Jan 13, 2016, 03:41 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl?page=2#dis-post-536936
<![CDATA[Re: 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-531647
I see that for each picture the thumbnails are created several times and suffixed with something like "_id17_sid0_137x77.jpg".

Is there a reason for this, or can I safely remove suffixes in thumbnail names to make these named like the main pictures?

I have on the pages three calls to the e2g snippet, which are pointing to different galleries.
Those snippets return the picture names as values of hidden input fields.
One of the pictures is then loaded and displayed as background (using the supersized jQuery plugin).

Because the picture is quite large and requires time to load, I would like to set the thumbnail as "lowsrc" or equivalent whilst the main picture is loaded. For this reason my interest in making the thumbnail names same as those of the main pictures.

I don't need the advanced features like comments, a.s.o.

Thank you for your answer.

N.B. In e2g.snippet.class we find:
         * Use document ID and session ID to separate between different snippet calls
         * on the same/different page(s) with different settings
         * but unfortunately with the same dimension.
         */
        $e2g_static_instances = $this->e2gsnip_cfg['e2g_static_instances'];
        $docid = $modx->documentIdentifier;
        $thumb_path = '_thumbnails/' . substr($path, 0, strrpos($path, '.')) . '_id' . $docid . '_sid' . $e2g_static_instances . '_' . $w . 'x' . $h . '.jpg';
]]>
Jul Sep 17, 2015, 06:26 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-531647
<![CDATA[Re: 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-297224 Quote from: goldsky at Jul 22, 2011, 12:28 PM


Yes you can.
There is a redirect link field on the detail info of each file.


Thanks for your quick reply and instructions, Goldsky. It is working! laugh

Best regards!]]>
Hardoman Aug 04, 2011, 10:22 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297224
<![CDATA[Re: 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-297223 nirzohar Jul 24, 2011, 03:58 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297223 <![CDATA[Re: 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-297222 goldsky Jul 24, 2011, 03:54 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297222 <![CDATA[Re: 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-297221 I’m trying to edit the js call for fancybox and I can’t find the right file to edit.
Can you please point me in the right direction?
thanks
Nir]]>
nirzohar Jul 24, 2011, 03:26 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297221
<![CDATA[Re: 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-297220 Quote from: Fukurokudzu at Jul 21, 2011, 05:11 PM

how can i use it with modx 2.1.2?
you can not.
this is for evo only. smiley]]>
goldsky Jul 22, 2011, 07:28 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297220
<![CDATA[Re: 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-297219 Quote from: Hardoman at Jul 21, 2011, 12:48 PM

Nevertheless I have a tiny request here: Would it be possible to put a link on each of the slideshow pictures, instead of linking it to the next following picture?
If that would work, you could put a slideshow on your website - for example to display products - and link it to the appropriate landing page.
Yes you can.
There is a redirect link field on the detail info of each file.

The trick is on your slideshow’s index file.
Let say we duplicate the smoothgallery’s as smoothgallery2.php, you need to add this parameter to your snippet call:
&ss_indexfile=`the_path_to_smoothgallery2.php`
change this part:
<?php //highlighting

    // ------------- start the images looping ------------- //
    for ($i = 0; $i < $ssFiles['count']; $i++) {
        $output .= '
    <div class="imageElement">
        <h3>' . $ssFiles['title'][$i] . '</h3>
        <p>' . $ssFiles['description'][$i] . '</p>
        <a href="'
                // making flexible FURL or not
                . $modx->makeUrl(
                        $modx->documentIdentifier
                        , $modx->aliases
                        , 'sid=' . $ssParams['sid']
                        . '&fid=' . $ssFiles['id'][$i]
                )
                . '#' . $ssParams['sid'] . '_' . $ssFiles['id'][$i] . '"'
                . ' title="open image" class="open"></a>
        <img src="' . $ssFiles['resizedimg'][$i] . '" class="full" alt="" />
        <img src="' . $ssFiles['thumbsrc'][$i] . '" class="thumbnail" alt="" />
    </div>';
    }
    // ------------- end the images looping ------------- //


to be like this:
<?php //highlighting

    // ------------- start the images looping ------------- //
    for ($i = 0; $i < $ssFiles['count']; $i++) {
        if (!empty($ssFiles['redirect_link'][$i])) {
            $redirectLink = $modx->makeUrl($ssFiles['redirect_link'][$i]); // <-- here is the redirect link
            $title = $ssFiles['summary'][$i]; // <-- here is the hover thing
        } else {
            $redirectLink = $modx->makeUrl(
                            $modx->documentIdentifier
                            , $modx->aliases
                            , 'sid=' . $ssParams['sid']
                            . '&fid=' . $ssFiles['id'][$i]
                    )
                    . '#' . $ssParams['sid'] . '_' . $ssFiles['id'][$i];
            $title = 'open image';
        }
        $output .= '
    <div class="imageElement">
        <h3>' . $ssFiles['title'][$i] . '</h3>
        <p>' . $ssFiles['description'][$i] . '</p>
        <a href="'
                // making flexible FURL or not
                . $redirectLink
                . '" title="' . $title . '" class="open"></a>
        <img src="' . $ssFiles['resizedimg'][$i] . '" class="full" alt="" />
        <img src="' . $ssFiles['thumbsrc'][$i] . '" class="thumbnail" alt="" />
    </div>';
    }
    // ------------- end the images looping ------------- //
]]>
goldsky Jul 22, 2011, 07:28 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297219
<![CDATA[Re: 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-297218 Fukurokudzu Jul 21, 2011, 12:11 PM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297218 <![CDATA[Re: 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-297217
I just tried it and it works perfectly! smiley

Nevertheless I have a tiny request here: Would it be possible to put a link on each of the slideshow pictures, instead of linking it to the next following picture?
If that would work, you could put a slideshow on your website - for example to display products - and link it to the appropriate landing page.

Sorry for this question, if it already works. I did not find this function inside the documentation.

Many thanks in advance and
best regards]]>
Hardoman Jul 21, 2011, 07:48 AM https://forums.modx.com/thread/50737/support-comments-for-easy-2-gallery-1-4-7-pl#dis-post-297217