Help! I know phpThumb is working, because the cache fills up with every page load, but I can’t figure out why the thumbnails aren’t showing up. I’m running GD, no ImageMagick. I tried installing PHx, but that didn’t make any difference - the cache still fills up before and after I enable/disable the plugin. This is a local MAMP installation.
Here is my code for &galleryPictureTpl:
<li>
<a href="[+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="external" title="">
<img src="[+phx:input=`[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]`:phpthumb=`&h=100&w=100&zc=1&q=95`+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
[+maxigallery.picture.title:isnot=``:then=`
<p style="width: [+maxigallery.picture_width_thumb+]px;">
[+maxigallery.picture.title:htmlent+]
</p>
`+]
</li>
And here is my code for phx:phpthumb:
<?php
$output = 'assets/snippets/phpthumb/phpThumb.php?src=' . $output . $options;
return str_replace('&', '&', $output);
?>
P.S. I’m using MODx 1.0.5 and I removed the base_url tags in some spots and tested - the cache is still filling up, and the thumbs are still not showing up. Please help!
UPDATE: I replaced all the deprecated ereg() type functions. Now the pictures are showing up, but it is the original, not the thumbnails. I will be researching this, but if you can let me know a quick fix I’d appreciate it.
UPDATE: *sigh* after much frustration and many hours, I am going to implement the CSS fix instead of the phpThumb fix, as it will be more transferable than the phpThumb fix, and it also seems as though the phpThumb project isn’t supported so much anymore.