We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14951
    • 151 Posts
    Hello everyone,

    I am seeking some coding advice for the PHPThumb snippet http://modxcms.com/extras/package/?package=717 that I made.

    I recently received an e-mail regarding the fact that I have included the "baseurl" in the image path. They mentioned that their snippet call looks as follows:
    [[phpthumb? &input=`[[++site_url]][[+tv.image]]` &options=`&w=154&h=73&zc=1,alt||[[+pagetitle]]`]]

    Now honestly, I really can’t see why one would need to put [[++site_url]] in the input...but giving them the benefit of the doubt.. I’m wondering what you guys think is the best option.

    The whole reason I included the baseurl in the snippet (mostly out of ignorance) is that I figured it might be safer to have the entire path to the image as opposed to a relative path.

    Do you think this is a good idea or would it be better to leave this in the hands of the user to include [[++site_url]] as part of the snippet input if they need it?

    I feel kind of stupid, but I just don’t have the coding experience to make an educated decision. Thanks for your thoughts!

    -Jared