TinyPortal

Development => Feedback => Topic started by: Kieferhub on December 22, 2006, 04:48:52 PM

Title: articles - layout
Post by: Kieferhub on December 22, 2006, 04:48:52 PM
within "TPortal.template.php" you will find this at ~line 174

Quote
// any options for author and date?
if(isset($story['options']['author']) || $story['is_boardnews'])
echo '<span class="smalltext">' , $txt['tp-by'] , ' <b>' , $story['poster']['link'] , '</b></span>';
if(isset($story['options']['date']) || $story['is_boardnews'])
echo '<span class="smalltext"> ' , $txt[30] , ' ' , $story['time'] , '</span>';

// ..and for views and ratings , even comments?
echo '<br />';

if you do not have any of this options enabled there will be a blank line. in my opinion

Quote// ..and for views and ratings , even comments?
if(isset($story['options']['author']) || $story['is_boardnews'] || isset($story['options']['date']) || $story['is_boardnews'])
echo '<br />';

this would make more sence
Title: Re: articles - layout
Post by: Nokonium on December 22, 2006, 07:35:19 PM
You can select what you want to be viewable within the settings for each article.
Title: Re: articles - layout
Post by: bloc on December 24, 2006, 03:02:28 PM
yes..I think its better actually to include the linebreak in the if statement.

I do think it was separated for a reason though..but I will re-check.