We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47630
    • 56 Posts
    Using MIGXDB & BloX I cannot get PHPThumb images to load.

    I followed abstracted instructions from this tutorial:

    http://www.bdcreative-design.com/blog/data-from-the-migxdb-cmp/

    But comments are disabled so I cannot raise a question there.

    This is the code I used in the pages' template:

    <div id="content" role="main"> 
    <h2>Transportation Jobs</h2> 
    [[!bloX? &packagename=`shipping-data` &limit=`0` &classname=`ShippingData` &tpls=`bloxouter:outerTpl||row:rowTpl` &debug=`0`]]
    </div>


    This is the code I use in the chunk rowTpl:

    <li class="clearfix"> 
    <div>
      <h3>Transport Job: [[+id]]<br></h3> 
      </div> 
    <figure><img src="[[+photofileform1:getImagePath=`shipping-data/storage/files/`:phpthumbof=`w=200&h=200&zc=1`]]"/></figure> 
    <div> 
    <h3>Collection Information</h3>
    Job Description: [[+loaddescriptionform1]]<br>
    Collection City: [[+collectioncityform1]]<br>
    Collection Postcode: [[+collectionpostcodeform1]]<br>
    Collection Date: [[+collectiondateform1]]<br>
    </div> 
    <div> 
    <h3>Delivery Information</h3> 
    Delivery City: [[+deliverycityform1]]<br> 
    Delivery Postcode: [[+deliverypostcodeform1]]<br>
    Delivery Date: [[+deliverydateform1]]<br>
    <br>
    </div> 
    </li>


    All the data is displaying apart from the images.
    I can see in the source code that the images have the correct paths.



    There are 4 transport jobs listed, only 3 & 4 had images allocated (their path can be seen in the source code).

    Has anyone any ideas what I have done wrong or what I have missed? [ed. note: jamesjazz last edited this post 12 years, 4 months ago.]
      • 4172
      • 5,888 Posts
      do you get a filename with

      [[+photofileform1]]


      what is the code of your snippet getImagePath
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 47630
        • 56 Posts
        Quote from: Bruno17 at Jun 10, 2014, 01:41 AM
        do you get a filename with

        [[+photofileform1]]


        what is the code of your snippet getImagePath

        I input the following:

        <?php
        return $options.$input;
          • 47630
          • 56 Posts
          Looking at the source code it auto selected the correct image file name (each image is different for each posting)