We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7087
    • 15 Posts
    Hi again all,

    I always believe in trying to find the answer before seeking help but I am afraid I have failed in this instance - with several hours down the drain. It seems to be that A number of the forum posts do their best to help but they are targetted at more experienced modx users. As a result, sometimes critical pieces of information are left out or certain knowledge is assumed. I still believe there is mileage in having a HOWTO section in the forum with case studies for specific requirement - step by step that are tested and proven to work.

    Enter case in question - getting Phpthumb to work. The requirement is, I think fairly simple.

    Allow the user to upload and then select and image. This image is then dynamically resized within the page template so the user does not need to resize the image prior to reloading. The source image remains unchanged. Now I thought this was simple and it probably is, but I cannot get it to work. So, for those who are new and equally have the same problem and to show that I have tried, here are my actions step by step.

    1. Download the PHx package from http://modxcms.com/PHx-1006.html currently version 2.1.3 as I type.
    2. Created a directory called "phx" in the assets/plugins directory
    3. Copied all files and folders from within the Phx_2.1.3 folder into assets/plugins/phx directory - producing following structure.
    assets/plugins/phx/
    docs (folder)
    modifiers (folder)
    phx.parser.class.inc.php (file)
    phx.plugin.txt (file)
    4. Login to Manager
    5. Navigate to Resources->Manage Resources -> Plugins
    6. Create new plugin
    Plugin name: PHx

    3. Download the PhpThumb package from http://www.modxcms.com/phpThumb-Package-1522.html currently version 0.3 as I type.
    2. and select an image from the I have downloaded PHx and installed this.