We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    core-hack? No, there a no hacks to the core included.

    when I have time, I will put together a package and upload it to the repo.
    But for now you need to download the files from github or the one from the first post of this thread, if you want to try it out.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 29087
      • 4 Posts
      Just wanted to thank you, Bruno17. imaglistTV (getImageList) is a really great and versatile custom TV. It works perfectly. It has all the MODx features and the integration in my workflow is just perfect. I hope you will be releasing it as a transport-package very soon. Keep up the good work!

      Greetings,
      A fan!
        • 11516
        • 2 Posts
        hey bruno! thanks for the awesome work! this one is a really helpful one so far, i have just one question:

        is it possible to implement a count (like [+idx] in getResources)? i have already tried it on my own, but i’m still getting used to developing with Revo.


        thanks in advance,

        matthias
          • 4172
          • 5,888 Posts
          here is a new version of getImagelist - snippet now with idx-placeholder
          new parameters: &limit, &offset, &value, &totalVar
          works now together with getPage for pagination

          https://github.com/Bruno17/multiItemsGridTV/blob/master/snippet.getImagelist.php
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 11516
            • 2 Posts
            wow! deep bow and hat off to you! thanks a lot!
              • 18453
              • 66 Posts
              WOW, this plugin is almost a wish come true.
              Thanx for sharing Bruno!!

              Adding multiple file upload availability like uploadify or some sort would make it perfect for custom made galleries.
                • 12241
                • 80 Posts
                Follow instructions in the download, however, the template variable is spitting out this error message:
                Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/MAMP/htdocs/modx/manager/templates/default/element/tv/renders/input/multiitems.tpl" on line 201 "" - Unexpected " ", expected one of: "PHP start tag" , "PHP end tag" , ASPSTARTTAG , ASPENDTAG , "Fake PHP start tag" , "Literal start" , "literal close" , LITERAL' in /MAMP/htdocs/modx/core/model/smarty/sysplugins/smarty_internal_templatecompilerbase.php:423 Stack trace: #0 /MAMP/htdocs/modx/core/model/smarty/sysplugins/smarty_internal_templateparser.php(2798): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /MAMP/htdocs/modx/core/model/smarty/sysplugins/smarty_internal_templateparser.php(2863): Smarty_Internal_Templateparser->yy_syntax_error(0, 0) #2 /MAMP/htdocs/modx/core/model/smarty/s in /MAMP/htdocs/modx/core/model/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 423
                


                It looks like it’s expecting the multiitems.tpl file to be php?

                I’ve checked permissions on the files, they are set to 0755 which is what the other files in that directory are set to.

                I’ve also double checked that the files extracted to the right locations.

                Any ideas? Has anyone else had this problem? see github issue

                Update:
                adding {/literal} after the last script tag in multiitems.tpl fixed it for me.


                  Environment:
                  modx: rev 2.0.8-pl
                  localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37
                  • 12241
                  • 80 Posts
                  phpthumbof is not creating thumbnails

                  My template chunk:
                  <img title="[[+imageAlt]]" src="[[+imageURL:phpthumbof=`&w=436&h=298&zc=1`]]" alt="[[+imageAlt]]" />​
                  


                  Modx Error log:
                   [2011-03-07 21:48:43] (ERROR @ /modx/index.php) [phpThumbOf] Could not generate thumbnail: assets/images/slideshow/img-8-H-P.jpg - Debug: Array
                  (
                      [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
                      [1] => setCacheDirectory() starting with config_cache_directory = "/htdocs/modx/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
                      [2] => setting config_cache_directory to realpath(/htdocs/modx/core/cache/phpthumb) = "/htdocs/modx/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
                      [3] => setCacheDirectory() starting with config_cache_directory = "/htdocs/modx/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
                      [4] => setting config_cache_directory to realpath(/htdocs/modx/assets/components/phpthumbof/cache) = "/htdocs/modx/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
                      [5] => setSourceFilename(assets/images/slideshow/img-8-H-P.jpg) set $this->sourceFilename to "assets/images/slideshow/img-8-H-P.jpg" in file "phpthumb.class.php" on line 243
                      [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
                      [7] =>   file_exists() = 0 in file "phpthumb.class.php" on line 1101
                      [8] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
                      [9] => ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned (no convert in /usr/bin /bin /usr/sbin /sbin) in file "phpthumb.class.php" on line 1131
                      [10] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
                      [11] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
                      [12] => $this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 902
                      [13] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
                      [14] => $this->sourceFilename set to "/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg" in file "phpthumb.class.php" on line 813
                      [15] => phpThumb() v1.7.9-200712090829
                  
                  "/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg" does not exist in file "phpthumb.class.php" on line 3652
                      [16] => setCacheDirectory() starting with config_cache_directory = "/htdocs/modx/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
                      [17] => setting config_cache_directory to realpath(/htdocs/modx/assets/components/phpthumbof/cache) = "/htdocs/modx/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
                      [18] => SetCacheFilename() _src set from md5($this->sourceFilename) "/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg" = "dfdbbb06961900e98392070b93a0a1c6" in file "phpthumb.class.php" on line 3074
                      [19] => SetCacheFilename() _par set from md5(_farC_zc1_h298_w436_dpi150) in file "phpthumb.class.php" on line 3107
                      [20] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2894
                      [21] => GetImageSize("/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg") failed in file "phpthumb.class.php" on line 2917
                      [22] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
                      [23] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
                      [24] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2924
                      [25] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2873
                      [26] => SetOrientationDependantWidthHeight() setting w="436", h="298" in file "phpthumb.class.php" on line 2889
                      [27] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2976
                      [28] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3234
                      [29] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
                      [30] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
                      [31] => starting ImageCreateFromFilename(/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg) in file "phpthumb.class.php" on line 3149
                      [32] => empty $filename or GetImageSize(/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg) failed in file "phpthumb.class.php" on line 3198
                      [33] => Populating $rawimagedata in file "phpthumb.class.php" on line 3206
                      [34] => cannot fopen(/htdocs/modx//idi/3dforall.com/dropbox/Public/modx/assets/images/slideshow/img-8-H-P.jpg) in file "phpthumb.class.php" on line 3217
                      [35] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3283
                      [36] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3335
                      [37] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3337
                      [38] => phpThumb() v1.7.9-200712090829
                  
                  Unknown image type identified by "" () in SourceImageToGD()[3449] in file "phpthumb.class.php" on line 3652
                      [39] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
                  )
                  
                  


                  When I look at the generated source code of the images the src attributes are blank.


                  Firefox 3.6 / Safari 4.1
                  rev2.0.8-pl (traditional)
                  localhost:
                  * Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2
                  * MySQL client version: 5.1.37
                  * PHP extension: mysql
                    Environment:
                    modx: rev 2.0.8-pl
                    localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37
                    • 4172
                    • 5,888 Posts
                    phpthumbof is working for you with normal image-TVs?
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 12241
                      • 80 Posts
                      nope, phpthumbof is not working at all actually. It’s giving that error no matter how I use it.

                      Your snippet rocks. You wouldn’t by any chance have a clue to the phpthumbof issue?
                        Environment:
                        modx: rev 2.0.8-pl
                        localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37