We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4018
    • 1,131 Posts
    @bennyb: Ok, so the name of your TV is indeed ’gallery’? The template id you want it to apply to is 12? And the id of the gallery module is indeed 2? If the field for the TV is disappearing then it might mean that it’s working but the gallery module ID is wrong. Check and make sure it’s correct. smiley

    @knightknight: The reason why images are stored by page ID is that if a page name changes in MODx, what happens to the directory name in EvoGallery? The module runs independently from MODx itself so, unless you create a plugin that manages the directory names whenever a page is saved, you’ll run into a lot of problems. Better to keep it simple and organized by page ID. smiley

    @bennyb: You can set the max width of the thumbnails in the module config. However, if you want more control, set the absolute max width you need for the thumbs and then use something like PHPThumb or another script to control the images on the front-end of your site. I’ve used PHPThumb in many instances with EvoGallery in the past. Works great!
      Jeff Whitfield

      "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
      • 15558
      • 108 Posts
      hi there!

      Is there a way, within EvoGallery, to use JQuery Cycle parameters as we can see them on http://jquery.malsup.com/cycle/ ? If yes, can somebody tell me the steps to follow ? Thanks in advance
        Sorry for that ⇧ , I'm no dev but I wanna try
        • 4018
        • 1,131 Posts
        @kehezen: Be sure and read the documentation, especially the part about Types, before posting.

        You can use an existing type or create your own type. Or you can bypass the types and just use chunks for all the templates. Either way, you can customize the output through either a type or series of templates. Whether it’s a jQuery Cycle plugin, jCarousel, or some other plugin, you can do it however you want. You can use EvoGallery to simply spit out the raw HTML and script it all from your own stand-alone js if you want. You’re in control. smiley
          Jeff Whitfield

          "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
          • 27421
          • 67 Posts
          Okay,

          I tried debugging this with Firebug and here’s the error that I’m getting:
          <b>Fatal error</b>:  Call to undefined function: json_encode() in <b>/assets/modules/evogallery/check.php</b>on line <b>34</b>


          Any idea what’s going on there?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            http://php.net/manual/en/function.json-encode.php

            Your version of PHP doesn’t have that function. There are workarounds... http://www.mike-griffiths.co.uk/php-json_encode-alternative/
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 27421
              • 67 Posts
              Thank you Sottwell. You saved me a huge headache. Instead of going with a workaround I just upgraded my version of php.
                • 36926
                • 701 Posts
                Quote from: Photowebmax at May 21, 2010, 03:08 PM

                Before reading your last post I tried something...

                As I stated I already created a test page for the Evo Gallery system. I am using this basic call:
                [[EvoGallery? &display=`images` &type=`jquery-cycle`]] 


                Once I am logged out of the Manager this page works fine.

                To see if I could target the call into a chunk I created a test chunk and dumped it into my template. I then added that basic EvoGallery call into that chunk in my template. I then logged out of the Manager and the EvoGallery is there working on every page that uses this template!

                This is very, very interesting...

                Could this be to do with quick manager loading jquery in noConflict mode. Try changing QM to either not use jquery or to not load jquery in in the front end.
                  • 27421
                  • 67 Posts
                  Is there a way to make it work with child resources instead of just top level resources? For my current project I have a main gallery page which has sub pages and these are the only resources that really need the module. I changed the root document ID which allowed me to assign images to the child resources, but then they won’t display in the template.
                    • 9757
                    • 82 Posts
                    Wow. This looks very interesting smiley

                    Any plans for lang files? It would be great to have EvoGallery in other languages, so end users in other countries could use it easily.

                      • 15558
                      • 108 Posts
                      Quote from: Bravado at May 25, 2010, 08:35 AM

                      @kehezen: Be sure and read the documentation, especially the part about Types, before posting.

                      You can use an existing type or create your own type. Or you can bypass the types and just use chunks for all the templates. Either way, you can customize the output through either a type or series of templates. Whether it’s a jQuery Cycle plugin, jCarousel, or some other plugin, you can do it however you want. You can use EvoGallery to simply spit out the raw HTML and script it all from your own stand-alone js if you want. You’re in control. smiley

                      you would not believe if i told you that i read the whole doc... ...excepting the "Types" section. My bad... Sorry about that, and thank you for your debriefing !
                        Sorry for that ⇧ , I'm no dev but I wanna try