We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    Quote from: grabenfub at Oct 25, 2010, 11:44 PM

    I was going to try and use the tag field to link the big image link to a URL was why I was asking actually. So instead of getting the big image when they click the slideshow picture, it takes them to a page on the same site. I’ve tried landing page but I need a separate URL for each slideshow image. I’ve got it working using $_ssFile[’title’] and then naming the picture the same name as a friendly URL.

    I’m thinking I could add a field called URL or something to the db in easy2_files. Although, I’m not sure how to get that from there to here so to speak when it comes to calling it in a slideshow index.
    Aah... another linking between images and resources.
    Let me think how it should work, on the simplest way.

    EDIT:
    What is your snippet call, again?

    Quote from: grabenfub at Oct 25, 2010, 11:44 PM

    On another note some of the description calls in the slideshow index are wrapped in p tags. The description field tiny_mce editor adds its own p tags on save which results in nested p tags if you enter a description.
    I’ll add a sanitizing for this.
      Rico
      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
      MODx is great, but knowing how to use it well makes it perfect!

      www.virtudraft.com

      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

      Maintainter/contributor of Babel

      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
      • 11186
      • 38 Posts
      [!easy2? &slideshow=`customsmoothgallery` &ss_config=`custombannergallery` &gid=`4` &ss_w=`790` &ss_h=`288`!]

      nothing fancy.

      Then in the index for the link in the image element I’m using something like:

      <a href="’ . $_ssFile[’name’][$i] . ’.html" title="’ . $_ssFile[’title’][$i] . ’" class="open"></a>

      Which produces /page_name.html

      Originally I tried the tag field:

      <a href="’ . $_ssFile[’tag’][$i] . ’.html" title="’ . $_ssFile[’title’][$i] . ’" class="open"></a>

      So that I didn’t have to name the image a page name.

      But now I’m thinking something like:

      <a href="’ . $_ssFile[’custom’][$i] . ’" title="’ . $_ssFile[’title’][$i] . ’" class="open"></a>

      Where "custom" is simply another column like tag or summary in easy2_files?

      Then maybe in the page.edit_file template add the corresponding text field?

      I think I can do most of this (still learning), but what I don’t know how to get to work is the call to custom.
        • 13137
        • 204 Posts
        A possible suggestion for one of your future updates.
        In the user manager, possibly add to the permissions, the ability to decide who can see what main menu options.
        That way admins can see everything, but you could limit users to only folder/image options, with no possibility of messing with config., plugins, etc.

        I hope to post an updated Spanish lang. file soon.
          • 11186
          • 38 Posts
          @islander it’s already there. If you create a user group and a resource group they’ll show up on the users page in the menu.

          I created a ’Managers’ user group and linked it to a ’Gallery’ resource group for example.
            • 13137
            • 204 Posts
            Pretty slick, I would have never guessed it. Always a few steps ahead.

            Now, have there been any other thoughts about adding swf, flv support?
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Quote from: grabenfub at Oct 26, 2010, 01:29 AM

              But now I’m thinking something like:
              <a href="’ . $_ssFile[’custom’][$i] . ’" title="’ . $_ssFile[’title’][$i] . ’" class="open"></a>
              Where "custom" is simply another column like tag or summary in easy2_files?
              Then maybe in the page.edit_file template add the corresponding text field?
              I think I can do most of this (still learning), but what I don’t know how to get to work is the call to custom.
              If you dig deeper into the e2g.snippet.class.php, the private function _slideshow() does all the images fetching.
              If you’re thinking about connecting some specified images to any related resources, I’d rather add a kind of TV for each images/resources, so anyone can freely make any additional info into that images, eg: EXIF data, or Location, etc.

              Lol... it’s beyond my imagination already. grin

              Quote from: islander at Oct 26, 2010, 03:09 AM

              Now, have there been any other thoughts about adding swf, flv support?
              I need to make a plan about how we can apply the JS libraries to different file types.
              Not all the libraries support those file types.
              http://planetozh.com/projects/lightbox-clones/
                Rico
                Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                MODx is great, but knowing how to use it well makes it perfect!

                www.virtudraft.com

                Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                Maintainter/contributor of Babel

                Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                • 18219
                • 826 Posts
                Hi Goldsky,

                I tested Easy 2 Gallery but no picture appears when I use the slideshow mode.
                Here’s the code I get

                <noscript>
                <div class="jsdisabled">
                <img src="assets/modules/easy2/templates/default/icons/error.png" alt="" />
                <span>Please enable the javascript</span>
                </div>
                </noscript>
                <div id="e2g_wrapper">

                </div>
                Here are the settings I use
                [!easy2? &slideshow=`galleryview` &ss_config=`gallerylight` &w=`100` &h=`100` &ss_w=`600` &ss_h=`400` !]

                Have you any idea how to solve this problem?
                Thanks
                  Marc
                  I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  Your Root Gallery contains no pictures, but folders only.
                  Try to pick any &gid.
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 18219
                    • 826 Posts
                    Excuse-me.
                    I posted a error in my code:

                    [!easy2? &gid=`3` &slideshow=`galleryview` &ss_config=`gallerylight` &w=`100` &h=`100` &ss_w=`600` &ss_h=`400` !]
                    I have a folder (Id=3) with 4 pictures.
                      Marc
                      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      try &ss_allowedratio=`all`, or stretch it wider: &ss_allowedratio=`1.00-2.00`
                      perhaps your picture’s ratio (w/h) is not in the config range.
                        Rico
                        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                        MODx is great, but knowing how to use it well makes it perfect!

                        www.virtudraft.com

                        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                        Maintainter/contributor of Babel

                        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.