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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:37:02 AM

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

articles - layout

Started by Kieferhub, December 22, 2006, 04:48:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kieferhub

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

Nokonium

You can select what you want to be viewable within the settings for each article.

bloc

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.