I have sucessfully initiated the Random-block php-script :eek: :
include("http://www.mysite.org/modules.php?op=modload&name=mygalleryname&file=index&include=block-random.php");
my question is now one of finesse..is there a way I can resize these photos on the fly in the random block to support my theme width (i think it's 114px)
Posts: 77
Hi,
do you use PostNuke. Then I have an idea based on my modified Random-Block for PostNuke. But the idea schould work also on the native version of the block.
My idea is to modify the img-Tag, which you get back from the getThumbnailTag-Function. There you have to modify the width an height attributes of the tag. This is done by putting the img-Tag you get back in a variable and "search & replace" the width and height values with the values you prefer and then print out the modified img-Tag.
That's a quick hack. But it should work and is easy to do. If you are interested you can send me a private message!
Joerg.
Posts: 77
Hi,
meanwhile I released a version of the random block including resizing. Read the release topic in this board.
Joerg