We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for PHPThumbFilter 0.5-RC1 by jaredloman.

    Brief Description:

    This snippet allows you to use PHPThumb as an Output filter for image TV's
    It now integrates with the core install of PHPThumb!
      • 14951
      • 151 Posts
      Not sure why but it seems there is a provider_err_connect issue. In the mean time, you can access this at http://github.com/jaredloman/PHPThumb-Output-Filter/ and I have also attached the snippet to this post.
        • 7557
        • 61 Posts
        Quote from: jtech at Sep 27, 2010, 04:04 PM

        Not sure why but it seems there is a provider_err_connect issue. In the mean time, you can access this at http://github.com/jaredloman/PHPThumb-Output-Filter/ and I have also attached the snippet to this post.
        Hi Jtech!
        I think You put an older version of code (v.0.3) in current version, in which there is no source only possibility?
          • 14951
          • 151 Posts
          DJ13, you are exactly right! I fixed the code up to have the source only option again (by the way...GREAT addition!).

          I have submitted the package to the Modx Repo again with the additional feature of W3C Strict compliant Url generation. Prior to this, any page using Phpthumb wouldn’t validate XHTML Strict.

          In the mean time you can get the updated snippet at http://github.com/jaredloman/PHPThumb-Output-Filter/

          I’ve also attached the updated transport package to this post.

          Thanks again for catching this!

          -Jared
            • 21191
            • 236 Posts
            Thanks for the fix, I came across something else. It does not appear to be working unless I’m logged in.

            Logged out: http://grab.by/6CLU

            Logged in: http://grab.by/6CMa

            I’m on revolution 2.0.2 and I just applied the new update, and yes onlysrc now works smiley
              ~Shawn Himmelberger
              Check out my MODx Development and MODx Design Company - Himmelberger Design
              • 21191
              • 236 Posts
              Oh here is what I did to make it work.

              Step 1. Grab the original phpthumb from source forge http://sourceforge.net/projects/phpthumb/files/phpThumb()/
              Step 2. Rename containing folder to phpThumb and copy to assets/components
              Step 3. Then I had to edit 3 lines in Jared’s snippet.
              Edit this to point to the new phpThumb Library
              Line 73: $phpthumb_path = 'assets/components/phpThumb';


              Edit these next two lines to keep the library "untainted" this way you can upgrade the library without having to remember to rename files.
              Line 149:   $output = $base . $phpthumb_path . '/phpThumb.php?' . $src . '&hash=' . md5($src.$_SESSION['high_security_password']);

              Line 151: $output = $base . $phpthumb_path . '/phpThumb.php?' . $src ;



              I’ll let Jared do a proper repackage and this post should be redundant smiley
                ~Shawn Himmelberger
                Check out my MODx Development and MODx Design Company - Himmelberger Design
                • 14951
                • 151 Posts
                Hey Neon_Eddy,

                Thanks for the post. You could either make these changes, or just download v0.6 which is in the repo. For some reason, I must have labeled something wrong, but when I submitted 0.6, it didn’t remove 0.5 so you won’t see the option to upgrade. If you manually download v0.6, you should be good to go with clean XHTML urls =)

                Thanks!
                -Jared
                  • 21191
                  • 236 Posts
                  Actually I just saw this in the forum topics thread after posting... oh well. Should have put a notice in her, so anyone Googling would find it smiley

                  Go here for the new stuff suckas http://modxcms.com/forums/index.php/topic,55101.0.html

                  Thanks again.
                    ~Shawn Himmelberger
                    Check out my MODx Development and MODx Design Company - Himmelberger Design