News: December 2nd, 2015, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.2! GET IT NOW!!!

Login  |  Register
* * *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 23, 2017, 11:09:53 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 181105
  • Total Topics: 20318
  • Online Today: 83
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 2
Guests: 67
Total: 69

Please read the Posting Guidelines


Author Topic: Modifying display orientation in Stats block ?  (Read 1394 times)

0 Members and 1 Guest are viewing this topic.

Offline VladTepes

  • Jr. Member
  • **
  • Posts: 46
Modifying display orientation in Stats block ?
« on: April 03, 2017, 05:57:34 AM »
I have this set as a bottom block on my forum board index.  Unfortunately there is a lot of wasted space with each component stacking the information vertically, (e.g. the online users) leaving a big empty space to the right.  The more users online, the sillier this becomes.

How would I change this please so that the data is displayed horizontally (as is the case, for example) with the standalone users online block ?

Thanks

Online lurkalot

  • Administrator
  • *
  • Posts: 3535
    • Camera Craniums
Re: Modifying display orientation in Stats block ?
« Reply #1 on: April 03, 2017, 08:07:00 AM »
The stats block is designed to go in a side panel. Hence why it looks a bit strange.
Mick aka lurkalot.  Running TP1.2 and TP1.2R

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2
Guitarist Guild Running SMF 2.0.13 / Tinyportal 1.2R Beta
The Garden Machinery Forum Running SMF 2.0.13 / Tinyportal 1.2R Beta

Online illori

  • Administrator
  • *
  • Posts: 1735
Re: Modifying display orientation in Stats block ?
« Reply #2 on: April 03, 2017, 03:58:29 PM »
in TPsubs.template.php
Code: (find) [Select]
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br />';

Code: [Select]
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo ', ';

there is no check on this for if only one user on the forum, so if one user there will be the , and a space. this may also appear at the end of the line as well.

Offline VladTepes

  • Jr. Member
  • **
  • Posts: 46
Re: Modifying display orientation in Stats block ?
« Reply #3 on: April 04, 2017, 06:03:50 AM »
Thanks I will give that a crack.