We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19872
    • 1,078 Posts
    Quote from: ThaClown at Feb 17, 2014, 07:20 AM
    You can update this via the manager (first allow php files to be uploaded via site > file settings > allowed file types)

    But in you case I do not think it will help, phpThumbsUp worked in 2.2.10.

    Thanks for the response Menno:

    If it worked in 2.2.10, then there must be something else wrong with my set up. At the level I am at, I am reluctant to go in a modify various aspects of MODx to fix an issue with an Add-On.

    Perhaps, it's the PHP version running on my server, which is 5.2.8. That is entire another issue. Not easy for me to remedy and this point. Maybe in the near future, but not today or this week.
    • I replaced the 2.2.12 files modphpthumb.class.php and pthumb.class.php, got my images back. But, they're not playing responsive and transparent .png's are no more transparent.

      What might I have done wrong?
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 19872
        • 1,078 Posts
        Hi Frogabog.

        Clearly the phpThumbsUp is phpThumbsDown at the moment. I'm confident that's is probably a tiny little detail, but meantime, a site without photos is not good.
        • Well, the new files did fix the images, and if they're photos they should work fine. The images I'm working with need transparency so I'm out of luck for the moment but if you upload those two files and then clear your core/cache files (manager cache clear doesn't work here, delete the files in core/cache instead), your images should come back like mine did.

            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 19872
            • 1,078 Posts
            I could try that posting the new files, but not without a great deal of anxiety. Can I upload them through the MODx file manager? (I'd make backups of the originals first of course.)

              • 19872
              • 1,078 Posts
              I must not be clever enough.

              For kicks I thought I would attempt to apply this to a single image hard coded into a template, and the straightforward instruction to me is not straightforward.
              mysite.com/phpthumbsup/w/400/h/300/zc/1/src/path/to/image.jpg


              Do I have to to put my domain name with every image?
              What is phpthumbsup following the domain name? Is that a directory? I don't have a directory with that name lose in my root. Or does it serve as a prompt for phpThumbsUp to resize the image to 400 wide x 300 h zoom crop whatever?

              I tried:
              <img src="[b]mysite.com[/b]/phpthumbsup/w/400/h/300/zc/1/src/[b]assets/images/myImage.jpg[/b]>


              Nothing happens except for the missing image/? icon.

              I'm running 2.2.10 and Menno claims that it was working in that version of MODx, so i thought I would test outside of my Orbit slider and MIDx form. Just a plain ole image src.
              • You do need to generate the image. It will only work with a TV as far as I know. So, to test it outside of your MIGX call make an image TV, assign an image to it and call the TV somewhere in your template or content field.

                i.e.
                [[*imageTV:phpthumbsup=`w=64&h=64`]]


                You do not need the http://yoursite.com if you've got the base_url set in the template head.

                 <base href="[[!++site_url]]" />


                all your links then would use (note, no / is necessary):

                assets/folder/filename.blah

                http://rtfm.modx.com/revolution/2.x/administering-your-site/using-friendly-urls

                You can upload the files from the MODX manager, but as Menno suggested do check the permissions if you do. If you have file manager (cPanel?) or FTP access, the permissions are easier to manage though.

                I have to ask... are you sure the package is installed? There's been a few times that I've wasted time calling up a snippet that I forgot to actually install. If you've got no phpthumbsup folders... it could be a possibility. Installation did the trick for me, the core/cache/phpthumbsup folder existed when I checked.
                  Frogabog- MODX Websites in Portland Oregon
                  "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                  Having server issues? These guys have MODX Hosting perfected - SkyToaster
                  • 19872
                  • 1,078 Posts
                  Oh hi howdy. I do have a simple image TV already created.

                  In that case — I would simply just put the :phpthumbsup as you mentioned. However, I don't want sizes in there. My understanding is that it detects screen size and then loads an appropriately sized version. My current settings are 480 & 1024, but in reality, I need images that are much much larger for big screens, so will need to change that.

                  First, let me see if this will work. I can't remember about base href. Will double check. Maybe that was the problem from the get go. Did the developers mention that it had to be on the page in the head? I assumed that site_url was gleaned from the settings
                    • 19872
                    • 1,078 Posts
                    OK...back to you're comments.
                    1. The package IS installed. But good call. Never hurts to check:)
                    2. base href was not included, but is now.
                    3. No sure if this is critical but I am not yet using friendly URLs. Still developing the site.

                    I'm still working with original 2.2.10. So have not done the switch-a-roo with the 2 file from 2.2.12. I do have ftp access and hope that I can change permissions when ready. The server is only sftp access. I've found that most critical and even some very simpleton tasks may only be accomplished via SSH commands. I know enough about that to have copied the entire server, shoved it into a folder and zipped it. Yikes!

                    RESULTS:
                    1. Tried adding :phpthumbsup to my .tpl list item code for the image call [[+image:phpthumbsup]]
                    This is the way Menno said to do it with the MIGx and slider setup
                    No success. No image. Error for every image that tried to load.

                    2. Tried adding to a simple TV image. [[*mainimage:phpthumbsup]]
                    Partial Success: Image displayed BUT above the image was /phpthumbsup/src/ in text.

                    Hmmm?

                      • 19872
                      • 1,078 Posts
                      Thought maybe I HAVE to specify a size, which should not be the case in a responsive environment, but tried it anyhow.

                      Basically it generates this: /phpthumbsup/w/64/h/64/src/
                      And inserts it in the page code in front of the <img

                      like so: /phpthumbsup/w/64/h/64/src/ <img src=".........>