Forum Moderators: coopster
I'm trying to build a news-page for my site, and using the code in the link below, the system (phpbb3) outputs a set number of news in a vertically order.
1
2
3
4
5
6
However.. I don't know if it's possible with CSS or if I have to use PHP, I would like it to print like this:
1 2
3 4
5 6
Anyone who could help me modify the code? phpbb3 supports php in template, so it should be possible to create a loop-function-thingy...
Thanks
[edited by: eelixduppy at 6:34 pm (utc) on Dec. 2, 2007]
[edit reason] no URLs, please post relevant code [/edit]
said it three times today :), but you are not allowed to post personal urls.
What you are trying to do can be achieved through PHP. However you are trying to do it, be it generated from a loop or any other way, you can have the news in two columns by allowing the table rows (<tr>) to contain two <td>s.
Habtom
********************************************
<!-- BEGIN news_row -->
<!-- IF news_row.S_NO_TOPICS -->
<center><span class="gensmall"><strong>{L_NO_NEWS}</strong></span></center>
<!-- ELSE -->
<div class="panel">
<div class="inner">
<div class="postbody_portal">
<h1>{news_row.ATTACH_ICON_IMG}<!-- IF news_row.S_POLL --> {L_POLL}: <!-- ENDIF --><a href="{news_row.U_VIEW_COMMENTS}">{news_row.TITLE}</a></h1>
{news_row.TIME} ¦ {L_POSTED_BY}: <strong><a href="{news_row.U_USER_PROFILE}">{news_row.POSTER}</a></strong><br /><br />
<div class="content">{news_row.TEXT}</div>
<br />
{news_row.OPEN}<a href="{news_row.U_VIEW_COMMENTS}">{news_row.L_READ_FULL}</a>{news_row.CLOSE} • <a href="{news_row.U_VIEW_COMMENTS}" title="{L_VIEW_COMMENTS}">{L_COMMENTS}: {news_row.REPLIES}</a> • <a href="{news_row.U_POST_COMMENT}">{L_POST_REPLY}</a>
</div>
</div>
</div>
<br /><br />
<!-- ENDIF -->
<!-- IF news_row.S_NOT_LAST --><!-- ENDIF -->
<!-- END news_row -->
********************************************
I would be really grateful if anyone knows the answer... :)