TinyPortal

Development => Support => Topic started by: VladTepes on April 03, 2017, 12:57:34 PM

Title: Modifying display orientation in Stats block ?
Post by: VladTepes on April 03, 2017, 12:57:34 PM
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
Title: Re: Modifying display orientation in Stats block ?
Post by: lurkalot on April 03, 2017, 03:07:00 PM
The stats block is designed to go in a side panel. Hence why it looks a bit strange.
Title: Re: Modifying display orientation in Stats block ?
Post by: illori on April 03, 2017, 10:58:29 PM
in TPsubs.template.php
Code (find) Select
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br />';


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.
Title: Re: Modifying display orientation in Stats block ?
Post by: VladTepes on April 04, 2017, 01:03:50 PM
Thanks I will give that a crack.