TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: DarkMain on February 12, 2006, 05:02:24 AM

Title: Users Online
Post by: DarkMain on February 12, 2006, 05:02:24 AM
Umm, the Users Online section in the Stats block is now to large.

I don't have a very busy site, and there is a lot of blank space at the bottom now that wast there before the update.
Title: Re: Users Online
Post by: resurgence on February 12, 2006, 09:29:34 AM
uh.. same here.


EDIT
hmm.. changed this line in tportalblocks.template
<div style="width: 100%; height: 23ex; overflow: auto;">';

to
<div style="width: 100%; overflow: auto;">';

and the box disappeared, but i think that box was there to accomodate the "scrollbar show for big online lists" that was put in the  new update.

i wonder if it'll still show since i removed it...

i can also change "ex" to "px" but yeah...
Title: Re: Users Online
Post by: Xarcell on February 13, 2006, 04:54:23 PM
This isn't really a bug/error, but a good helpful tip.
Title: Re: Users Online
Post by: bloc on February 15, 2006, 01:04:07 AM
Yes, i just noticed it myself. You will need a height to make the overflow: auto work, so you could use something like:

<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';

It will then apply a height ONLY when there are +14 users displayed. Adjust that number to your liking. :)

In the next version a setting for both height and limit of users-before-scrollbar will be included.
Title: Re: Users Online
Post by: resurgence on February 15, 2006, 04:36:44 AM
Quote from: Bloc on February 15, 2006, 01:04:07 AM
Yes, i just noticed it myself. You will need a height to make the overflow: auto work, so you could use something like:

<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';

It will then apply a height ONLY when there are +14 users displayed. Adjust that number to your liking. :)

In the next version a setting for both height and limit of users-before-scrollbar will be included.

perfect! :) i shall update my template file with this now. :)