111
honestly i dont think i can figure that one out
im coparing the LAST PICTURES block from Yogurt to the RANDOM VIDEOS (h) block from xoopstube
while looking at the code for both i cant really see what makes one show horizontally and the other verticle.
Ill post the code for each below and maybe you or someone else can figure it out
Yogurt LAST PICTURES BLOCK
<{section name=i loop=$block}>
<div style="width:80%; text-align: center; page-break-after: always; margin: auto; page-break-before: always;">
<a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block[i].uid_voted}>" alt=" Qtty<{$block[i].qtd}>" title=" Qtty<{$block.qtd}>"><img src=<{$xoops_upload_url}>/thumb_<{$block[i].user_avatar}>><br /><{$block[i].uname}> a>
div>
<{/section}>
and here is the xoopstube random videos (h) block
<table width="100%" cellspacing="1" cellpadding="0" align="center" border="0">
<tr>
<{foreach item=videorandomh from=$block.random}>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<a href="<{$xoops_url}>/modules/<{$videorandomh.dirname}>/singlevideo.php?cid=<{$videorandomh.cid}>&lid=<{$videorandomh.id}>"><{$videorandomh.videothumb}>a>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandomh.dirname}>/singlevideo.php?cid=<{$videorandomh.cid}>&lid=<{$videorandomh.id}>"><small><{$videorandomh.title}>small>a>
<br /><small>(<{$videorandomh.date}>)small>
td>
<{/foreach}>
tr>
table>
Quote:
ajeeb wrote:
oh ok... thank you very much antifmradio. Now it works very well.
Well I still have one question if u can help me....
I want to put block for "last picture" into center page... and it is good if the photos appear in 3 columns/2 rows or 4 columns/2 rows.
Do u have any idea how to create this columns and rows for this block??