I also implemented the thimthumb to resize pictures on the fly as my intro-div has been loaded on frontpage. See down here.
But now my question is: how to get the intro image inside our newsflash modules ?? It's weird now using the before-readmore-firstpic of the article. Having the intro image inside newsflash could be the best natural evolution. Probably no one on joomla team got enought time to update the newsflash mod as it should be...
Is anyone able to help me pulling out from joomla the string to the intro pic path of each article showing on mod_newsflash ?
Anyone, let me know..!
Code: Select all
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo $this->baseurl ?>/templates/mytemplate/js/timthumb.php?src=<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($images->image_intro); ?>&h=150&w=150&zc=1" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<?php endif; ?>