Hi. I would like to know as possible to show a few random images in a row only on a first (main) page? I use such code in album.tpl:
Quote:
<table width="100%" border="0">
<tr>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
</tr>
</table>
I think a condition is needed
Quote:
{if ???????????}
<table width="100%" border="0">
<tr>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
<td><div align="center">{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize="150" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 repeatBlock=2}</div></td>
</tr>
</table>
{/if}
How it all to prescribe in a code?
And question second:
Possibly to show real image size and resolution under thumbnails?
For example:
Views 1
Date 12.08.08
Size 120 kb
Res 1024*768
Posts: 27300
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
Thanks it works!!!