[!MaxiGallery? &childgalleries_ids=`all` &display=`childgalleries` &order_by=`random` &childgalleries_order_by=`createdon` &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_width=`640` &max_pic_size=`640` &smoothgallery_height=`585` &smoothgallery_preloader =`true` &quality_pic =`100` &disable_rightclick=`1` !]
<li> <a href="[~[+maxigallery.picture.gal_id+]~]" title="Go to the gallery"> <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="Go to the gallery" alt="[+maxigallery.picture.title:htmlent+]" /> </a> [+maxigallery.picture.title:isnot=``:then=` <p style="width: [+maxigallery.picture_width_thumb+]px;"> [+maxigallery.picture.title:htmlent+] </p> `+] </li>
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: chmod() [function.chmod]: No such file or directory Error type/ Nr.: Warning - 2 File: /var/www/fruitfulthoughts/assets/snippets/maxigallery/maxigallery.php Line: 372 Line 372 source: chmod($path_to_gal.$name,0666); Parser timing MySQL: 0.0015 s (7 Requests) PHP: 0.1665 s Total: 0.1680 s
[!MaxiGallery? &gal_query_ids=`all` &order_by=`random` &limit=`5` &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_width=`640` &max_pic_size=`640` &smoothgallery_height=`480` &smoothgallery_preloader =`true` &quality_pic =`100` &big_use_dropshadow=`1` &disable_rightclick=`1`!]
[!MaxiGallery? &gal_query_ids=`all` &order_by=`random` &limit=`5` &galleryPictureTpl=`mg_gallerypicturetpl`!]
<li>
<a href="[~[+maxigallery.picture.gal_id+]~]" title="Go to the gallery">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="Go to the gallery" alt="[+maxigallery.picture.title:htmlent+]" />
</a>
[+maxigallery.picture.title:isnot=``:then=`
<p style="width: [+maxigallery.picture_width_thumb+]px;">
[+maxigallery.picture.title:htmlent+]
</p>
`+]
</li>
In your snippet call, you are using &galleryPictureTpl=`mg_gallerypicturetpl`
But the chunk you created is named gallerypicturetpl.. You need to name it mg_gallerypicturetpl as used in your snippet call.
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: chmod() [function.chmod]: No such file or directory Error type/ Nr.: Warning - 2 File: /var/www/fruitfulthoughts/assets/snippets/maxigallery/maxigallery.php Line: 372 Line 372 source: chmod($path_to_gal.$name,0666); Parser timing MySQL: 0.0501 s (7 Requests) PHP: 0.1648 s Total: 0.2149 s