johnstonphilip
Member
Posted 5 years ago #
I have been using the code found here:
http://theundersigned.net/2006/09/slideshowpro-and-wordpress/
to make my slideshowpro work with wordpress. However, when I upload an image with the extension JPG instead of jpg, the thumbnails don't work because the str_replace only replaces the ".jpg" with ".thumbnail.jpg" but NOT ".JPG"
Is there a way to make wordpress change the extension from JPG to jpg on upload?
johnstonphilip
Member
Posted 5 years ago #
johnstonphilip
Member
Posted 5 years ago #
figured another way around it
In the post_gallery file where the str_replace occurs, replace:
<?php echo str_replace(".jpg", ".thumbnail.jpg", $image->guid); ?>
--------------------------
with:
<?php $albumthumb=str_replace(".jpg", ".thumbnail.jpg", $image->guid)?><?php echo str_replace(".JPG", ".thumbnail.JPG", $albumthumb)?>