TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 29, 2024, 04:15:24 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,282
  • Total Topics: 21,227
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 73
  • Total: 73

[bugtracker] Articles layout option B:

Started by Petee, February 23, 2009, 01:29:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Petee

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

bloc

- Layout B was off in the calculations for article count. Fixed for v1.0 beta4.

bloc

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".