TinyPortal
Development => Feedback => Bugs/Errors => Topic started by: Petee on February 23, 2009, 01:29:02 AM
Fresh install of both SMF and TP. Create 3 articles. Choose option B layout (1 article on top, 2 articles below it). The 2 articles at the bottom are not separated with a TD, so they sit one on top of each other in the left column. The right column is empty.
http://www.web-dreamz.com/SMF_Clean/index.php
Support Edit: reference topic --> http://www.tinyportal.net/index.php/topic,28538.msg227137.html#msg227137
- Layout B was off in the calculations for article count. Fixed for v1.0 beta4.
For a quick fix:
- Open TPortal.template.php in Themes/default and locate this code:
// some init values
$start = 0;
$end = sizeof($context['TPortal']['boardnews']);
$count = 1;
Set "$count = 1" to "$count = 0"-
Then locate:
// layout option 2 - 1 on top, 2 columns after
elseif($article_lo=='2')
{
$first=true;
$sides=0;
$half=floor(($end-1)/2);
$done=false;
..and replace "floor" with "ceil".