We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29300
    • 1 Posts
    Hello All,
    I am using phpThumbof for creating thumb image. I have a TV where the user uploads the image from and have a chunk call
    such as <img src="[[+tv.Overzichtfoto:phpthumbof=`w=50&h=50&zc=1`]]" alt="[[+pagetitle]]" /> this generates the thumb image when i go and view it in the cache folder but the image does not display as the path is coming wrong.

    It is coming like this :-

    /modx2/assets/components/phpthumbof/cache/C:/xampp/htdocs/modx2/assets/components/phpthumbof/cache/assets_images_site__thumbs_thumb_6.jpg.c1ed08196ec13b5ca585381aac4982ed.png

    Instead it should be
    /modx2/assets/components/phpthumbof/cach/assets_images_site__thumbs_thumb_6.jpg.c1ed08196ec13b5ca585381aac4982ed.png

    Please correct me if i am wrong.

    I also need a gallery to display the images with the lightbox effect.

      • 6408
      • 58 Posts
      not sure if this will help but i dont think its a good idea to start your TVs with ’tv.’ i read in another post that this was bad practice - the other thing is that the output from the image tv needs to be set to text to get the correct path.

      I havent tested any of that so I may be wrong.
        • 9550
        • 123 Posts
        dannyL: I believe it’s required to prefix tv’s with TV when used as a place placeholder for a chunk used by a snippet like getResources

        Tapansodagar: I’m also having similar problems with phpthumbof. did you ever get it fixed?